eclipse连接hbase集群报错

发布于 2021-12-01 04:00:24 字数 3781 浏览 1001 评论 3

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

柒夜笙歌凉 2021-12-04 04:29:31

请问这个问题怎么解决的

葬花如无物 2021-12-02 21:09:00

jar包有呢,在还是这个错呢

三月梨花 2021-12-01 18:01:53

问题解决了,是缺少htrace-core-2.04.jar的包。将hbase/lib/htrace-core-2.04.jar导入到eclipse项目中。

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文