Title
Create new category
Edit page index title
Edit category
Edit link
Kafka
Acceldata ODP introduces seamless integration with various data systems, enhancing data flow and compatibility across diverse platforms.
Enable Kerberos - Ambari
Enabling Kerberos for the entire ODP cluster includes enabling Kafka. For more information, see Enabling Kerberos in an ODP Cluster.
Enable Kafka SSL
Gather the CA-signed truststore and keystore certificates along with details to enable SSL for the Kafka Service.
If the CA certificates are not available, generate self-signed certificates by performing the following instructions:
Replicate the provided script on all the nodes where Kafka services are running:
cat Kafka-ssl.sh
Execute it on all the Kafka nodes.
Copy the
$(hostname).crtfile to all other Kafka nodes reciprocally. Finally, import the certificate to the truststore on each node.
This will generate the certificates at /opt/security/pki/.
With the above generated certificates (or CA certificates), you must have details regarding the SSL certificates.
Configure Kerberos, SSL and Ranger to Kafka
Once Kerberos and SSL details are obtained as described in the preceding sections, proceed to configure them for the Kafka service.
Apart from the above, all remaining configurations are to be set to default. Kafka is now enabled with Ranger, Kerberos, and SSL.
Basic Kafka Operations
NOTE The below sample operations are tested for a minimum of 3-nodes cluster.
Since the cluster is Kerberos and SSL enabled, use client-ssl.properties file to perform basic operations.
cat client-ssl.properties
Create a Topic
To create a Kafka topic, perform the following:
Describe a Topic
To describe a Kafka topic, perform the following:
Kafka Console Producer
To produce sample data from Kafka, perform the following:
Kafka Console Consumer
To consume sample data from Kafka, perform the following: