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: HBase remote connection error
Date Wed, 30 Nov 2011 20:08:16 GMT
(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 <mech393@gmail.com> wrote:
> Hi,
>
> The same error even connecting from a remote Linux machine!
>
>
>
>
> On Thu, Nov 24, 2011 at 11:55 AM, Stack <stack@duboce.net> wrote:
>> On Wed, Nov 23, 2011 at 9:57 PM, jayakumar t <mech393@gmail.com> 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
>>> 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.ClientCnxn: Socket connection
>>> established 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: Server at
>>> XMJGWS03/192.168.0.180:43655 could not be reached after 1 tries,
>>> giving up.
>>> 11/11/24 11:04:01 INFO ipc.HbaseRPC: Server at
>>> XMJGWS03/192.168.0.180:43655 could not be reached after 1 tries,
>>> giving up.
>>> 11/11/24 11:04:07 INFO ipc.HbaseRPC: Server at
>>> XMJGWS03/192.168.0.180:43655 could not be reached after 1 tries,
>>> giving up.
>>> 11/11/24 11:04:15 INFO ipc.HbaseRPC: Server at
>>> XMJGWS03/192.168.0.180:43655 could not be reached after 1 tries,
>>> giving up.
>>> 11/11/24 11:04:24 INFO ipc.HbaseRPC: Server at
>>> XMJGWS03/192.168.0.180:43655 could not be reached after 1 tries,
>>> giving up.
>>> 11/11/24 11:04:36 INFO ipc.HbaseRPC: Server at
>>> XMJGWS03/192.168.0.180:43655 could not be reached after 1 tries,
>>> giving up.
>>> 11/11/24 11:04:56 INFO ipc.HbaseRPC: Server at
>>> XMJGWS03/192.168.0.180:43655 could not be reached after 1 tries,
>>> giving up.
>>> org.apache.hadoop.hbase.client.RetriesExhaustedException: Failed
>>> setting up proxy interface
>>> org.apache.hadoop.hbase.ipc.HRegionInterface to
>>> XMJGWS03/192.168.0.180:43655 after attempts=1
>>>        at org.apache.hadoop.hbase.ipc.HBaseRPC.waitForProxy(HBaseRPC.java:355)
>>>        at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getHRegionConnection(HConnectionManager.java:969)
>>>        at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getHRegionConnection(HConnectionManager.java:988)
>>>        at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegionInMeta(HConnectionManager.java:691)
>>>        at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:590)
>>>        at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.relocateRegion(HConnectionManager.java:565)
>>>        at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegionInMeta(HConnectionManager.java:795)
>>>        at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:594)
>>>        at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:559)
>>>        at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:173)
>>>        at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:147)
>>>        at Main.main(Main.java:43)
>>> Caused by: 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.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206)
>>>        at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:404)
>>>        at org.apache.hadoop.hbase.ipc.HBaseClient$Connection.setupIOstreams(HBaseClient.java:328)
>>>        at org.apache.hadoop.hbase.ipc.HBaseClient.getConnection(HBaseClient.java:883)
>>>        at org.apache.hadoop.hbase.ipc.HBaseClient.call(HBaseClient.java:750)
>>>        at org.apache.hadoop.hbase.ipc.HBaseRPC$Invoker.invoke(HBaseRPC.java:257)
>>>        at $Proxy4.getProtocolVersion(Unknown Source)
>>>        at org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:419)
>>>        at org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:393)
>>>        at org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:444)
>>>        at org.apache.hadoop.hbase.ipc.HBaseRPC.waitForProxy(HBaseRPC.java:349)
>>>        ... 11 more
>>>
>>

Mime
View raw message