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-esp-kafka-ssl-encryption-authentication.md
+24-7Lines changed: 24 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: Set up TLS encryption for communication between Kafka clients and K
4
4
ms.service: hdinsight
5
5
ms.topic: how-to
6
6
ms.custom: hdinsightactive
7
-
ms.date: 02/17/2023
7
+
ms.date: 04/03/2023
8
8
---
9
9
10
10
# Set up TLS encryption and authentication for ESP Apache Kafka cluster in Azure HDInsight
@@ -317,25 +317,42 @@ Run these steps on the client machine.
317
317
### Kafka 2.1 or above
318
318
319
319
> [!Note]
320
-
> Below commands will work if you are either using Kafka user or a custom user which have access to do CRUD operation.
320
+
> Below commands will work if you are either using `kafka` user or a custom user which have access to do CRUD operation.
321
321
322
322
:::image type="content" source="./media/apache-esp-kafka-ssl-encryption-authentication/access-to-crud-operation.png" alt-text="Screenshot showing how to provide access CRUD operations." border="true":::
323
323
324
324
Using Command Line Tool
325
325
326
-
1. Create a topic if it doesn't exist already.
326
+
1. Make sure you check the local kerberos ticket for custom user you want to use to submit commands.
327
+
328
+
1. `klist`
329
+
330
+
If ticket is present, then you are good to proceed. Otherwise generate a Kerberos principle and keytab using below command.
To use a keytab, create a JAAS file with the following content. Be sure to point the keyTab property to your keytab file and reference the principal used inside the keytab. Following is a sample JAAS file created and placed in the location in VM: **/home/hdiuser/kafka_client_jaas_keytab.conf**
348
+
To use a keytab, create a Keytab file with the following content. Be sure to point the Keytab property to your Keytab file and reference the principal used inside the Keytab. Following is a sample JAAS file created and placed in the location in VM: **/home/sshuser/kafka_client_jaas_keytab.conf**
1. Open another ssh connection to client machine and start console consumer and provide the path to `client-ssl-auth.properties` as a configuration file for the consumer.
0 commit comments