You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Elazar Leibovich <el...@gmail.com> on 2012/09/20 09:55:08 UTC

zookeeper won't close on HBaseTestingUtility.shutdownMiniCluster()

Running this simple program:

public class Main {
    public static void main(String[] args) throws Exception {
        HBaseTestingUtility utility = new HBaseTestingUtility();
        utility.startMiniCluster();
        utility.shutdownMiniCluster();
    }
}

With the following maven dependencies, full program at
http://pastebin.com/YTW0p1QM :

      <dependency>
            <groupId>org.apache.hadoop</groupId>
            <artifactId>hadoop-core</artifactId>
            <version>1.0.3</version>
        </dependency>
        <dependency>
            <groupId>org.apache.hadoop</groupId>
            <artifactId>hadoop-test</artifactId>
            <version>1.0.3</version>
        </dependency>
        <dependency>
            <groupId>org.apache.hbase</groupId>
            <artifactId>hbase</artifactId>
            <version>0.94.1</version>
        </dependency>
        <dependency>
            <groupId>org.apache.hbase</groupId>
            <artifactId>hbase</artifactId>
            <version>0.94.1</version>
            <type>test-jar</type>
        </dependency>
        <dependency>
            <groupId>org.codehaus.jackson</groupId>
            <artifactId>jackson-mapper-asl</artifactId>
            <version>1.8.8</version>
        </dependency>

Cause the following repeated error, the zookeeper instance seems not able
to shut down, full log at http://pastebin.com/HWxady2R

12/09/20 10:03:32 INFO zookeeper.ClientCnxn: Opening socket connection to
server localhost/127.0.0.1:53174
12/09/20 10:03:32 WARN client.ZooKeeperSaslClient: SecurityException:
java.lang.SecurityException: Unable to locate a login configuration
occurred when trying to find JAAS configuration.
12/09/20 10:03:32 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/09/20 10:03:32 WARN zookeeper.ClientCnxn: Session 0x139e27cc49b0002 for
server null, unexpected error, closing socket connection and attempting
reconnect
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:599)
at
org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:286)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1035)

I found similar complaints on the mailing list, eg
http://mail-archives.apache.org/mod_mbox/hbase-user/201205.mbox/%3CA1DB0B51-51A8-4D03-B1DF-F6BA897C3898@gmail.com%3Ehowever
the solution there did not help me.

How can I further debug the problem?

Thanks,
Elazar Leibovich