Then, we use the . /etc/profile to enable the configuration to take effect immediately.
4.Configure Kafka Eagle system-config file
cd ${KE_HOME}/confvisystem-config.properties# Multi zookeeper&kafka cluster list -- The client connection address of the Zookeeper cluster is set herekafka.eagle.zk.cluster.alias=cluster1,cluster2cluster1.zk.list=tdn1:2181,tdn2:2181,tdn3:2181cluster2.zk.list=xdn1:2181,xdn2:2181,xdn3:2181# Kafka broker nodes online listcluster1.kafka.eagle.broker.size=10cluster2.kafka.eagle.broker.size=20# Zkcli limit -- Zookeeper cluster allows the number of clients to connect tokafka.zk.limit.size=25# Kafka Eagle webui port -- WebConsole port access addresskafka.eagle.webui.port=8048# Kafka offset storage -- Offset stored in a Kafka cluster, if stored in the zookeeper, you can not use this optioncluster1.kafka.eagle.offset.storage=kafkacluster2.kafka.eagle.offset.storage=kafka# Whether the Kafka performance monitoring diagram is enabledkafka.eagle.metrics.charts=false# Kafka Eagle keeps data for 30 days by defaultkafka.eagle.metrics.retain=30# If offset is out of range occurs, enable this property -- Only suitable for kafka sqlkafka.eagle.sql.fix.error=falsekafka.eagle.sql.topic.records.max=5000# Delete kafka topic token -- Set to delete the topic token, so that administrators can have the right to deletekafka.eagle.topic.token=keadmin# Kafka sasl authenticatecluster1.kafka.eagle.sasl.enable=falsecluster1.kafka.eagle.sasl.protocol=SASL_PLAINTEXTcluster1.kafka.eagle.sasl.mechanism=SCRAM-SHA-256cluster1.kafka.eagle.sasl.jaas.config=org.apache.kafka.common.security.scram.ScramLoginModule required username="admin" password="admin-secret";
# If not set, the value can be emptycluster1.kafka.eagle.sasl.client.id=# Add kafka cluster cgroupscluster1.kafka.eagle.sasl.cgroup.enable=falsecluster1.kafka.eagle.sasl.cgroup.topics=kafka_ads01,kafka_ads02cluster2.kafka.eagle.sasl.enable=truecluster2.kafka.eagle.sasl.protocol=SASL_PLAINTEXTcluster2.kafka.eagle.sasl.mechanism=PLAINcluster2.kafka.eagle.sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required username="admin" password="admin-secret";
cluster2.kafka.eagle.sasl.client.id=cluster2.kafka.eagle.sasl.cgroup.enable=falsecluster2.kafka.eagle.sasl.cgroup.topics=kafka_ads03,kafka_ads04# Default use sqlite to store datakafka.eagle.driver=org.sqlite.JDBC# It is important to note that the '/hadoop/kafka-eagle/db' path must exist.kafka.eagle.url=jdbc:sqlite:/hadoop/kafka-eagle/db/ke.dbkafka.eagle.username=rootkafka.eagle.password=smartloli# <Optional> set mysql address#kafka.eagle.driver=com.mysql.jdbc.Driver#kafka.eagle.url=jdbc:mysql://127.0.0.1:3306/ke?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
#kafka.eagle.username=root#kafka.eagle.password=smartloli