eclipse连接hbase集群报错
14/05/07 15:28:06INFO zookeeper.ZooKeeper:Client environment:java.io.tmpdir=/tmp
14/05/07 15:28:06INFO zookeeper.ZooKeeper:Client environment:java.compiler=<NA>
14/05/07 15:28:06INFO zookeeper.ZooKeeper:Client environment:os.name=Linux
14/05/07 15:28:06INFO zookeeper.ZooKeeper:Client environment:os.arch=i386
14/05/07 15:28:06INFO zookeeper.ZooKeeper:Client environment:os.version=3.2.0-56-generic-pae
14/05/07 15:28:06INFO zookeeper.ZooKeeper:Client environment:user.name=seclab
14/05/07 15:28:06INFO zookeeper.ZooKeeper:Client environment:user.home=/home/lcl
14/05/07 15:28:06INFO zookeeper.ZooKeeper:Client environment:user.dir=/usr/lib/jvm/java-6-sun-1.6.0.06/websocketServer/src/main/java/org/conan/websocket/HbaseClient
14/05/07 15:28:06INFO zookeeper.ZooKeeper:Initiating client connection, connectString=10.10.102.215:2181 sessionTimeout=60000 watcher=hconnection-0x1d36dfe, quorum=10.10.102.215:2181, baseZNode=/hbase
14/05/07 15:28:06INFO zookeeper.RecoverableZooKeeper:Process identifier=hconnection-0x1d36dfe connecting to ZooKeeper ensemble=10.10.102.215:2181
java.io.IOException: java.lang.reflect.InvocationTargetException
at org.apache.hadoop.hbase.client.HConnectionManager.createConnection(HConnectionManager.java:416)
at org.apache.hadoop.hbase.client.HConnectionManager.createConnection(HConnectionManager.java:393)
at org.apache.hadoop.hbase.client.HConnectionManager.getConnection(HConnectionManager.java:274)
at org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:183)
at lcl_hbase.HBaseTestCase.creatTable(HBaseTestCase.java:30)
at lcl_hbase.HBaseTestCase.main(HBaseTestCase.java:69)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.apache.hadoop.hbase.client.HConnectionManager.createConnection(HConnectionManager.java:414)
... 5 more
Caused by: java.lang.NoClassDefFoundError: org/cloudera/htrace/Trace
at org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.exists(RecoverableZooKeeper.java:195)
at org.apache.hadoop.hbase.zookeeper.ZKUtil.checkExists(ZKUtil.java:479)
at org.apache.hadoop.hbase.zookeeper.ZKClusterId.readClusterIdZNode(ZKClusterId.java:65)
at org.apache.hadoop.hbase.client.ZooKeeperRegistry.getClusterId(ZooKeeperRegistry.java:83)
at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.retrieveClusterId(HConnectionManager.java:857)
at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.<init>(HConnectionManager.java:662)
... 10 more
Caused by: java.lang.ClassNotFoundException: org.cloudera.htrace.Trace
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
... 16 more
14/05/07 15:28:06INFO zookeeper.ClientCnxn:Opening socket connection to server master/10.10.102.215:2181. Will not attempt to authenticate using SASL (Unable to locate a login configuration)
有谁遇到过啊。。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
请问这个问题怎么解决的
jar包有呢,在还是这个错呢
问题解决了,是缺少htrace-core-2.04.jar的包。将hbase/lib/htrace-core-2.04.jar导入到eclipse项目中。