一、zookeeper集群启动
### --- zookeeper集群启动
~~~ # 在三台Linux上启动Zookeeper
[root@hadoop01 ~]# zkServer.sh start
[root@hadoop02 ~]# zkServer.sh start
[root@hadoop03 ~]# zkServer.sh start
~~~ # 在三台Linux上查看Zookeeper的状态
[root@hadoop01 ~]# zkServer.sh status
ZooKeeper JMX enabled by default
Using config: /opt/yanqi/servers/zookeeper-3.4.14/bin/../conf/zoo.cfg
Mode: follower
[root@hadoop02 ~]# zkServer.sh status
ZooKeeper JMX enabled by default
Using config: /opt/yanqi/servers/zookeeper-3.4.14/bin/../conf/zoo.cfg
Mode: follower
[root@hadoop03 ~]# zkServer.sh status
ZooKeeper JMX enabled by default
Using config: /opt/yanqi/servers/zookeeper-3.4.14/bin/../conf/zoo.cfg
Mode: leader
二、kafka集群启动
### --- 启动kafka集群:前台启动
[root@hadoop01 ~]# kafka-server-start.sh /opt/yanqi/servers/kafka_2.12/config/server.properties
~~~ # Hadoop01节点的Cluster Id:
INFO Cluster ID = 5CZTD5JMTpuw9mjgpTVimQ (kafka.server.KafkaServer)
~~~ # Hadoop02节点的Cluster Id:
root@hadoop02 ~]# kafka-server-start.sh /opt/yanqi/servers/kafka_2.12/config/server.proper