Configuring Atlas and Kafka for auditing metadata

You must perform some configuration changes to enable Atlas auditing of Kafka metadata.

  • You must have an Atlas service installed on the Kafka cluster or the data context cluster.
  • You must be logged in to Cloudera Manager as a user who can change service and role level configuration, such as Cluster Administrator, Full Administrator, Configurator, or Limited Cluster Administrator.
  1. Run the import-kafka.sh tool to import the existing Kafka topics.
  2. In Cloudera Manager, select the Kafka service.
    Use the Cloudera Manager of the Cloudera Streams MessagingData Hub cluster that runs Kafka. To open it, go to Management Console > Data Hubs, select the Cloudera Streams Messaging cluster, and click CM-UI in the Services section.
  3. Click Configuration.
  4. In the search box, enter Atlas.
    The configuration page lists only the Atlas-related Kafka properties.
  5. Select the Enable Auditing to Atlas option.
    Figure 1. Atlas auditing properties in the Kafka service configuration

    The Configuration tab of the Kafka service in Cloudera Manager, filtered on Atlas. The Enable Auditing to Atlas option is selected, and the Atlas metadata namespace for Kafka Topics and Atlas metadata namespace for Kafka Clients properties are set to cm.
  6. Specify the topic and client metadata namespaces in the Atlas metadata namespace for Kafka Topics and Atlas metadata namespace for Kafka Clients properties.
    Keep the following considerations in mind when specifying the topic and client namespaces:
    • If only one Kafka cluster is audited by Atlas, the namespaces can be the same, or can be the assigned default values.
    • If Atlas audits multiple Kafka clusters, the topic namespace must be unique for each Kafka cluster to avoid collisions of topic entities.
    • Client namespace can be configured based on the use case. For example, if an application communicates with multiple Kafka clusters using the same client.id, the client metadata namespace can be set to the same value over all the Kafka clusters. So, a single consumer or producer entity can represent the application in Atlas.