kafka Centos7.2 stand-alone cluster construction

The premise is that the zk cluster has been installed

1. Download   kafka_2.11-1.0.0.tgz from http://kafka.apache.org/documentation.html

 

2. Unzip   tar -zxvf kafka_2.11-1.0.0.tgz

 

3. Modify the configuration file Enter the config directory to modify the server.properties file

 

 Modify your own logs directory and set the number of partitions

 

Set zk connection address

After saving, copy the same 2 points, change the port and log log directory, and the broker.id respectively 

 Modify the server2.properties file

 

 Modify the server3.properties file

 

keep

Start three kafka services in sequence

 Start the first service

  ./kafka-server-start.sh  -daemon  ../config/server.properties &  

 

 start the second service

  ./kafka-server-start.sh  -daemon  ../config/server2.properties &  

 

 Start the third service

  ./kafka-server-start.sh  -daemon  ../config/server3.properties &  

 

 -daemon    daemon running  

& Background process

 All start up

View tipic list

./kafka-topics.sh --list --zookeeper xxxxxx:2182

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324953933&siteId=291194637