I have the following problem when trying to run hbase 0.20 on ec2.
First, I start katta which in turn starts zookeeper with the following
properties (zookeeper.zk.properties):
zookeeper.servers=domU-12-31-39-06-29-91.compute-1.internal:2888:3888
#zookeeper client timeout in milliseconds
zookeeper.timeout=150000
#zookeeper tick time
zookeeper.tick-time=60000
# zookeeper init time limit
zookeeper.init-limit=5
# zookeeper sync limit
zookeeper.sync-limit=2
# zookeeper folder where data are stored
zookeeper.data-dir=/mnt/katta/data
# zookeeper folder where log data are stored
zookeeper.log-data-dir=/mnt/katta/logs
# zookeeper client port
zookeeper.clientPort=2181
I am running Hbase 0.20 RC1 with the following zk properties in
hbase-site.xml:
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>domU-12-31-39-06-29-91.compute-1.internal</value>
</property>
Unfortunately, I'm getting the following errors:
2009-08-02 14:32:09,381 INFO org.apache.zookeeper.ZooKeeper: Initiating
client connection, host=domU-12-31-39-06-29-91.compute-1.internal:2181
sessionTimeout=30000
watcher=org.apache.hadoop.hbase.regionserver.hregionser...@120bf2c
2009-08-02 14:32:09,383 INFO org.apache.zookeeper.ClientCnxn:
zookeeper.disableAutoWatchReset is false
2009-08-02 14:32:09,415 INFO org.apache.zookeeper.ClientCnxn: Attempting
connection to server
domU-12-31-39-06-29-91.compute-1.internal/10.208.46.95:2181
2009-08-02 14:32:09,424 WARN org.apache.zookeeper.ClientCnxn: Exception
closing session 0x0 to sun.nio.ch.selectionkeyi...@181ed9e
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:574)
at
org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:885)
2009-08-02 14:32:09,431 WARN org.apache.zookeeper.ClientCnxn: Ignoring
exception during shutdown input
java.nio.channels.ClosedChannelException
at
sun.nio.ch.SocketChannelImpl.shutdownInput(SocketChannelImpl.java:638)
at
sun.nio.ch.SocketAdaptor.shutdownInput(SocketAdaptor.java:360)
at
org.apache.zookeeper.ClientCnxn$SendThread.cleanup(ClientCnxn.java:951)
Looks like I have problem connecting to zookeeper but I have no clue
why. Server name is correct, client port is 2181 and user is root.
Any help?
Thanks
-Yair