Skip to content

Commit 45ac7bd

Browse files
authored
Merge pull request #52652 from mamccrea/kafka-ranger-policy
fix steps
2 parents 06e92fe + 1203c04 commit 45ac7bd

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

articles/hdinsight/domain-joined/apache-domain-joined-run-kafka.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ Based on the Ranger policies configured, **sales_user** can produce/consume topi
158158

159159
Example: `export KAFKAZKHOSTS=zk1-khdicl.contoso.com:2181,zk2-khdicl.contoso.com:2181`
160160

161-
As a result, **sales_user1** can produce to topic **salesevents**.
162-
163-
4. Execute the following command to start the console-producer for topic **salesevents**:
161+
4. Verify that **sales_user1** can produce to topic **salesevents**.
162+
163+
Execute the following command to start the console-producer for topic **salesevents**:
164164

165165
```bash
166166
/usr/hdp/current/kafka-broker/bin/kafka-console-producer.sh --broker-list $KAFKABROKERS --topic salesevents --security-protocol SASL_PLAINTEXT
@@ -174,19 +174,21 @@ Based on the Ranger policies configured, **sales_user** can produce/consume topi
174174
/usr/hdp/current/kafka-broker/bin/kafka-console-consumer.sh --zookeeper $KAFKAZKHOSTS --topic salesevents --security-protocol PLAINTEXTSASL --from-beginning
175175
```
176176

177-
To verify, the messages you entered in the previous step will appear, and **sales_user1** can't produce to topic **marketingspend**.
177+
6. Verify that the messages you entered in the previous step will appear, and **sales_user1** can't produce to topic **marketingspend**.
178178

179-
6. From the same ssh window as above, execute the following command to produce to the topic **marketingspend**:
179+
From the same ssh window as above, execute the following command to produce to the topic **marketingspend**:
180180

181181
```bash
182182
/usr/hdp/current/kafka-broker/bin/kafka-console-producer.sh --broker-list $KAFKABROKERS --topic marketingspend --security-protocol SASL_PLAINTEXT
183183
```
184184

185-
An authorization error occurs and can be ignored. Notice that **marketing_user1** can't consume from topic **salesevents**.
185+
An authorization error occurs and can be ignored.
186+
187+
7. Notice that **marketing_user1** can't consume from topic **salesevents**.
186188

187189
Repeat steps 1-3 above, but this time as **marketing_user1**.
188190

189-
7. Execute the following command to consume from topic **salesevents**:
191+
Execute the following command to consume from topic **salesevents**:
190192

191193
```bash
192194
/usr/hdp/current/kafka-broker/bin/kafka-console-consumer.sh --zookeeper $KAFKAZKHOSTS --topic marketingspend --security-protocol PLAINTEXTSASL --from-beginning

0 commit comments

Comments
 (0)