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.
Run the import-kafka.sh tool to import the existing Kafka
topics.
In Cloudera Manager, select the Kafka service.
Use the Cloudera Manager instance that
manages the cluster where the Kafka service runs. If Kafka runs on a compute cluster that
uses another cluster as its data context, select the Kafka service of the compute cluster,
not the Atlas cluster. To open it, log in to the Cloudera Manager Admin
Console, and on the Home page, click the Kafka service under the
cluster that runs Kafka.
Click Configuration.
In the search box, enter Atlas.
The configuration page lists only the Atlas-related Kafka properties.
Select the Enable Auditing to Atlas option.
Figure 1. Atlas auditing properties in the Kafka service configuration
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.