Re: Cannot connect to HBase from a remote machine

2011-02-10 Thread Mark Kerzner
Thank you, I did more or less what you advise, and it is now working. Mark On Thu, Feb 10, 2011 at 7:15 AM, Suraj Varma wrote: > Do you have multi-homed hosts for hbase/hadoop, by any chance? > > Use the hbase shelll or master.jsp UI to do a zookeeper dump and check what > hosts/IPs are regist

Re: Cannot connect to HBase from a remote machine

2011-02-10 Thread Suraj Varma
Do you have multi-homed hosts for hbase/hadoop, by any chance? Use the hbase shelll or master.jsp UI to do a zookeeper dump and check what hosts/IPs are registered on zookeeper. Next check if you are able to telnet to that host / ip combination. If you are using multi-homed boxes, you may have to

Re: Cannot connect to HBase from a remote machine

2011-02-07 Thread Mark Kerzner
Thank you, I checked - exactly the same, from Cloudera distribution On Mon, Feb 7, 2011 at 3:27 AM, Shuja Rehman wrote: > check the version of jars files on client and server machine. both should > have same version. i had the similar problem in past and i found that i was > using the old jars o

Re: Cannot connect to HBase from a remote machine

2011-02-07 Thread Shuja Rehman
check the version of jars files on client and server machine. both should have same version. i had the similar problem in past and i found that i was using the old jars on client where server had the latest jars. On Mon, Feb 7, 2011 at 10:33 AM, Mark Kerzner wrote: > My friendly network admini

Re: Cannot connect to HBase from a remote machine

2011-02-06 Thread Mark Kerzner
My friendly network administrators have found out that the ports were blocked, and they have disabled port blocking, so now the nc works right, but the program still hangs: nc myip 2181 ruok* imok java -jar dist/HBaseMailboxIdCounter.jar 11/02/06 20:24:54 INFO zookeeper.ZooKeeperWrapper: Reconnec

Re: Cannot connect to HBase from a remote machine

2011-02-06 Thread Ted Dunning
Yes. No route to host is a little odd if ping works, but it looks like you have network problems. On Sun, Feb 6, 2011 at 7:34 PM, Mark Kerzner wrote: > This probably diagnoses the problem: > > If I do nc on the HBase computer, it works, like this - > > nc myip 2181 > ruok* > imok > > but if I d

Re: Cannot connect to HBase from a remote machine

2011-02-06 Thread Mark Kerzner
This probably diagnoses the problem: If I do nc on the HBase computer, it works, like this - nc myip 2181 ruok* imok but if I do it on the remote one, it comes back right away, no error, but no work either - $ nc myip 2181 $ Also telnet tells the same story: telnet myip 2181 Trying myip... te

Re: Cannot connect to HBase from a remote machine

2011-02-06 Thread Ted Dunning
What happens when you try to connect to myip:2181 directly? You can use nc (network cat) for this: $ *nc myip 2181* * ruok* imok $ You type the part in bold italics (nc and ruok) and the response from the system is (should be) "imok". There are a number of such "four letter words" th

Re: Cannot connect to HBase from a remote machine

2011-02-06 Thread Mark Kerzner
Then I get this error: 11/02/06 17:16:09 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=myip:2181 sessionTimeout=6 watcher=org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper@21f8c6df 11/02/06 17:16:09 INFO zookeeper.ClientCnxn: Opening socket connection to server /myip:2

Re: Cannot connect to HBase from a remote machine

2011-02-06 Thread Tost
Try this. config.set("hbase.zookeeper.quorum", "myip"); 2011/2/6 Mark Kerzner > 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 ot

Cannot connect to HBase from a remote machine

2011-02-05 Thread Mark Kerzner
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();