Skip to content

Commit 76b65a3

Browse files
authored
Update apache-kafka-get-started.md
Updated --zookeeper to --bootstrap-server
1 parent f0f232c commit 76b65a3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/hdinsight/kafka/apache-kafka-get-started.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,10 @@ Kafka stores streams of data in *topics*. You can use the `kafka-topics.sh` util
199199
* **To create a topic**, use the following command in the SSH connection:
200200
201201
```bash
202-
/usr/hdp/current/kafka-broker/bin/kafka-topics.sh --create --replication-factor 3 --partitions 8 --topic test --zookeeper $KAFKAZKHOSTS
202+
/usr/hdp/current/kafka-broker/bin/kafka-topics.sh --create --replication-factor 3 --partitions 8 --topic test --bootstrap-server $KAFKABROKERS
203203
```
204204
205-
This command connects to Zookeeper using the host information stored in `$KAFKAZKHOSTS`. It then creates an Apache Kafka topic named **test**.
205+
This command connects to Broker using the host information stored in `$KAFKABROKERS`. It then creates an Apache Kafka topic named **test**.
206206
207207
* Data stored in this topic is partitioned across eight partitions.
208208
@@ -227,15 +227,15 @@ Kafka stores streams of data in *topics*. You can use the `kafka-topics.sh` util
227227
* **To list topics**, use the following command:
228228
229229
```bash
230-
/usr/hdp/current/kafka-broker/bin/kafka-topics.sh --list --zookeeper $KAFKAZKHOSTS
230+
/usr/hdp/current/kafka-broker/bin/kafka-topics.sh --list --bootstrap-server $KAFKABROKERS
231231
```
232232
233233
This command lists the topics available on the Apache Kafka cluster.
234234
235235
* **To delete a topic**, use the following command:
236236
237237
```bash
238-
/usr/hdp/current/kafka-broker/bin/kafka-topics.sh --delete --topic topicname --zookeeper $KAFKAZKHOSTS
238+
/usr/hdp/current/kafka-broker/bin/kafka-topics.sh --delete --topic topicname --bootstrap-server $KAFKABROKERS
239239
```
240240
241241
This command deletes the topic named `topicname`.

0 commit comments

Comments
 (0)