hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Purtell <apurt...@apache.org>
Subject Re: problem starting Hbase 0.20 with Katta on EC2
Date Sun, 02 Aug 2009 19:12:59 GMT
Hi,

Have you set up the security group for your instances to allow the
Zookeeper quorum peers to communicate with each other and clients?

You need to allow all instances to communicate with each other on the
following ports:

   2181: client
   2888: replication
   3888: leader election


The above are the defaults. All can be changed via various settings
in hbase-site.xml (see hbase-default.xml). 

  - Andy



________________________________
From: Yair Even-Zohar <yaire@audiencescience.com>
To: hbase-user@hadoop.apache.org; katta-developer@lists.sourceforge.net
Sent: Sunday, August 2, 2009 11:57:40 AM
Subject: problem starting Hbase 0.20 with Katta on EC2 

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.HRegionServer@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.SelectionKeyImpl@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


      
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message