One of the exceptions said LoginModule class not found. You're running IBM JVM, right ?
Cheers On Jun 8, 2014, at 9:02 PM, "破千" <[email protected]> wrote: > Hi everybody, > I'm new here getting started with hbase these days and I've install a > standalone HBase instance in one machine according to 'quick start' on > 'hbase.apache.org' website. But I can't connect to hbase with another machine > using eclispe. Could anyone give me some guide so I can follow it step by > step. I've set the hbase.zookeeper.quorum porperty in hbase-site.xml. some of > the error messages are as follows: > 14/06/09 11:51:42 INFO client.HConnectionManager$HConnectionImplementation: > Closed zookeeper sessionid=0x0 > 14/06/09 11:51:42 INFO zookeeper.ZooKeeper: Session: 0x0 closed > 14/06/09 11:51:42 WARN client.HConnectionManager: Error obtaining current > user, skipping username in HConnectionKey > java.io.IOException: failure to login > at > org.apache.hadoop.security.UserGroupInformation.getLoginUser(UserGroupInformation.java:490) > at > org.apache.hadoop.security.UserGroupInformation.getCurrentUser(UserGroupInformation.java:452) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) > at java.lang.reflect.Method.invoke(Method.java:611) > at org.apache.hadoop.hbase.util.Methods.call(Methods.java:37) > at org.apache.hadoop.hbase.security.User.call(User.java:624) > at org.apache.hadoop.hbase.security.User.callStatic(User.java:614) > at org.apache.hadoop.hbase.security.User.access$300(User.java:52) > at > org.apache.hadoop.hbase.security.User$SecureHadoopUser.<init>(User.java:431) > at > org.apache.hadoop.hbase.security.User$SecureHadoopUser.<init>(User.java:426) > at org.apache.hadoop.hbase.security.User.getCurrent(User.java:177) > at > org.apache.hadoop.hbase.client.UserProvider.getCurrent(UserProvider.java:78) > at > org.apache.hadoop.hbase.client.UserProvider.getCurrentUserName(UserProvider.java:62) > at > org.apache.hadoop.hbase.client.HConnectionManager$HConnectionKey.<init>(HConnectionManager.java:473) > at > org.apache.hadoop.hbase.client.HConnectionManager.getConnection(HConnectionManager.java:198) > at org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:132) > at hbase.mypackage.HBaseTest.creatTable(HBaseTest.java:36) > at hbase.mypackage.HBaseTest.main(HBaseTest.java:135) > Caused by: javax.security.auth.login.LoginException: unable to find > LoginModule class: com.ibm.security.auth.module.NTLoginModule > at javax.security.auth.login.LoginContext.invoke(LoginContext.java:834) > at javax.security.auth.login.LoginContext.access$000(LoginContext.java:209) > at javax.security.auth.login.LoginContext$5.run(LoginContext.java:732) > at java.security.AccessController.doPrivileged(AccessController.java:362) > at > javax.security.auth.login.LoginContext.invokeCreatorPriv(LoginContext.java:729) > at javax.security.auth.login.LoginContext.login(LoginContext.java:599) > at > org.apache.hadoop.security.UserGroupInformation.getLoginUser(UserGroupInformation.java:471) > ... 19 more > 14/06/09 11:51:42 INFO zookeeper.ClientCnxn: EventThread shut down > 14/06/09 11:51:43 INFO zookeeper.ZooKeeper: Initiating client connection, > connectString=9.123.157.177:2181 sessionTimeout=180000 watcher=hconnection > 14/06/09 11:51:43 INFO zookeeper.RecoverableZooKeeper: The identifier of this > process is 5032@lee-PC > 14/06/09 11:51:48 INFO zookeeper.ClientCnxn: Opening socket connection to > server 9.123.157.177/9.123.157.177:2181. Will not attempt to authenticate > using SASL (Unable to locate a login configuration) > 14/06/09 11:52:09 WARN zookeeper.ClientCnxn: Session 0x0 for server null, > unexpected error, closing socket connection and attempting reconnect > java.net.ConnectException: Connection timed out: no further information > at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) > at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:614) > at > org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:350) > at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068) > 14/06/09 11:52:09 WARN zookeeper.RecoverableZooKeeper: Possibly transient > ZooKeeper exception: > org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode > = ConnectionLoss for /hbase/hbaseid > 14/06/09 11:52:09 INFO util.RetryCounter: Sleeping 2000ms before retry #1... > 14/06/09 11:52:10 INFO zookeeper.ClientCnxn: Opening socket connection to > server 9.123.157.177/9.123.157.177:2181. Will not attempt to authenticate > using SASL (Unable to locate a login configuration) > 14/06/09 11:52:31 WARN zookeeper.ClientCnxn: Session 0x0 for server null, > unexpected error, closing socket connection and attempting reconnect > java.net.ConnectException: Connection timed out: no further information > at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) > at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:614) > at > org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:350) > at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068) > 14/06/09 11:52:31 WARN zookeeper.RecoverableZooKeeper: Possibly transient > ZooKeeper exception: > org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode > = ConnectionLoss for /hbase/hbaseid > 14/06/09 11:52:31 INFO util.RetryCounter: Sleeping 4000ms before retry #2... > 14/06/09 11:52:32 INFO zookeeper.ClientCnxn: Opening socket connection to > server 9.123.157.177/9.123.157.177:2181. Will not attempt to authenticate > using SASL (Unable to locate a login configuration) > 14/06/09 11:52:53 WARN zookeeper.ClientCnxn: Session 0x0 for server null, > unexpected error, closing socket connection and attempting reconnect > java.net.ConnectException: Connection timed out: no further information > at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) > at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:614) > at > org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:350) > at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068) > 14/06/09 11:52:53 WARN zookeeper.RecoverableZooKeeper: Possibly transient > ZooKeeper exception: > org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode > = ConnectionLoss for /hbase/hbaseid > 14/06/09 11:52:53 INFO util.RetryCounter: Sleeping 8000ms before retry #3... > 14/06/09 11:52:54 INFO zookeeper.ClientCnxn: Opening socket connection to > server 9.123.157.177/9.123.157.177:2181. Will not attempt to authenticate > using SASL (Unable to locate a login configuration) > 14/06/09 11:53:15 WARN zookeeper.ClientCnxn: Session 0x0 for server null, > unexpected error, closing socket connection and attempting reconnect > java.net.ConnectException: Connection timed out: no further information > > Thanks very much!
