eclipse 连接 hbase出错

winnkl 2012-12-02 04:36:25
代码:
HBaseTestCase.createTable(tableName, columnFamily);
HBaseTestCase.put(tableName, row, columnFamily, column, data);
HBaseTestCase.get(tableName, row);
HBaseTestCase.scan(tableName);

配置:
<property>
<name>hbase.rootdir</name>
<value>hdfs://192.168.1.136:9000/hbase</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>

<property>
<name>hbase.master</name>
<value>hdfs://192.168.1.136:60000</value>
</property>

<property>
<name>hbase.zookeeper.quorum</name>
<value>192.168.1.136,192.168.1.137,192.168.1.138</value>
</property>

<property>
<name>zookeeper.session.timeout</name>
<value>60000</value>
</property>

<property>
<name>hbase.master.maxclockskew</name>
<value>180000</value>
<description>Time difference of regionserver from master</description>
</property>

出错信息:
12/12/02 16:19:43 INFO zookeeper.ZooKeeper: Client environment:zookeeper.version=3.4.3-1240972, built on 02/06/2012 10:48 GMT
12/12/02 16:19:43 INFO zookeeper.ZooKeeper: Client environment:host.name=PC-201209301037
12/12/02 16:19:43 INFO zookeeper.ZooKeeper: Client environment:java.version=1.6.0-beta2
12/12/02 16:19:43 INFO zookeeper.ZooKeeper: Client environment:java.vendor=Sun Microsystems Inc.
12/12/02 16:19:43 INFO zookeeper.ZooKeeper: Client environment:java.home=D:\java\jdk1.6.0\jre
12/12/02 16:19:43 INFO zookeeper.ZooKeeper: Client environment:java.class.path=F:\workspace_hadoop\hadoop_test\bin;F:\workspace_hadoop\hadoop_test\lib\commons-cli-1.2.jar;F:\workspace_hadoop\hadoop_test\lib\commons-configuration-1.5.jar;F:\workspace_hadoop\hadoop_test\lib\commons-httpclient-3.0.1.jar;F:\workspace_hadoop\hadoop_test\lib\commons-lang-2.4.jar;F:\workspace_hadoop\hadoop_test\lib\commons-logging.jar;F:\workspace_hadoop\hadoop_test\lib\hadoop-ant-1.0.0.jar;F:\workspace_hadoop\hadoop_test\lib\hadoop-core-1.0.0.jar;F:\workspace_hadoop\hadoop_test\lib\hadoop-examples-1.0.0.jar;F:\workspace_hadoop\hadoop_test\lib\hadoop-test-1.0.0.jar;F:\workspace_hadoop\hadoop_test\lib\hadoop-tools-1.0.0.jar;F:\workspace_hadoop\hadoop_test\lib\jackson-core-asl-1.0.1.jar;F:\workspace_hadoop\hadoop_test\lib\jackson-mapper-asl-1.0.1.jar;F:\workspace_innkl\Innkl_lib\lib\hbase\hbase-0.94.2.jar;F:\workspace_innkl\Innkl_lib\lib\hbase\hbase-0.94.2-tests.jar;F:\workspace_innkl\Innkl_lib\lib\hbase\zookeeper-3.4.3.jar;F:\workspace_hadoop\Innkl_lib\lib\log\log4j-1.2.9.jar;F:\workspace_hadoop\Innkl_lib\lib\common\commons-logging-1.0.4.jar;F:\workspace_innkl\Innkl_lib\lib\hbase\slf4j-api-1.4.3.jar;F:\workspace_innkl\Innkl_lib\lib\hbase\slf4j-log4j12-1.4.3.jar
12/12/02 16:19:43 INFO zookeeper.ZooKeeper: Client environment:java.library.path=D:\java\jdk1.6.0\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;D:/java/jdk1.6.0/bin/../jre/bin/client;D:/java/jdk1.6.0/bin/../jre/bin;D:/java/jdk1.6.0/bin/../jre/lib/i386;C:\Program Files (x86)\Common Files\NetSarang;f:\oracle\product\10.2.0\db_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\java\jdk1.6.0\bin;D:\java\jdk1.6.0\jre\bin;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;D:\Program Files (x86)\TortoiseSVN\bin;D:\cygwin\bin;D:\Program Files\eclipse-jee-juno-win32\eclipse;
12/12/02 16:19:43 INFO zookeeper.ZooKeeper: Client environment:java.io.tmpdir=C:\Users\ADMINI~1\AppData\Local\Temp\
12/12/02 16:19:43 INFO zookeeper.ZooKeeper: Client environment:java.compiler=<NA>
12/12/02 16:19:43 INFO zookeeper.ZooKeeper: Client environment:os.name=Windows Vista
12/12/02 16:19:43 INFO zookeeper.ZooKeeper: Client environment:os.arch=x86
12/12/02 16:19:43 INFO zookeeper.ZooKeeper: Client environment:os.version=6.1
12/12/02 16:19:43 INFO zookeeper.ZooKeeper: Client environment:user.name=hadoop
12/12/02 16:19:43 INFO zookeeper.ZooKeeper: Client environment:user.home=C:\Users\Administrator
12/12/02 16:19:43 INFO zookeeper.ZooKeeper: Client environment:user.dir=F:\workspace_hadoop\hadoop_test
12/12/02 16:19:43 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=192.168.1.137:2181,192.168.1.136:2181,192.168.1.138:2181 sessionTimeout=60000 watcher=hconnection
12/12/02 16:19:43 INFO zookeeper.ClientCnxn: Opening socket connection to server /192.168.1.136:2181
12/12/02 16:19:43 INFO zookeeper.RecoverableZooKeeper: The identifier of this process is 3496@PC-201209301037
12/12/02 16:19:43 WARN client.ZooKeeperSaslClient: SecurityException: java.lang.SecurityException: 无法定位登录配置 occurred when trying to find JAAS configuration.
12/12/02 16:19:43 INFO client.ZooKeeperSaslClient: Client will not SASL-authenticate because the default JAAS configuration section 'Client' could not be found. If you are not using SASL, you may ignore this. On the other hand, if you expected SASL to work, please fix your JAAS configuration.
12/12/02 16:19:43 INFO zookeeper.ClientCnxn: Socket connection established to hadoopmaster/192.168.1.136:2181, initiating session
12/12/02 16:19:43 WARN zookeeper.ClientCnxn: Session 0x0 for server hadoopmaster/192.168.1.136:2181, unexpected error, closing socket connection and attempting reconnect
java.lang.NoSuchMethodError: org.apache.log4j.Logger.isTraceEnabled()Z
at org.slf4j.impl.Log4jLoggerAdapter.isTraceEnabled(Log4jLoggerAdapter.java:81)
at org.apache.zookeeper.ClientCnxnSocket.readConnectResult(ClientCnxnSocket.java:118)
at org.apache.zookeeper.ClientCnxnSocketNIO.doIO(ClientCnxnSocketNIO.java:79)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:291)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1035)
12/12/02 16:19:43 WARN zookeeper.RecoverableZooKeeper: Possibly transient ZooKeeper exception: org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/master
12/12/02 16:19:43 INFO util.RetryCounter: Sleeping 2000ms before retry #1...
12/12/02 16:19:44 INFO zookeeper.ClientCnxn: Opening socket connection to server /192.168.1.138:2181
12/12/02 16:19:44 WARN client.ZooKeeperSaslClient: SecurityException: java.lang.SecurityException: 无法定位登录配置 occurred when trying to find JAAS configuration.
12/12/02 16:19:44 INFO client.ZooKeeperSaslClient: Client will not SASL-authenticate because the default JAAS configuration section 'Client' could not be found. If you are not using SASL, you may ignore this. On the other hand, if you expected SASL to work, please fix your JAAS configuration.
12/12/02 16:19:44 INFO zookeeper.ClientCnxn: Socket connection established to hadoopslave2/192.168.1.138:2181, initiating session
12/12/02 16:19:44 WARN zookeeper.ClientCnxn: Session 0x0 for server hadoopslave2/192.168.1.138:2181, unexpected error, closing socket connection and attempting reconnect
java.lang.NoSuchMethodError: org.apache.log4j.Logger.isTraceEnabled()Z
at org.slf4j.impl.Log4jLoggerAdapter.isTraceEnabled(Log4jLoggerAdapter.java:81)
at org.apache.zookeeper.ClientCnxnSocket.readConnectResult(ClientCnxnSocket.java:118)
at org.apache.zookeeper.ClientCnxnSocketNIO.doIO(ClientCnxnSocketNIO.java:79)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:291)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1035)
12/12/02 16:19:45 INFO zookeeper.ClientCnxn: Opening socket connection to server /192.168.1.137:2181
12/12/02 16:19:45 WARN client.ZooKeeperSaslClient: SecurityException: java.lang.SecurityException: 无法定位登录配置 occurred when trying to find JAAS configuration.
12/12/02 16:19:45 INFO client.ZooKeeperSaslClient: Client will not SASL-authenticate because the default JAAS configuration section 'Client' could not be found. If you are not using SASL, you may ignore this. On the other hand, if you expected SASL to work, please fix your JAAS configuration.
12/12/02 16:19:45 INFO zookeeper.ClientCnxn: Socket connection established to hadoopslave1/192.168.1.137:2181, initiating session
12/12/02 16:19:45 WARN zookeeper.ClientCnxn: Session 0x0 for server hadoopslave1/192.168.1.137:2181, unexpected error, closing socket connection and attempting reconnect
java.lang.NoSuchMethodError: org.apache.log4j.Logger.isTraceEnabled()Z
at org.slf4j.impl.Log4jLoggerAdapter.isTraceEnabled(Log4jLoggerAdapter.java:81)
at org.apache.zookeeper.ClientCnxnSocket.readConnectResult(ClientCnxnSocket.java:118)
at org.apache.zookeeper.ClientCnxnSocketNIO.doIO(ClientCnxnSocketNIO.java:79)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:291)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1035)
12/12/02 16:19:46 INFO zookeeper.ClientCnxn: Opening socket connection to server hadoopmaster/192.168.1.136:2181
12/12/02 16:19:46 WARN client.ZooKeeperSaslClient: SecurityException: java.lang.SecurityException: 无法定位登录配置 occurred when trying to find JAAS configuration.
...全文
694 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
晚起的鸟 2013-12-04
  • 打赏
  • 举报
回复
信息 上面是否还有其它内容?看样子是zookeeper没有连上,看zookeeper日志吧
ukhjjgh 2013-12-03
  • 打赏
  • 举报
回复
好像看不懂的节奏。
少主无翼 2013-12-03
  • 打赏
  • 举报
回复
好像和ipv6有关 具体还是Google
GeorgrEcho 2013-12-03
  • 打赏
  • 举报
回复
碰到 同样的 问题

20,809

社区成员

发帖
与我相关
我的任务
社区描述
Hadoop生态大数据交流社区,致力于有Hadoop,hive,Spark,Hbase,Flink,ClickHouse,Kafka,数据仓库,大数据集群运维技术分享和交流等。致力于收集优质的博客
社区管理员
  • 分布式计算/Hadoop社区
  • 涤生大数据
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧