You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/hdinsight/kafka/apache-kafka-producer-consumer-api.md
+5-7Lines changed: 5 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ ms.reviewer: jasonh
7
7
ms.service: hdinsight
8
8
ms.custom: hdinsightactive
9
9
ms.topic: tutorial
10
-
ms.date: 10/08/2019
10
+
ms.date: 05/19/2020
11
11
#Customer intent: As a developer, I need to create an application that uses the Kafka consumer/producer API with Kafka on HDInsight
12
12
---
13
13
@@ -113,14 +113,12 @@ The [Run.java](https://github.com/Azure-Samples/hdinsight-kafka-java-get-started
113
113
114
114
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.
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.
125
123
126
124
1. Download and extract the examples from [https://github.com/Azure-Samples/hdinsight-kafka-java-get-started](https://github.com/Azure-Samples/hdinsight-kafka-java-get-started).
@@ -140,7 +138,6 @@ If you would like to skip this step, prebuilt jars can be downloaded from the `P
140
138
```
141
139
142
140
## <a id="run"></a> Run the example
143
-
This conversation was marked as resolved by anusricorp
144
141
145
142
1. Replace `sshuser` with the SSH user for your cluster, and replace `CLUSTERNAME` with the name of your cluster. Open an SSH connection to the cluster, by entering the following command. If prompted, enter the password for the SSH user account.
146
143
@@ -159,6 +156,7 @@ This conversation was marked as resolved by anusricorp
159
156
160
157
> [!Note]
161
158
> This command requires Ambari access. If your cluster is behind an NSG, run this command from a machine that can access Ambari.
159
+
162
160
1. Create Kafka topic, `myTest`, by entering the following command:
0 commit comments