首页 > 代码库 > kafka 0.10.2 部署失败后,重新部署
kafka 0.10.2 部署失败后,重新部署
删除kafka各个节点log目录
删除zookeeper上kafka相关的目录
[root@m1 ~]# zkCli.sh Connecting to localhost:2181 2017-03-22 07:06:47,239 [myid:] - INFO [main:Environment@100] - Client environment:zookeeper.version=3.4.9-1757313, built on 08/23/2016 06:50 GMT 2017-03-22 07:06:47,242 [myid:] - INFO [main:Environment@100] - Client environment:host.name=m1 2017-03-22 07:06:47,242 [myid:] - INFO [main:Environment@100] - Client environment:java.version=1.8.0_121 2017-03-22 07:06:47,245 [myid:] - INFO [main:Environment@100] - Client environment:java.vendor=Oracle Corporation 2017-03-22 07:06:47,245 [myid:] - INFO [main:Environment@100] - Client environment:java.home=/usr/local/soft/jdk/jre 2017-03-22 07:06:47,245 [myid:] - INFO [main:Environment@100] - Client environment:java.class.path=/usr/local/soft/zookeeper-3.4.9/bin/../build/classes:/usr/local/soft/zookeeper-3.4.9/bin/../build/lib/*.jar:/usr/local/soft/zookeeper-3.4.9/bin/../lib/slf4j-log4j12-1.6.1.jar:/usr/local/soft/zookeeper-3.4.9/bin/../lib/slf4j-api-1.6.1.jar:/usr/local/soft/zookeeper-3.4.9/bin/../lib/netty-3.10.5.Final.jar:/usr/local/soft/zookeeper-3.4.9/bin/../lib/log4j-1.2.16.jar:/usr/local/soft/zookeeper-3.4.9/bin/../lib/jline-0.9.94.jar:/usr/local/soft/zookeeper-3.4.9/bin/../zookeeper-3.4.9.jar:/usr/local/soft/zookeeper-3.4.9/bin/../src/java/lib/*.jar:/usr/local/soft/zookeeper-3.4.9/bin/../conf:.:/usr/local/soft/jdk/lib/dt.jar:/usr/local/soft/jdk/lib/tools.jar 2017-03-22 07:06:47,245 [myid:] - INFO [main:Environment@100] - Client environment:java.library.path=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib 2017-03-22 07:06:47,246 [myid:] - INFO [main:Environment@100] - Client environment:java.io.tmpdir=/tmp 2017-03-22 07:06:47,246 [myid:] - INFO [main:Environment@100] - Client environment:java.compiler=<NA> 2017-03-22 07:06:47,246 [myid:] - INFO [main:Environment@100] - Client environment:os.name=Linux 2017-03-22 07:06:47,246 [myid:] - INFO [main:Environment@100] - Client environment:os.arch=amd64 2017-03-22 07:06:47,246 [myid:] - INFO [main:Environment@100] - Client environment:os.version=2.6.32-431.el6.x86_64 2017-03-22 07:06:47,246 [myid:] - INFO [main:Environment@100] - Client environment:user.name=root 2017-03-22 07:06:47,246 [myid:] - INFO [main:Environment@100] - Client environment:user.home=/root 2017-03-22 07:06:47,246 [myid:] - INFO [main:Environment@100] - Client environment:user.dir=/root 2017-03-22 07:06:47,249 [myid:] - INFO [main:ZooKeeper@438] - Initiating client connection, connectString=localhost:2181 sessionTimeout=30000 watcher=org.apache.zookeeper.ZooKeeperMain$MyWatcher@277050dc Welcome to ZooKeeper! 2017-03-22 07:06:47,277 [myid:] - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@1032] - Opening socket connection to server localhost/0:0:0:0:0:0:0:1:2181. Will not attempt to authenticate using SASL (unknown error) JLine support is enabled 2017-03-22 07:06:47,382 [myid:] - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@876] - Socket connection established to localhost/0:0:0:0:0:0:0:1:2181, initiating session 2017-03-22 07:06:47,395 [myid:] - INFO [main-SendThread(localhost:2181):ClientCnxn$SendThread@1299] - Session establishment complete on server localhost/0:0:0:0:0:0:0:1:2181, sessionid = 0x15af60b9055000a, negotiated timeout = 30000 WATCHER:: WatchedEvent state:SyncConnected type:None path:null [zk: localhost:2181(CONNECTED) 0] ls / [cluster, controller_epoch, brokers, zookeeper, admin, isr_change_notification, consumers, config] [zk: localhost:2181(CONNECTED) 1] rmr /brokers [zk: localhost:2181(CONNECTED) 2] rmr /isr_change_notification [zk: localhost:2181(CONNECTED) 3] rmr /consumers [zk: localhost:2181(CONNECTED) 4] ls /cluster [id] [zk: localhost:2181(CONNECTED) 5] ls / [cluster, controller_epoch, zookeeper, admin, config] [zk: localhost:2181(CONNECTED) 6] ls /con controller_epoch config [zk: localhost:2181(CONNECTED) 6] ls /controller_epoch [] [zk: localhost:2181(CONNECTED) 7] ls /config [changes, clients, topics] [zk: localhost:2181(CONNECTED) 8] rmr /config [zk: localhost:2181(CONNECTED) 9]
kafka 0.10.2 部署失败后,重新部署
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。