kafka_2.11-0.11.0.0 installation configuration

1. Upload kafka_2.11-0.11.0.0.tgz
2. unzip

tar -zxvf kafka_2.11-0.11.0.0.tgz -C /usr/local/

3. Modify server.properties

vim server.properties

Content such as

#broker的全局唯一编号,不能重复
broker.id=0
#删除topic功能使能
delete.topic.enable=true
#配置连接Zookeeper集群地址
zookeeper.connect=hadoop102:2181,hadoop103:2181,hadoop104:2181

4. Configure Environment Variables

vim /etc/profile

Configured as follows

#KAFKA_HOME
export KAFKA_HOME=/usr/local/kafka_2.11-0.11.0.0
export  PATH=$PATH:$KAFKA_HOME/bin

5. distributed to hadoop02, hadoop03

scp -r /usr/local/kafka_2.11-0.11.0.0/ hadoop02:/usr/local/
scp -r /usr/local/kafka_2.11-0.11.0.0/ hadoop03:/usr/local/

6. Modify hadoop02 and hadoop03 profile

vim server.properties

Modifications are as follows
hadoop02

broker.id=1

hadoop03

broker.id=2

Guess you like

Origin blog.csdn.net/drl_blogs/article/details/93467376