代码:
HBaseTestCase.createTable(tableName, columnFamily);
HBaseTestCase.put(tableName, row, columnFamily, column, data);
HBaseTestCase.get(tableName, row);
HBaseTestCase.scan(tableName);
配置:
hbase.rootdir
hdfs://192.168.1.136:9000/hbase
hbase.cluster.distributed
true
hbase.master
hdfs://192.168.1.136:60000
hbase.zookeeper.quorum
192.168.1.136,192.168.1.137,192.168.1.138
zookeeper.session.timeout
60000
hbase.master.maxclockskew
180000
Time difference of regionserver from master
出错信息:
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=
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.
|