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:

  1. Replicate the provided script on all the nodes where Kafka services are running:

cat Kafka-ssl.sh

Bash
Copy
  1. Execute it on all the Kafka nodes.
Bash
Copy
  1. Copy the $(hostname).crt file 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.

Bash
Copy

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

Bash
Copy

Create a Topic

To create a Kafka topic, perform the following:

Bash
Copy

Describe a Topic

To describe a Kafka topic, perform the following:

Bash
Copy

Kafka Console Producer

To produce sample data from Kafka, perform the following:

Bash
Copy

Kafka Console Consumer

To consume sample data from Kafka, perform the following:

Bash
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
  Last updated