Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion DomainJoined-Producer-Consumer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,17 @@ This conversation was marked as resolved by anusricorp

> [!Note]
> This command requires Ambari access. If your cluster is behind an NSG, run this command from a machine that can access Ambari.
1. First give access to users in the Ranger policies. https://docs.microsoft.com/en-us/azure/hdinsight/domain-joined/apache-domain-joined-run-kafka
Then for the user, get a kerberos ticket with the command. Enter the password when it prompts for it.

```bash
kinit <username>
```
1. Create Kafka topic, `myTest`, by entering the following command:

```bash
java -jar -Djava.security.auth.login.config=/usr/hdp/current/kafka-broker/config/kafka_client_jaas.conf kafka-producer-consumer.jar create myTest $KAFKABROKERS
```

1. To run the producer and write data to the topic, use the following command:

```bash
Expand Down