hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Daniel Cryans <jdcry...@apache.org>
Subject Re: "connectString" to point to the server instead of "localhost"
Date Mon, 02 Aug 2010 17:39:20 GMT
>From http://hbase.apache.org/docs/r0.20.6/api/overview-summary.html#overview_description

"At minimum, you should set the list of servers that you want
ZooKeeper to run on using the hbase.zookeeper.quorum property. This
property defaults to localhost which is not suitable for a fully
distributed HBase (it binds to the local machine only and remote
clients will not be able to connect). "

J-D

On Sun, Aug 1, 2010 at 10:32 PM, Sindy <sindybanana@gmail.com> wrote:
> Hi,
>
> I have one master , one slave
>
> now I 'm writting Java programme in eclipse on the third pc to connect
> the Hbase.
>
>
> 10/08/02 12:40:33 INFO zookeeper.ClientCnxn: Attempting connection to
> server localhost/127.0.0.1:2181
> 10/08/02 12:40:34 WARN zookeeper.ClientCnxn: Exception closing session
> 0x0 to sun.nio.ch.SelectionKeyImpl@2c84d9
> java.net.ConnectException: Connection refused: no further information
>        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
>        at sun.nio.ch.SocketChannelImpl.finishConnect(Unknown Source)
>        at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:933)
> 10/08/02 12:40:34 WARN zookeeper.ClientCnxn: Ignoring exception during
> shutdown input
> java.nio.channels.ClosedChannelException
>        at sun.nio.ch.SocketChannelImpl.shutdownInput(Unknown Source)
>        at sun.nio.ch.SocketAdaptor.shutdownInput(Unknown Source)
>        at org.apache.zookeeper.ClientCnxn$SendThread.cleanup(ClientCnxn.java:999)
>        at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:970)
> 10/08/02 12:40:34 WARN zookeeper.ClientCnxn: Ignoring exception during
> shutdown output
> java.nio.channels.ClosedChannelException
>
>
> connectString=localhost:2181 sessionTimeout=60000
> watcher=org.apache.hadoop.hbase.client.HConnectionManager$ClientZKWatcher@82c01f
> how can do to  tells the  "connectString" to point to the server
> instead of "localhost".
>
>
>
>
> Thanks :)
> Sindy
>

Mime
View raw message