Then I get this error:

11/02/06 17:16:09 INFO zookeeper.ZooKeeper: Initiating client connection,
connectString=myip:2181 sessionTimeout=60000
watcher=org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper@21f8c6df
11/02/06 17:16:09 INFO zookeeper.ClientCnxn: Opening socket connection to
server /myip:2181
11/02/06 17:16:09 WARN zookeeper.ClientCnxn: Session 0x0 for server null,
unexpected error, closing socket connection and attempting reconnect
java.net.NoRouteToHostException: No route to host
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:1078)

(of course, myip is the real ip with digits, I just replaced it for this
email, and I verified that the ip is correct, and that HBase runs at this
ip)

Thank you again,
Mark

On Sun, Feb 6, 2011 at 5:34 PM, Tost <[email protected]> wrote:

> Try this.
> config.set("hbase.zookeeper.quorum", "myip");
>
> 2011/2/6 Mark Kerzner <[email protected]>
>
> > Hi, guys,
> >
> > I have these lines trying to connect to the HBase, and it works perfectly
> > well when I am connecting on that machine that runs HBase, but not when I
> > am
> > connecting from the outside. What ports or other conditions should I
> check?
> >
> >        Configuration config = HBaseConfiguration.create();
> >        config.set("hbase.zookeeper.quorum", "myip:60010");
> >        config.set("hbase.zookeeper.property.clientPort", "2181");
> >
> >        HTable table = new HTable(config, "myTable");
> >
> > Thank you!
> >
> > Mark
> >
>

Reply via email to