|
|
-
HBase remote connection error
jayakumar t 2011-11-24, 05:57
Hi,
I have installed HBase on a Linux Ubuntu successfully. Then I created a java program as below
Configuration config = HBaseConfiguration.create(); config.set("hbase.zookeeper.quorum", "192.168.0.180"); HTable table = new HTable(config, "test"); System.out.println("Table test obtained "); While running from the same machine it is working fine....But when we run from another machine, getting the errors...The internal IP(192.168.0.180) in which Hbase installed.
The errors....
11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client environment:zookeeper.version=3.3.2-1031432, built on 11/05/2010 05:32 GMT 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client environment:host.name=xmcp55.XMINDS.COM 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client environment:java.version=1.6.0_13 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client environment:java.vendor=Sun Microsystems Inc. 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client environment:java.home=C:\Program Files\Java\jre6 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client environment:java.class.path=G:\Documents and Settings\jayakumar\workspace\HBaseClient\bin;G:\Documents and Settings\jayakumar\workspace\HBaseClient\lib\hadoop-core-0.20-append-r1056497.jar;G:\Documents and Settings\jayakumar\workspace\HBaseClient\lib\hbase-0.90.4.jar;G:\Documents and Settings\jayakumar\workspace\HBaseClient\lib\log4j-1.2.16.jar;G:\Documents and Settings\jayakumar\workspace\HBaseClient\lib\commons-cli-1.2.jar;G:\Documents and Settings\jayakumar\workspace\HBaseClient\lib\commons-codec-1.4.jar;G:\Documents and Settings\jayakumar\workspace\HBaseClient\lib\commons-el-1.0.jar;G:\Documents and Settings\jayakumar\workspace\HBaseClient\lib\commons-httpclient-3.1.jar;G:\Documents and Settings\jayakumar\workspace\HBaseClient\lib\commons-lang-2.5.jar;G:\Documents and Settings\jayakumar\workspace\HBaseClient\lib\commons-logging-1.1.1.jar;G:\Documents and Settings\jayakumar\workspace\HBaseClient\lib\commons-net-1.4.1.jar;G:\Documents and Settings\jayakumar\workspace\HBaseClient\lib\zookeeper-3.3.2.jar 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client environment:java.library.path=C:\Program Files\Java\jre6\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:/Program Files/Java/jre6/lib/i386;F:\app\jayakumar\product\11.1.0\client_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\QuickTime\QTSystem\;C:\Atlassian\atlassian-plugin-sdk-3.2\bin;C:\Sun\jwsdp-2.0\jwsdp-shared\bin;C:\Program Files\Java\jdk1.6.0_06\bin;C:\ffmpeg\bin;C:\Atlassian\atlassian-plugin-sdk-3.2\apache-maven\bin 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client environment:java.io.tmpdir=C:\DOCUME~1\JAYAKU~1\LOCALS~1\Temp\ 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client environment:java.compiler=<NA> 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client environment:os.name=Windows XP 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client environment:os.arch=x86 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client environment:os.version=5.1 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client environment:user.name=jayakumar 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client environment:user.home=C:\Documents and Settings\jayakumar 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client environment:user.dir=G:\Documents and Settings\jayakumar\workspace\HBaseClient 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=192.168.0.180:2181 sessionTimeout=180000 watcher=hconnection 11/11/24 11:02:16 INFO zookeeper.ClientCnxn: Opening socket connection to server /192.168.0.180:2181 11/11/24 11:02:18 INFO zookeeper.ClientCnxnestablished to XMJGWS03/192.168.0.180:2181, initiating session 11/11/24 11:02:18 INFO zookeeper.ClientCnxn: Session establishment complete on server XMJGWS03/192.168.0.180:2181, sessionid 0x133d40c6d830004, negotiated timeout = 40000 11/11/24 11:02:22 INFO ipc.HbaseRPC: Server at XMJGWS03/192.168.0.180:43655 could not be reached after 1 tries, giving up. 11/11/24 11:02:27 INFO ipc.HbaseRPC: Server at XMJGWS03/192.168.0.180:43655 could not be reached after 1 tries, giving up. 11/11/24 11:02:32 INFO ipc.HbaseRPC: Server at XMJGWS03/192.168.0.180:43655 could not be reached after 1 tries, giving up. 11/11/24 11:02:37 INFO ipc.HbaseRPC: Server at XMJGWS03/192.168.0.180:43655 could not be reached after 1 tries, giving up. 11/11/24 11:02:43 INFO ipc.HbaseRPC: Server at XMJGWS03/192.168.0.180:43655 could not be reached after 1 tries, giving up. 11/11/24 11:02:49 INFO ipc.HbaseRPC: Server at XMJGWS03/192.168.0.180:43655 could not be reached after 1 tries, giving up. 11/11/24 11:02:57 INFO ipc.HbaseRPC: Server at XMJGWS03/192.168.0.180:43655 could not be reached after 1 tries, giving up. 11/11/24 11:03:05 INFO ipc.HbaseRPC: Server at XMJGWS03/192.168.0.180:43655 could not be reached after 1 tries, giving up. 11/11/24 11:03:17 INFO ipc.HbaseRPC: Server at XMJGWS03/192.168.0.180:43655 could not be reached after 1 tries, giving up. 11/11/24 11:03:37 INFO ipc.HbaseRPC: Server at XMJGWS03/192.168.0.180:43655 could not be reached after 1 tries, giving up. 11/11/24 11:03:40 INFO ipc.HbaseRPC: Server at XMJGWS03/192.168.0.180:43655 could not be reached after 1 tries, giving up. 11/11/24 11:03:45 INFO ipc.HbaseRPC: Server at XMJGWS03/192.168.0.180:43655 could not be reached after 1 tries, giving up. 11/11/24 11:03:50 INFO ipc.HbaseRPC: Server at XMJGWS03/192.168.0.180:43655 could not be reached after 1 tries, giving up. 11/11/24 11:03:55 INFO ipc.HbaseRPC: Serv
-
Re: HBase remote connection error
Stack 2011-11-24, 06:25
On Wed, Nov 23, 2011 at 9:57 PM, jayakumar t <[EMAIL PROTECTED]> wrote: > Hi, > > I have installed HBase on a Linux Ubuntu successfully. Then I created > a java program as below > > Configuration config = HBaseConfiguration.create(); > config.set("hbase.zookeeper.quorum", "192.168.0.180"); > HTable table = new HTable(config, "test"); > System.out.println("Table test obtained "); > > > While running from the same machine it is working fine....But when we > run from another machine, getting the errors...The internal > IP(192.168.0.180) in which Hbase installed. >
Does shell work on other machine?
It looks like its a windows machine. Have you read the archive on this mailing list for issues getting going with hbase on windows?
St.Ack
> The errors.... > > 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client > environment:zookeeper.version=3.3.2-1031432, built on 11/05/2010 05:32 > GMT > 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client > environment:host.name=xmcp55.XMINDS.COM > 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client > environment:java.version=1.6.0_13 > 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client > environment:java.vendor=Sun Microsystems Inc. > 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client > environment:java.home=C:\Program Files\Java\jre6 > 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client > environment:java.class.path=G:\Documents and > Settings\jayakumar\workspace\HBaseClient\bin;G:\Documents and > Settings\jayakumar\workspace\HBaseClient\lib\hadoop-core-0.20-append-r1056497.jar;G:\Documents > and Settings\jayakumar\workspace\HBaseClient\lib\hbase-0.90.4.jar;G:\Documents > and Settings\jayakumar\workspace\HBaseClient\lib\log4j-1.2.16.jar;G:\Documents > and Settings\jayakumar\workspace\HBaseClient\lib\commons-cli-1.2.jar;G:\Documents > and Settings\jayakumar\workspace\HBaseClient\lib\commons-codec-1.4.jar;G:\Documents > and Settings\jayakumar\workspace\HBaseClient\lib\commons-el-1.0.jar;G:\Documents > and Settings\jayakumar\workspace\HBaseClient\lib\commons-httpclient-3.1.jar;G:\Documents > and Settings\jayakumar\workspace\HBaseClient\lib\commons-lang-2.5.jar;G:\Documents > and Settings\jayakumar\workspace\HBaseClient\lib\commons-logging-1.1.1.jar;G:\Documents > and Settings\jayakumar\workspace\HBaseClient\lib\commons-net-1.4.1.jar;G:\Documents > and Settings\jayakumar\workspace\HBaseClient\lib\zookeeper-3.3.2.jar > 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client > environment:java.library.path=C:\Program > Files\Java\jre6\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program > Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:/Program > Files/Java/jre6/lib/i386;F:\app\jayakumar\product\11.1.0\client_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program > Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program > Files\QuickTime\QTSystem\;C:\Atlassian\atlassian-plugin-sdk-3.2\bin;C:\Sun\jwsdp-2.0\jwsdp-shared\bin;C:\Program > Files\Java\jdk1.6.0_06\bin;C:\ffmpeg\bin;C:\Atlassian\atlassian-plugin-sdk-3.2\apache-maven\bin > 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client > environment:java.io.tmpdir=C:\DOCUME~1\JAYAKU~1\LOCALS~1\Temp\ > 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client > environment:java.compiler=<NA> > 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client > environment:os.name=Windows XP > 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client environment:os.arch=x86 > 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client environment:os.version=5.1 > 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client > environment:user.name=jayakumar > 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client > environment:user.home=C:\Documents and Settings\jayakumar > 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client
-
Re: HBase remote connection error
jayakumar t 2011-11-24, 08:12
Hi,
The same error even connecting from a remote Linux machine! On Thu, Nov 24, 2011 at 11:55 AM, Stack <[EMAIL PROTECTED]> wrote: > On Wed, Nov 23, 2011 at 9:57 PM, jayakumar t <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I have installed HBase on a Linux Ubuntu successfully. Then I created >> a java program as below >> >> Configuration config = HBaseConfiguration.create(); >> config.set("hbase.zookeeper.quorum", "192.168.0.180"); >> HTable table = new HTable(config, "test"); >> System.out.println("Table test obtained "); >> >> >> While running from the same machine it is working fine....But when we >> run from another machine, getting the errors...The internal >> IP(192.168.0.180) in which Hbase installed. >> > > Does shell work on other machine? > > It looks like its a windows machine. Have you read the archive on > this mailing list for issues getting going with hbase on windows? > > St.Ack > >> The errors.... >> >> 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client >> environment:zookeeper.version=3.3.2-1031432, built on 11/05/2010 05:32 >> GMT >> 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client >> environment:host.name=xmcp55.XMINDS.COM >> 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client >> environment:java.version=1.6.0_13 >> 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client >> environment:java.vendor=Sun Microsystems Inc. >> 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client >> environment:java.home=C:\Program Files\Java\jre6 >> 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client >> environment:java.class.path=G:\Documents and >> Settings\jayakumar\workspace\HBaseClient\bin;G:\Documents and >> Settings\jayakumar\workspace\HBaseClient\lib\hadoop-core-0.20-append-r1056497.jar;G:\Documents >> and Settings\jayakumar\workspace\HBaseClient\lib\hbase-0.90.4.jar;G:\Documents >> and Settings\jayakumar\workspace\HBaseClient\lib\log4j-1.2.16.jar;G:\Documents >> and Settings\jayakumar\workspace\HBaseClient\lib\commons-cli-1.2.jar;G:\Documents >> and Settings\jayakumar\workspace\HBaseClient\lib\commons-codec-1.4.jar;G:\Documents >> and Settings\jayakumar\workspace\HBaseClient\lib\commons-el-1.0.jar;G:\Documents >> and Settings\jayakumar\workspace\HBaseClient\lib\commons-httpclient-3.1.jar;G:\Documents >> and Settings\jayakumar\workspace\HBaseClient\lib\commons-lang-2.5.jar;G:\Documents >> and Settings\jayakumar\workspace\HBaseClient\lib\commons-logging-1.1.1.jar;G:\Documents >> and Settings\jayakumar\workspace\HBaseClient\lib\commons-net-1.4.1.jar;G:\Documents >> and Settings\jayakumar\workspace\HBaseClient\lib\zookeeper-3.3.2.jar >> 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client >> environment:java.library.path=C:\Program >> Files\Java\jre6\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program >> Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:/Program >> Files/Java/jre6/lib/i386;F:\app\jayakumar\product\11.1.0\client_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program >> Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program >> Files\QuickTime\QTSystem\;C:\Atlassian\atlassian-plugin-sdk-3.2\bin;C:\Sun\jwsdp-2.0\jwsdp-shared\bin;C:\Program >> Files\Java\jdk1.6.0_06\bin;C:\ffmpeg\bin;C:\Atlassian\atlassian-plugin-sdk-3.2\apache-maven\bin >> 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client >> environment:java.io.tmpdir=C:\DOCUME~1\JAYAKU~1\LOCALS~1\Temp\ >> 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client >> environment:java.compiler=<NA> >> 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client >> environment:os.name=Windows XP >> 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client environment:os.arch=x86 >> 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client environment:os.version=5.1 >> 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client
-
Re: HBase remote connection error
Jean-Daniel Cryans 2011-11-30, 20:08
(sending to user@ and putting dev@ in bcc, this is not an HBase dev question)
zookeeper usually binds 0.0.0.0 so it's reachable from any interface but if 192.168.0.180 is binding to the loopback interface then it won't listen to the other interfaces. If HBase is really running properly then your issue should be solvable using basic network debugging tools.
J-D
On Thu, Nov 24, 2011 at 12:12 AM, jayakumar t <[EMAIL PROTECTED]> wrote: > Hi, > > The same error even connecting from a remote Linux machine! > > > > > On Thu, Nov 24, 2011 at 11:55 AM, Stack <[EMAIL PROTECTED]> wrote: >> On Wed, Nov 23, 2011 at 9:57 PM, jayakumar t <[EMAIL PROTECTED]> wrote: >>> Hi, >>> >>> I have installed HBase on a Linux Ubuntu successfully. Then I created >>> a java program as below >>> >>> Configuration config = HBaseConfiguration.create(); >>> config.set("hbase.zookeeper.quorum", "192.168.0.180"); >>> HTable table = new HTable(config, "test"); >>> System.out.println("Table test obtained "); >>> >>> >>> While running from the same machine it is working fine....But when we >>> run from another machine, getting the errors...The internal >>> IP(192.168.0.180) in which Hbase installed. >>> >> >> Does shell work on other machine? >> >> It looks like its a windows machine. Have you read the archive on >> this mailing list for issues getting going with hbase on windows? >> >> St.Ack >> >>> The errors.... >>> >>> 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client >>> environment:zookeeper.version=3.3.2-1031432, built on 11/05/2010 05:32 >>> GMT >>> 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client >>> environment:host.name=xmcp55.XMINDS.COM >>> 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client >>> environment:java.version=1.6.0_13 >>> 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client >>> environment:java.vendor=Sun Microsystems Inc. >>> 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client >>> environment:java.home=C:\Program Files\Java\jre6 >>> 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client >>> environment:java.class.path=G:\Documents and >>> Settings\jayakumar\workspace\HBaseClient\bin;G:\Documents and >>> Settings\jayakumar\workspace\HBaseClient\lib\hadoop-core-0.20-append-r1056497.jar;G:\Documents >>> and Settings\jayakumar\workspace\HBaseClient\lib\hbase-0.90.4.jar;G:\Documents >>> and Settings\jayakumar\workspace\HBaseClient\lib\log4j-1.2.16.jar;G:\Documents >>> and Settings\jayakumar\workspace\HBaseClient\lib\commons-cli-1.2.jar;G:\Documents >>> and Settings\jayakumar\workspace\HBaseClient\lib\commons-codec-1.4.jar;G:\Documents >>> and Settings\jayakumar\workspace\HBaseClient\lib\commons-el-1.0.jar;G:\Documents >>> and Settings\jayakumar\workspace\HBaseClient\lib\commons-httpclient-3.1.jar;G:\Documents >>> and Settings\jayakumar\workspace\HBaseClient\lib\commons-lang-2.5.jar;G:\Documents >>> and Settings\jayakumar\workspace\HBaseClient\lib\commons-logging-1.1.1.jar;G:\Documents >>> and Settings\jayakumar\workspace\HBaseClient\lib\commons-net-1.4.1.jar;G:\Documents >>> and Settings\jayakumar\workspace\HBaseClient\lib\zookeeper-3.3.2.jar >>> 11/11/24 11:02:16 INFO zookeeper.ZooKeeper: Client >>> environment:java.library.path=C:\Program >>> Files\Java\jre6\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program >>> Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:/Program >>> Files/Java/jre6/lib/i386;F:\app\jayakumar\product\11.1.0\client_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program >>> Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program >>> Files\QuickTime\QTSystem\;C:\Atlassian\atlassian-plugin-sdk-3.2\bin;C:\Sun\jwsdp-2.0\jwsdp-shared\bin;C:\Program >>> Files\Java\jdk1.6.0_06\bin;C:\ffmpeg\bin;C:\Atlassian\atlassian-plugin-sdk-3.2\apache-maven\bin
|
|