Skip to content

Commit 1bafbad

Browse files
author
Petter Graff
committed
Fixed old links
1 parent 49375de commit 1bafbad

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

labs/01-Verify-Installation/hello-world-kafka.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ Because we use docker and docker-compose, the commands to run the kafka CLI are
1919

2020
We have all of the commands listed in the exercise below, so you can simply copy and paste, but as you get more advanced, you may want to experiment with the CLI.
2121

22-
One way to make this simpler is to alias your commands. When we run the Kafka commands in the running docker image, we reach into the image and run a command in the directory `/opt/kafka_2.11-0.10.1.1/bin/`.
22+
One way to make this simpler is to alias your commands. When we run the Kafka commands in the running docker image, we reach into the image and run a command in the directory `/opt/kafka/bin/`.
2323

24-
This means that all of our commands are preseeded with the following noise: `docker-compose exec kafka /opt/kafka_2.11-0.10.1.1/bin/`
24+
This means that all of our commands are preseeded with the following noise: `docker-compose exec kafka /opt/kafka/bin/`
2525

2626
You may want to alias these commands. In Linux and Mac, you can simply create aliases in your terminal setup.
2727

labs/04-Implement-Topics-And-Partitions/heartbeat-simulator/producer.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,14 @@ All the directory references in this lab is relative to where you expended the l
8989
1. Open an additional terminal window in the lesson directory, `docker/`. We are going to create two topics that will be used in the Producer program. Run the following commands:
9090

9191
```
92-
$ docker-compose exec kafka /opt/kafka_2.11-0.10.1.1/bin/kafka-topics.sh --create --zookeeper zookeeper:2181 --replication-factor 1 --partitions 1 --topic user-events
93-
$ docker-compose exec kafka /opt/kafka_2.11-0.10.1.1/bin/kafka-topics.sh --create --zookeeper zookeeper:2181 --replication-factor 1 --partitions 1 --topic global-events
92+
$ docker-compose exec kafka /opt/kafka/bin/kafka-topics.sh --create --zookeeper zookeeper:2181 --replication-factor 1 --partitions 1 --topic user-events
93+
$ docker-compose exec kafka /opt/kafka/bin/kafka-topics.sh --create --zookeeper zookeeper:2181 --replication-factor 1 --partitions 1 --topic global-events
9494
```
9595

9696
1. List the topics to double check they were created without any issues.
9797

9898
```
99-
$ docker-compose exec kafka /opt/kafka_2.11-0.10.1.1/bin/kafka-topics.sh --list --zookeeper zookeeper:2181
99+
$ docker-compose exec kafka /opt/kafka/bin/kafka-topics.sh --list --zookeeper zookeeper:2181
100100
global-events
101101
user-events
102102
```
@@ -107,7 +107,7 @@ All the directory references in this lab is relative to where you expended the l
107107
<dependency>
108108
<groupId>org.apache.kafka</groupId>
109109
<artifactId>kafka-clients</artifactId>
110-
<version>0.10.1.1</version>
110+
<version>1.1.0</version>
111111
</dependency>
112112
<dependency>
113113
<groupId>com.google.guava</groupId>

labs/06-Streaming/iot-kafka-solution/gps-pump/producer.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,14 @@ All the directory references in this lab is relative to where you expended the l
8989
1. Open an additional terminal window in the lesson directory, `docker/`. We are going to create two topics that will be used in the Producer program. Run the following commands:
9090

9191
```
92-
$ docker-compose exec kafka /opt/kafka_2.11-0.10.1.1/bin/kafka-topics.sh --create --zookeeper zookeeper:2181 --replication-factor 1 --partitions 1 --topic user-events
93-
$ docker-compose exec kafka /opt/kafka_2.11-0.10.1.1/bin/kafka-topics.sh --create --zookeeper zookeeper:2181 --replication-factor 1 --partitions 1 --topic global-events
92+
$ docker-compose exec kafka /opt/kafka/bin/kafka-topics.sh --create --zookeeper zookeeper:2181 --replication-factor 1 --partitions 1 --topic user-events
93+
$ docker-compose exec kafka /opt/kafka/bin/kafka-topics.sh --create --zookeeper zookeeper:2181 --replication-factor 1 --partitions 1 --topic global-events
9494
```
9595

9696
1. List the topics to double check they were created without any issues.
9797

9898
```
99-
$ docker-compose exec kafka /opt/kafka_2.11-0.10.1.1/bin/kafka-topics.sh --list --zookeeper zookeeper:2181
99+
$ docker-compose exec kafka /opt/kafka/bin/kafka-topics.sh --list --zookeeper zookeeper:2181
100100
global-events
101101
user-events
102102
```
@@ -107,7 +107,7 @@ All the directory references in this lab is relative to where you expended the l
107107
<dependency>
108108
<groupId>org.apache.kafka</groupId>
109109
<artifactId>kafka-clients</artifactId>
110-
<version>0.10.1.1</version>
110+
<version>1.1.0</version>
111111
</dependency>
112112
<dependency>
113113
<groupId>com.google.guava</groupId>

labs/06-Streaming/spark-streaming-iot.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,15 +177,15 @@ Run `docker-compose up` from the `docker` directory.
177177
Create topic `vehicle-observations`
178178

179179
```
180-
$ docker-compose exec kafka /opt/kafka_2.11-0.10.1.1/bin/kafka-topics.sh --create --zookeeper zookeeper:2181 --replication-factor 1 --partitions 1 --topic vehicle-observations
180+
$ docker-compose exec kafka /opt/kafka/bin/kafka-topics.sh --create --zookeeper zookeeper:2181 --replication-factor 1 --partitions 1 --topic vehicle-observations
181181
```
182182

183183
## Producer
184184

185185
Run the producer.
186186

187187
```
188-
$ docker-compose exec kafka /opt/kafka_2.11-0.10.1.1/bin/kafka-console-producer.sh --broker-list kafka:9092 --topic vehicle-observations
188+
$ docker-compose exec kafka /opt/kafka/bin/kafka-console-producer.sh --broker-list kafka:9092 --topic vehicle-observations
189189
```
190190

191191
## Deploy

labs/06-Streaming/spark-streaming-with-kafka.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ Run the producer as in the previous lab. Enter some text and observe the output.
153153
In the producer terminal, run the producer and then enter a line of text:
154154

155155
```
156-
$ docker-compose exec kafka /opt/kafka_2.11-0.10.1.1/bin/kafka-console-producer.sh --broker-list kafka:9092 --topic stream-input
156+
$ docker-compose exec kafka /opt/kafka/bin/kafka-console-producer.sh --broker-list kafka:9092 --topic stream-input
157157
hello hello hi
158158
```
159159

labs/06-Streaming/streaming.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ Here is an example of what you may see:
382382

383383
Here is what I typed into the producer
384384
```bash
385-
$ docker-compose exec kafka /opt/kafka_2.11-0.10.1.1/bin/kafka-console-producer.sh --broker-list kafka:9092 --topic stream-input
385+
$ docker-compose exec kafka /opt/kafka/bin/kafka-console-producer.sh --broker-list kafka:9092 --topic stream-input
386386
this is a test message
387387
```
388388

0 commit comments

Comments
 (0)