Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1216048
  • 博文数量: 259
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 2518
  • 用 户 组: 普通用户
  • 注册时间: 2012-10-13 16:12
个人简介

科技改变世界,技术改变人生。

文章分类

全部博文(259)

分类: 大数据

2015-10-12 12:54:37

storm supervisor启动失败,查看日志发现报错如下:

2015-10-12 11:20:24 b.s.d.supervisor [ERROR] Error on initialization of server mk-supervisor
java.lang.NoSuchMethodError: org.apache.zookeeper.ZooKeeper.<init>(Ljava/lang/String;ILorg/apache/zookeeper/Watcher;Z)V
        at com.netflix.curator.utils.DefaultZookeeperFactory.newZooKeeper(DefaultZookeeperFactory.java:27) ~[curator-client-1.3.3.jar:na]
        at com.netflix.curator.framework.imps.CuratorFrameworkImpl$2.newZooKeeper(CuratorFrameworkImpl.java:166) ~[curator-framework-1.3.3.jar:na]
        at com.netflix.curator.HandleHolder$1.getZooKeeper(HandleHolder.java:94) ~[curator-client-1.3.3.jar:na]
        at com.netflix.curator.HandleHolder.getZooKeeper(HandleHolder.java:55) ~[curator-client-1.3.3.jar:na]
        at com.netflix.curator.ConnectionState.reset(ConnectionState.java:210) ~[curator-client-1.3.3.jar:na]
        at com.netflix.curator.ConnectionState.start(ConnectionState.java:124) ~[curator-client-1.3.3.jar:na]
        at com.netflix.curator.CuratorZookeeperClient.start(CuratorZookeeperClient.java:182) ~[curator-client-1.3.3.jar:na]
        at com.netflix.curator.framework.imps.CuratorFrameworkImpl.start(CuratorFrameworkImpl.java:231) ~[curator-framework-1.3.3.jar:na]
        at backtype.storm.zookeeper$mk_client.doInvoke(zookeeper.clj:75) ~[storm-core-0.9.1.2.1.7.0-784.jar:0.9.1.2.1.7.0-784]
        at clojure.lang.RestFn.invoke(RestFn.java:494) [clojure-1.4.0.jar:na]
        at backtype.storm.cluster$mk_distributed_cluster_state.invoke(cluster.clj:40) ~[storm-core-0.9.1.2.1.7.0-784.jar:0.9.1.2.1.7.0-784]
        at backtype.storm.cluster$mk_storm_cluster_state.invoke(cluster.clj:216) ~[storm-core-0.9.1.2.1.7.0-784.jar:0.9.1.2.1.7.0-784]
        at backtype.storm.daemon.supervisor$supervisor_data.invoke(supervisor.clj:190) ~[storm-core-0.9.1.2.1.7.0-784.jar:0.9.1.2.1.7.0-784]
        at backtype.storm.daemon.supervisor$fn__4931$exec_fn__1329__auto____4932.invoke(supervisor.clj:364) ~[storm-core-0.9.1.2.1.7.0-784.jar:0.9.1.2.1.7.0-784]
        at clojure.lang.AFn.applyToHelper(AFn.java:167) [clojure-1.4.0.jar:na]
        at clojure.lang.AFn.applyTo(AFn.java:151) [clojure-1.4.0.jar:na]
        at clojure.core$apply.invoke(core.clj:601) ~[clojure-1.4.0.jar:na]
        at backtype.storm.daemon.supervisor$fn__4931$mk_supervisor__4956.doInvoke(supervisor.clj:360) [storm-core-0.9.1.2.1.7.0-784.jar:0.9.1.2.1.7.0-784]
        at clojure.lang.RestFn.invoke(RestFn.java:436) [clojure-1.4.0.jar:na]
        at backtype.storm.daemon.supervisor$_launch.invoke(supervisor.clj:516) [storm-core-0.9.1.2.1.7.0-784.jar:0.9.1.2.1.7.0-784]
        at backtype.storm.daemon.supervisor$_main.invoke(supervisor.clj:545) [storm-core-0.9.1.2.1.7.0-784.jar:0.9.1.2.1.7.0-784]
        at clojure.lang.AFn.applyToHelper(AFn.java:159) [clojure-1.4.0.jar:na]
        at clojure.lang.AFn.applyTo(AFn.java:151) [clojure-1.4.0.jar:na]
        at backtype.storm.daemon.supervisor.main(Unknown Source) [storm-core-0.9.1.2.1.7.0-784.jar:0.9.1.2.1.7.0-784]
2015-10-12 11:20:24 b.s.util [INFO] Halting process: ("Error on initialization")


网上搜索了下,有的说的zookeeper jar冲突问题,
我在/usr/lib/storm/lib下发现有多个zookeeper jar包
zookeeper-3.3.4.jar
zookeeper-3.4.5.2.1.7.0-784.jar
zookeeper.jar -> /usr/lib/zookeeper/zookeeper.jar
我将zookeeper-3.3.4.jar删除,之后启动supervisor正常了。

阅读(4499) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~