KAFKA升级0.8.1

kafka 0.8.0 升级 0.8.1 流程

升级很轻松,引用官方的话:

Upgrading from 0.8.0 to 0.8.1

0.8.1 is fully compatible with 0.8. The upgrade can be done one broker at a time by simply bringing it down, updating the code, and
restarting it.

KAFKA启动命令:
JMX_PORT=9997 /opt/kafka_2.9.2-0.8.1/bin/kafka-server-start.sh /opt/kafka_2.9.2-0.8.1/config/server.properties >/dev/null 2>&1 &

KAKFA查询topic:
./kafka-topics.sh –list –zookeeper 1.1.1.1/kafka-0.8.1

KAFKA查询topic详细信息:
./kafka-topics.sh –describe –zookeeper 1.1.1.1/kafka-0.8.1 –topic countinfo

KAFKA leader balance:
/opt/kafka_2.9.2-0.8.1/bin/kafka-preferred-replica-election.sh –zookeeper 1.1.1.1:2181/kafka-0.8.1

KAFKA手动指定zookeeper目录,设置自动leader balance:
server. properties:
1.1.1.1:2181,2.2.2.2:2181,3.3.3.3:2181/kafka-0.8.1
auto.leader.rebalance.enable=true
controlled.shutdown.enable=true

你可能感兴趣的:(KAFKA升级0.8.1)