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-get-started.md
+24-19Lines changed: 24 additions & 19 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: mvc
9
9
ms.topic: quickstart
10
-
ms.date: 06/12/2019
10
+
ms.date: 10/01/2019
11
11
#Customer intent: I need to create a Kafka cluster so that I can use it to process streaming data
12
12
---
13
13
@@ -107,24 +107,24 @@ To create an Apache Kafka on HDInsight cluster, use the following steps:
107
107
3. When prompted, enter the password for the SSH user.
108
108
109
109
Once connected, you see information similar to the following text:
110
-
110
+
111
111
```output
112
112
Authorized uses only. All activity may be monitored and reported.
113
113
Welcome to Ubuntu 16.04.4 LTS (GNU/Linux 4.13.0-1011-azure x86_64)
114
-
114
+
115
115
* Documentation: https://help.ubuntu.com
116
116
* Management: https://landscape.canonical.com
117
117
* Support: https://ubuntu.com/advantage
118
-
118
+
119
119
Get cloud support with Ubuntu Advantage Cloud Guest:
120
120
https://www.ubuntu.com/business/services/cloud
121
-
121
+
122
122
83 packages can be updated.
123
123
37 updates are security updates.
124
124
125
125
126
126
Welcome to Apache Kafka on HDInsight.
127
-
127
+
128
128
Last login: Thu Mar 29 13:25:27 2018 from 108.252.109.241
129
129
```
130
130
@@ -140,29 +140,31 @@ In this section, you get the host information from the Apache Ambari REST API on
140
140
sudo apt -y install jq
141
141
```
142
142
143
-
2. Set up environment variables. Replace `PASSWORD`and `CLUSTERNAME`with the cluster login password and cluster name respectively, then enter the command:
143
+
1. Set up password variable. Replace `PASSWORD` with the cluster login password, then enter the command:
144
144
145
145
```bash
146
146
export password='PASSWORD'
147
-
export clusterNameA='CLUSTERNAME'
148
147
```
149
148
150
-
3. 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, store it in a variable, and then display the correctly cased name, and the name you provided earlier. Enter the following command:
149
+
1. Extract the 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 thenstore it in a variable. Enter the following command:
> If you're running this command from outside the cluster, get the cluster name from the Azure portal. Enter clusterName in lowercase and run the command `export clusterName='clustername'` to store the variable.
156
+
156
157
157
-
4. To set an environment variable with Zookeeper host information, use the command below. The command retrieves all Zookeeper hosts, then returns only the first two entries. This is because you want some redundancy incase one host is unreachable.
158
+
1. To set an environment variable with Zookeeper host information, use the command below. The command retrieves all Zookeeper hosts, then returns only the first two entries. This is because you want some redundancy in case one host is unreachable.
This command directly queries the Ambari service on the cluster head node. You can also access Ambari using the public address of `https://$CLUSTERNAME.azurehdinsight.net:80/`. Some network configurations can prevent access to the public address. For example, using Network Security Groups (NSG) to restrict access to HDInsight in a virtual network.
164
+
> [!Note]
165
+
> This command requires Ambari access. If your cluster is behind an NSG, run this command from a machine that can access Ambari.
164
166
165
-
5. To verify that the environment variable is set correctly, use the following command:
167
+
1. To verify that the environment variable is set correctly, use the following command:
166
168
167
169
```bash
168
170
echo $KAFKAZKHOSTS
@@ -172,15 +174,18 @@ In this section, you get the host information from the Apache Ambari REST API on
0 commit comments