Skip to content

Commit 5ba379c

Browse files
committed
devops3b
1 parent 069dd6c commit 5ba379c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

articles/hdinsight/kafka/apache-kafka-producer-consumer-api.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,12 @@ The [Run.java](https://github.com/Azure-Samples/hdinsight-kafka-java-get-started
148148
export password='PASSWORD'
149149
```
150150
151+
1. Extract correctly cased cluster name. The actual casing of the cluster name may be different than you expect, depending on how the cluster was created. This command will obtain the actual casing, and then store it in a variable. Enter the following command:
152+
153+
```bash
154+
export clusterName=$(curl -u admin:$password -sS -G "http://headnodehost:8080/api/v1/clusters" | jq -r '.items[].Clusters.cluster_name')
155+
```
156+
151157
1. To get the Kafka broker hosts, use the following command:
152158
153159
```bash

0 commit comments

Comments
 (0)