Skip to content

Commit d1294f0

Browse files
committed
updating headings
1 parent ae93be5 commit d1294f0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,17 @@ In this code, the consumer is configured to read from the start of the topic (`a
109109

110110
The [Run.java](https://github.com/Azure-Samples/hdinsight-kafka-java-get-started/blob/master/Producer-Consumer/src/main/java/com/microsoft/example/Run.java) file provides a command-line interface that runs either the producer or consumer code. You must provide the Kafka broker host information as a parameter. You can optionally include a group ID value, which is used by the consumer process. If you create multiple consumer instances using the same group ID, they'll load balance reading from the topic.
111111

112-
## Use Pre-built JAR files
112+
## Build and deploy the example
113+
114+
### Use Pre-built JAR files
113115

114116
Download the jars from the [Kafka Get Started Azure sample](https://github.com/Azure-Samples/hdinsight-kafka-java-get-started/tree/master/Prebuilt-Jars). If your cluster is **Enterprise Security Package (ESP)** enabled, use kafka-producer-consumer-esp.jar. Use the command below to copy the jars to your cluster.
115117

116118
```cmd
117119
scp kafka-producer-consumer*.jar [email protected]:kafka-producer-consumer.jar
118120
```
119121

120-
## Build the JAR files from code
122+
### Build the JAR files from code
121123

122124
If you would like to skip this step, prebuilt jars can be downloaded from the `Prebuilt-Jars` subdirectory. Download the kafka-producer-consumer.jar. If your cluster is **Enterprise Security Package (ESP)** enabled, use kafka-producer-consumer-esp.jar. Execute step 3 to copy the jar to your HDInsight cluster.
123125

0 commit comments

Comments
 (0)