I mean of course server null means that hbase.zookeeper.quorum config property is unset. And the two most common reasons are:
1. Not defined in the site file 2. Configuration object not created with HBaseConfiguration.create() I hope this is clearer. On May 31, 2012, at 8:59 PM, Andrew Purtell <[email protected]> wrote: > Server null usually means you haven't configured hbase.zookeeper.quorum in > your client's hbase-site.xml file. And that is usually because you are using > a Configuration not created by HBaseConfiguration.create() > > If so the JAAS warning is a red herring. > > On May 31, 2012, at 8:52 PM, Amit Sela <[email protected]> wrote: > >> I'm trying to run a test for HBase (some think we wrote, internal) on my >> laptop - runs perfectly with the old versions of Hadoop, HBase and >> ZooKeeeper. >> >> After deploying the new versions and re-compiling our code, I run the test. >> >> When I try to instantiate "new HBaseAdmin(getConfiguration())" - where the >> configuration is from HBaseTestingUtility, I get the following on the >> console output: >> >> 2012-05-31 21:36:51.728 [main-SendThread(localhost.localdomain:2181)] WARN >> org.apache.zookeeper.client.ZooKeeperSaslClient - >> SecurityException: java.lang.SecurityException: Unable to locate a login >> configuration occurred when trying to find JAAS configuration. >> 2012-05-31 21:36:51.741 [main-SendThread(localhost.localdomain:2181)] WARN >> org.apache.zookeeper.ClientCnxn - Session 0x0 >> for server null, unexpected error, closing socket connection and attempting >> reconnect >> java.net.ConnectException: Connection refused >> at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.6.0_31] >> at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567) >> ~[na:1.6.0_31] >> at >> org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:286) >> ~[zookeeper-3.4.3.jar:3.4.3-1240972] >> at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1035) >> ~[zookeeper-3.4.3.jar:3.4.3-1240972] >> 2012-05-31 21:36:51.852 [main] WARN >> org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper - Possibly >> transient ZooKeeper exception: >> org.apache.zookeeper.KeeperException$ConnectionLossException: >> KeeperErrorCode = ConnectionLoss for /hbase/master >> 2012-05-31 21:36:52.847 [main-SendThread(localhost.localdomain:2181)] WARN >> org.apache.zookeeper.client.ZooKeeperSaslClient - >> SecurityException: java.lang.SecurityException: Unable to locate a login >> configuration occurred when trying to find JAAS configuration. >> 2012-05-31 21:36:52.848 [main-SendThread(localhost.localdomain:2181)] WARN >> org.apache.zookeeper.ClientCnxn - Session 0x0 >> for server null, unexpected error, closing socket connection and attempting >> reconnect >> java.net.ConnectException: Connection refused >> at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.6.0_31] >> at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567) >> ~[na:1.6.0_31] >> at >> org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:286) >> ~[zookeeper-3.4.3.jar:3.4.3-1240972] >> at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1035) >> ~[zookeeper-3.4.3.jar:3.4.3-1240972] >> 2012-05-31 21:36:53.949 [main-SendThread(localhost.localdomain:2181)] WARN >> org.apache.zookeeper.client.ZooKeeperSaslClient - >> SecurityException: java.lang.SecurityException: Unable to locate a login >> configuration occurred when trying to find JAAS configuration. >> 2012-05-31 21:36:53.951 [main-SendThread(localhost.localdomain:2181)] WARN >> org.apache.zookeeper.ClientCnxn - Session 0x0 >> for server null, unexpected error, closing socket connection and attempting >> reconnect >> java.net.ConnectException: Connection refused >> at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.6.0_31] >> at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567) >> ~[na:1.6.0_31] >> at >> org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:286) >> ~[zookeeper-3.4.3.jar:3.4.3-1240972] >> at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1035) >> ~[zookeeper-3.4.3.jar:3.4.3-1240972] >> 2012-05-31 21:36:54.052 [main] WARN >> org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper - Possibly >> transient ZooKeeper exception: >> org.apache.zookeeper.KeeperException$ConnectionLossException: >> KeeperErrorCode = ConnectionLoss for /hbase/master >> 2012-05-31 21:36:55.052 [main-SendThread(localhost.localdomain:2181)] WARN >> org.apache.zookeeper.client.ZooKeeperSaslClient - >> SecurityException: java.lang.SecurityException: Unable to locate a login >> configuration occurred when trying to find JAAS configuration. >> 2012-05-31 21:36:55.053 [main-SendThread(localhost.localdomain:2181)] WARN >> org.apache.zookeeper.ClientCnxn - Session 0x0 >> for server null, unexpected error, closing socket connection and attempting >> reconnect >> java.net.ConnectException: Connection refused >> at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.6.0_31] >> at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567) >> ~[na:1.6.0_31] >> at >> org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:286) >> ~[zookeeper-3.4.3.jar:3.4.3-1240972] >> at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1035) >> ~[zookeeper-3.4.3.jar:3.4.3-1240972] >> 2012-05-31 21:36:56.155 [main-SendThread(localhost.localdomain:2181)] WARN >> org.apache.zookeeper.client.ZooKeeperSaslClient - >> SecurityException: java.lang.SecurityException: Unable to locate a login >> configuration occurred when trying to find JAAS configuration. >> 2012-05-31 21:36:56.156 [main-SendThread(localhost.localdomain:2181)] WARN >> org.apache.zookeeper.ClientCnxn - Session 0x0 >> for server null, unexpected error, closing socket connection and attempting >> reconnect >> java.net.ConnectException: Connection refused >> at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.6.0_31] >> at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567) >> ~[na:1.6.0_31] >> at >> org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:286) >> ~[zookeeper-3.4.3.jar:3.4.3-1240972] >> at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1035) >> ~[zookeeper-3.4.3.jar:3.4.3-1240972] >> 2012-05-31 21:36:57.258 [main-SendThread(localhost.localdomain:2181)] WARN >> org.apache.zookeeper.client.ZooKeeperSaslClient - >> SecurityException: java.lang.SecurityException: Unable to locate a login >> configuration occurred when trying to find JAAS configuration. >> 2012-05-31 21:36:57.259 [main-SendThread(localhost.localdomain:2181)] WARN >> org.apache.zookeeper.ClientCnxn - Session 0x0 >> for server null, unexpected error, closing socket connection and attempting >> reconnect >> java.net.ConnectException: Connection refused >> at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.6.0_31] >> at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567) >> ~[na:1.6.0_31] >> at >> org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:286) >> ~[zookeeper-3.4.3.jar:3.4.3-1240972] >> at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1035) >> ~[zookeeper-3.4.3.jar:3.4.3-1240972] >> 2012-05-31 21:36:58.360 [main-SendThread(localhost.localdomain:2181)] WARN >> org.apache.zookeeper.client.ZooKeeperSaslClient - >> SecurityException: java.lang.SecurityException: Unable to locate a login >> configuration occurred when trying to find JAAS configuration. >> 2012-05-31 21:36:58.361 [main-SendThread(localhost.localdomain:2181)] WARN >> org.apache.zookeeper.ClientCnxn - Session 0x0 >> for server null, unexpected error, closing socket connection and attempting >> reconnect >> java.net.ConnectException: Connection refused >> at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.6.0_31] >> at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567) >> ~[na:1.6.0_31] >> at >> org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:286) >> ~[zookeeper-3.4.3.jar:3.4.3-1240972] >> at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1035) >> ~[zookeeper-3.4.3.jar:3.4.3-1240972] >> 2012-05-31 21:36:58.463 [main] WARN >> org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper - Possibly >> transient ZooKeeper exception: >> org.apache.zookeeper.KeeperException$ConnectionLossException: >> KeeperErrorCode = ConnectionLoss for /hbase/master >> 2012-05-31 21:36:59.463 [main-SendThread(localhost.localdomain:2181)] WARN >> org.apache.zookeeper.client.ZooKeeperSaslClient - >> SecurityException: java.lang.SecurityException: Unable to locate a login >> configuration occurred when trying to find JAAS configuration. >> 2012-05-31 21:36:59.464 [main-SendThread(localhost.localdomain:2181)] WARN >> org.apache.zookeeper.ClientCnxn - Session 0x0 >> for server null, unexpected error, closing socket connection and attempting >> reconnect >> java.net.ConnectException: Connection refused >> at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.6.0_31] >> at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567) >> ~[na:1.6.0_31] >> at >> org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:286) >> ~[zookeeper-3.4.3.jar:3.4.3-1240972] >> at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1035) >> ~[zookeeper-3.4.3.jar:3.4.3-1240972] >> 2012-05-31 21:37:00.565 [main-SendThread(localhost.localdomain:2181)] WARN >> org.apache.zookeeper.client.ZooKeeperSaslClient - >> SecurityException: java.lang.SecurityException: Unable to locate a login >> configuration occurred when trying to find JAAS configuration. >> 2012-05-31 21:37:00.566 [main-SendThread(localhost.localdomain:2181)] WARN >> org.apache.zookeeper.ClientCnxn - Session 0x0 >> for server null, unexpected error, closing socket connection and attempting >> reconnect >> java.net.ConnectException: Connection refused >> at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.6.0_31] >> at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567) >> ~[na:1.6.0_31] >> at >> org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:286) >> ~[zookeeper-3.4.3.jar:3.4.3-1240972] >> at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1035) >> ~[zookeeper-3.4.3.jar:3.4.3-1240972] >> 2012-05-31 21:37:01.667 [main-SendThread(localhost.localdomain:2181)] WARN >> org.apache.zookeeper.client.ZooKeeperSaslClient - >> SecurityException: java.lang.SecurityException: Unable to locate a login >> configuration occurred when trying to find JAAS configuration. >> 2012-05-31 21:37:01.668 [main-SendThread(localhost.localdomain:2181)] WARN >> org.apache.zookeeper.ClientCnxn - Session 0x0 >> for server null, unexpected error, closing socket connection and attempting >> reconnect >> java.net.ConnectException: Connection refused >> at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.6.0_31] >> at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567) >> ~[na:1.6.0_31] >> at >> org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:286) >> ~[zookeeper-3.4.3.jar:3.4.3-1240972] >> at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1035) >> ~[zookeeper-3.4.3.jar:3.4.3-1240972] >> 2012-05-31 21:37:02.769 [main-SendThread(localhost.localdomain:2181)] WARN >> org.apache.zookeeper.client.ZooKeeperSaslClient - >> SecurityException: java.lang.SecurityException: Unable to locate a login >> configuration occurred when trying to find JAAS configuration. >> 2012-05-31 21:37:02.770 [main-SendThread(localhost.localdomain:2181)] WARN >> org.apache.zookeeper.ClientCnxn - Session 0x0 >> for server null, unexpected error, closing socket connection and attempting >> reconnect >> java.net.ConnectException: Connection refused >> at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.6.0_31] >> at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567) >> ~[na:1.6.0_31] >> at >> org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:286) >> ~[zookeeper-3.4.3.jar:3.4.3-1240972] >> at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1035) >> ~[zookeeper-3.4.3.jar:3.4.3-1240972] >> 2012-05-31 21:37:03.871 [main-SendThread(localhost.localdomain:2181)] WARN >> org.apache.zookeeper.client.ZooKeeperSaslClient - >> SecurityException: java.lang.SecurityException: Unable to locate a login >> configuration occurred when trying to find JAAS configuration. >> 2012-05-31 21:37:03.872 [main-SendThread(localhost.localdomain:2181)] WARN >> org.apache.zookeeper.ClientCnxn - Session 0x0 >> for server null, unexpected error, closing socket connection and attempting >> reconnect >> java.net.ConnectException: Connection refused >> at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.6.0_31] >> at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567) >> ~[na:1.6.0_31] >> at >> org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:286) >> ~[zookeeper-3.4.3.jar:3.4.3-1240972] >> at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1035) >> ~[zookeeper-3.4.3.jar:3.4.3-1240972] >> 2012-05-31 21:37:04.973 [main-SendThread(localhost.localdomain:2181)] WARN >> org.apache.zookeeper.client.ZooKeeperSaslClient - >> SecurityException: java.lang.SecurityException: Unable to locate a login >> configuration occurred when trying to find JAAS configuration. >> 2012-05-31 21:37:04.973 [main-SendThread(localhost.localdomain:2181)] WARN >> org.apache.zookeeper.ClientCnxn - Session 0x0 >> for server null, unexpected error, closing socket connection and attempting >> reconnect >> java.net.ConnectException: Connection refused >> at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.6.0_31] >> at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567) >> ~[na:1.6.0_31] >> at >> org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:286) >> ~[zookeeper-3.4.3.jar:3.4.3-1240972] >> at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1035) >> ~[zookeeper-3.4.3.jar:3.4.3-1240972] >> 2012-05-31 21:37:06.075 [main-SendThread(localhost.localdomain:2181)] WARN >> org.apache.zookeeper.client.ZooKeeperSaslClient - >> SecurityException: java.lang.SecurityException: Unable to locate a login >> configuration occurred when trying to find JAAS configuration. >> 2012-05-31 21:37:06.075 [main-SendThread(localhost.localdomain:2181)] WARN >> org.apache.zookeeper.ClientCnxn - Session 0x0 >> for server null, unexpected error, closing socket connection and attempting >> reconnect >> java.net.ConnectException: Connection refused >> at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.6.0_31] >> at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567) >> ~[na:1.6.0_31] >> at >> org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:286) >> ~[zookeeper-3.4.3.jar:3.4.3-1240972] >> at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1035) >> ~[zookeeper-3.4.3.jar:3.4.3-1240972] >> 2012-05-31 21:37:07.176 [main-SendThread(localhost.localdomain:2181)] WARN >> org.apache.zookeeper.client.ZooKeeperSaslClient - >> SecurityException: java.lang.SecurityException: Unable to locate a login >> configuration occurred when trying to find JAAS configuration. >> 2012-05-31 21:37:07.177 [main-SendThread(localhost.localdomain:2181)] WARN >> org.apache.zookeeper.ClientCnxn - Session 0x0 >> for server null, unexpected error, closing
