You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Ján Horváth <ho...@b-ideas.eu> on 2009/07/11 17:55:56 UTC

Hbase configuration

I'm starting developing application using HBase and I have one 
pseudo-distributed server after NAT with prerouted ports.
So my server IP is 192.168.1.10 and my router adress is 62.197.x.x There 
is a problem where I'm trying to connect with my application from outside.

...
09/07/11 16:52:29 INFO zookeeper.ClientCnxn: 
zookeeper.disableAutoWatchReset is false
09/07/11 16:52:29 INFO zookeeper.ClientCnxn: Attempting connection to 
server xxx.org/62.197.x.x:2181
09/07/11 16:52:29 INFO zookeeper.ClientCnxn: Priming connection to 
java.nio.channels.SocketChannel[connected local=/192.168.1.5:53739 
remote=xxx.org/62.197.x.x:2181]
09/07/11 16:52:29 INFO zookeeper.ClientCnxn: Server connection successful
09/07/11 16:52:50 INFO ipc.HBaseClient: Retrying connect to server: 
/192.168.1.10:43493. Already tried 0 time(s).
09/07/11 16:52:50 INFO ipc.HBaseClient: Retrying connect to server: 
/192.168.1.10:43493. Already tried 1 time(s).
...

I can connect to my master node but I think that he tries to reconnect 
me to regionserver on 192.168.1.10. But I need to be reconnected to my 
outside IP 62.197.x.x because there are
my prerouted ports. Is there some way how to solve this problem ? Maybe 
some configuration hacks or something else. Thank you for response.



Re: Hbase configuration

Posted by Ryan Rawson <ry...@gmail.com>.
Hey,

You are wandering into problem territory.

HBase uses a series of location finding systems to determine their own
IP addresses, then publishes said IP to various finding services.  If
you have 2 IPs for a host, and sometimes you must use one, and
sometimes you must use another, depending on where the client is,
right now, native Java clients will not work for you.

Your best bet is to use the Thrift gateway, and connect to that.

Good luck!
-ryan


2009/7/11 Ján Horváth <ho...@b-ideas.eu>:
> I'm starting developing application using HBase and I have one
> pseudo-distributed server after NAT with prerouted ports.
> So my server IP is 192.168.1.10 and my router adress is 62.197.x.x There is
> a problem where I'm trying to connect with my application from outside.
>
> ...
> 09/07/11 16:52:29 INFO zookeeper.ClientCnxn: zookeeper.disableAutoWatchReset
> is false
> 09/07/11 16:52:29 INFO zookeeper.ClientCnxn: Attempting connection to server
> xxx.org/62.197.x.x:2181
> 09/07/11 16:52:29 INFO zookeeper.ClientCnxn: Priming connection to
> java.nio.channels.SocketChannel[connected local=/192.168.1.5:53739
> remote=xxx.org/62.197.x.x:2181]
> 09/07/11 16:52:29 INFO zookeeper.ClientCnxn: Server connection successful
> 09/07/11 16:52:50 INFO ipc.HBaseClient: Retrying connect to server:
> /192.168.1.10:43493. Already tried 0 time(s).
> 09/07/11 16:52:50 INFO ipc.HBaseClient: Retrying connect to server:
> /192.168.1.10:43493. Already tried 1 time(s).
> ...
>
> I can connect to my master node but I think that he tries to reconnect me to
> regionserver on 192.168.1.10. But I need to be reconnected to my outside IP
> 62.197.x.x because there are
> my prerouted ports. Is there some way how to solve this problem ? Maybe some
> configuration hacks or something else. Thank you for response.
>
>
>