The hbase shell commands on unbuntu work fine.  
 
I will port my client code over to Ubuntu and try it there.  I tried a simple 
java client running outside of JBOSS trying to talk to hbase and have the same 
issue.  From a novice point of view it appears that the client can connect to 
the zookeeper, but it is unable to get to the region server from the ip address 
given.  Hence it cannot connect to the region server 127.0.1.1:XXXXX.
 
09/09/12 09:39:44 INFO zookeeper.ZooKeeper: Client 
environment:zookeeper.version=3.2.0--1, built on 05/15/2009 06:05 GMT
09/09/12 09:39:44 INFO zookeeper.ZooKeeper: Client 
environment:host.name=d1-laptop.gateway.2wire.net
09/09/12 09:39:44 INFO zookeeper.ZooKeeper: Client 
environment:java.version=1.6.0_14
09/09/12 09:39:44 INFO zookeeper.ZooKeeper: Client environment:java.vendor=Sun 
Microsystems Inc.
09/09/12 09:39:44 INFO zookeeper.ZooKeeper: Client 
environment:java.home=C:\Program Files (x86)\Java\jre6
09/09/12 09:39:44 INFO zookeeper.ZooKeeper: Client 
environment:java.io.tmpdir=C:\Users\owner\AppData\Local\Temp\
09/09/12 09:39:44 INFO zookeeper.ZooKeeper: Client 
environment:java.compiler=<NA>
09/09/12 09:39:44 INFO zookeeper.ZooKeeper: Client environment:os.name=Windows 
Vista
09/09/12 09:39:44 INFO zookeeper.ZooKeeper: Client environment:os.arch=x86
09/09/12 09:39:44 INFO zookeeper.ZooKeeper: Client environment:os.version=6.0
09/09/12 09:39:44 INFO zookeeper.ZooKeeper: Client environment:user.name=owner
09/09/12 09:39:44 INFO zookeeper.ZooKeeper: Client 
environment:user.home=C:\Users\owner
09/09/12 09:39:44 INFO zookeeper.ZooKeeper: Client 
environment:user.dir=C:\Users\dp\MyClient
09/09/12 09:39:44 INFO zookeeper.ZooKeeper: Initiating client connection, 
host=user-laptop:2181 sessionTimeout=60000 
watcher=org.apache.hadoop.hbase.client.hconnectionmanager$clientzkwatc...@19616c7
09/09/12 09:39:44 INFO zookeeper.ClientCnxn: zookeeper.disableAutoWatchReset is 
false
09/09/12 09:39:44 INFO zookeeper.ClientCnxn: Attempting connection to server 
user-laptop/192.168.1.68:2181
09/09/12 09:39:44 INFO zookeeper.ClientCnxn: Priming connection to 
java.nio.channels.SocketChannel[connected local=/192.168.1.65:50091 
remote=user-laptop/192.168.1.68:2181]
09/09/12 09:39:44 INFO zookeeper.ClientCnxn: Server connection successful
09/09/12 09:39:46 INFO ipc.HBaseClient: Retrying connect to server: 
/127.0.1.1:36976. Already tried 0 time(s).
09/09/12 09:39:48 INFO ipc.HBaseClient: Retrying connect to server: 
/127.0.1.1:36976. Already tried 1 time(s).
09/09/12 09:39:50 INFO ipc.HBaseClient: Retrying connect to server: 
/127.0.1.1:36976. Already tried 2 time(s).
09/09/12 09:39:52 INFO ipc.HBaseClient: Retrying connect to server: 
/127.0.1.1:36976. Already tried 3 time(s).
09/09/12 09:39:54 INFO ipc.HBaseClient: Retrying connect to server: 
/127.0.1.1:36976. Already tried 4 time(s).
09/09/12 09:39:56 INFO ipc.HBaseClient: Retrying connect to server: 
/127.0.1.1:36976. Already tried 5 time(s).
09/09/12 09:39:58 INFO ipc.HBaseClient: Retrying connect to server: 
/127.0.1.1:36976. Already tried 6 time(s).
09/09/12 09:40:00 INFO ipc.HBaseClient: Retrying connect to server: 
/127.0.1.1:36976. Already tried 7 time(s).
09/09/12 09:40:02 INFO ipc.HBaseClient: Retrying connect to server: 
/127.0.1.1:36976. Already tried 8 time(s).
09/09/12 09:40:04 INFO ipc.HBaseClient: Retrying connect to server: 
/127.0.1.1:36976. Already tried 9 time(s).
09/09/12 09:40:05 INFO ipc.HbaseRPC: Server at /127.0.1.1:36976 not available 
yet, Zzzzz...
09/09/12 09:40:05 INFO ipc.HbaseRPC: Server at /127.0.1.1:36976 could not be 
reached after 1 tries, giving up.
09/09/12 09:40:07 INFO ipc.HBaseClient: Retrying connect to server: 
/127.0.1.1:36976. Already tried 0 time(s).
09/09/12 09:40:09 INFO ipc.HBaseClient: Retrying connect to server: 
/127.0.1.1:36976. Already tried 1 time(s).
09/09/12 09:40:11 INFO ipc.HBaseClient: Retrying connect to server: 
/127.0.1.1:36976. Already tried 2 time(s).
09/09/12 09:40:13 INFO ipc.HBaseClient: Retrying connect to server: 
/127.0.1.1:36976. Already tried 3 time(s).
09/09/12 09:40:15 INFO ipc.HBaseClient: Retrying connect to server: 
/127.0.1.1:36976. Already tried 4 time(s).
09/09/12 09:40:17 INFO ipc.HBaseClient: Retrying connect to server: 
/127.0.1.1:36976. Already tried 5 time(s).
09/09/12 09:40:19 INFO ipc.HBaseClient: Retrying connect to server: 
/127.0.1.1:36976. Already tried 6 time(s).
09/09/12 09:40:21 INFO ipc.HBaseClient: Retrying connect to server: 
/127.0.1.1:36976. Already tried 7 time(s).
09/09/12 09:40:23 INFO ipc.HBaseClient: Retrying connect to server: 
/127.0.1.1:36976. Already tried 8 time(s).
09/09/12 09:40:25 INFO ipc.HBaseClient: Retrying connect to server: 
/127.0.1.1:36976. Already tried 9 time(s).
09/09/12 09:40:26 INFO ipc.HbaseRPC: Server at /127.0.1.1:36976 not available 
yet, Zzzzz...
09/09/12 09:40:26 INFO ipc.HbaseRPC: Server at /127.0.1.1:36976 could not be 
reached after 1 tries, giving up.
09/09/12 09:40:28 INFO ipc.HBaseClient: Retrying connect to server: 
/127.0.1.1:36976. Already tried 0 time(s).
09/09/12 09:40:30 INFO ipc.HBaseClient: Retrying connect to server: 
/127.0.1.1:36976. Already tried 1 time(s).
09/09/12 09:40:32 INFO ipc.HBaseClient: Retrying connect to server: 
/127.0.1.1:36976. Already tried 2 time(s).
09/09/12 09:40:34 INFO ipc.HBaseClient: Retrying connect to server: 
/127.0.1.1:36976. Already tried 3 time(s).
09/09/12 09:40:36 INFO ipc.HBaseClient: Retrying connect to server: 
/127.0.1.1:36976. Already tried 4 time(s).
09/09/12 09:40:38 INFO ipc.HBaseClient: Retrying connect to server: 
/127.0.1.1:36976. Already tried 5 time(s).
09/09/12 09:40:40 INFO ipc.HBaseClient: Retrying connect to server: 
/127.0.1.1:36976. Already tried 6 time(s).
09/09/12 09:40:42 INFO ipc.HBaseClient: Retrying connect to server: 
/127.0.1.1:36976. Already tried 7 time(s).
09/09/12 09:40:44 INFO ipc.HBaseClient: Retrying connect to server: 
/127.0.1.1:36976. Already tried 8 time(s).
09/09/12 09:40:46 INFO ipc.HBaseClient: Retrying connect to server: 
/127.0.1.1:36976. Already tried 9 time(s).
09/09/12 09:40:47 INFO ipc.HbaseRPC: Server at /127.0.1.1:36976 not available 
yet, Zzzzz...
09/09/12 09:40:47 INFO ipc.HbaseRPC: Server at /127.0.1.1:36976 could not be 
reached after 1 tries, giving up.
09/09/12 09:40:49 INFO ipc.HBaseClient: Retrying connect to server: 
/127.0.1.1:36976. Already tried 0 time(s).
09/09/12 09:40:51 INFO ipc.HBaseClient: Retrying connect to server: 
/127.0.1.1:36976. Already tried 1 time(s).
09/09/12 09:40:53 INFO ipc.HBaseClient: Retrying connect to server: 
/127.0.1.1:36976. Already tried 2 time(s).
09/09/12 09:40:55 INFO ipc.HBaseClient: Retrying connect to server: 
/127.0.1.1:36976. Already tried 3 time(s).
09/09/12 09:40:57 INFO ipc.HBaseClient: Retrying connect to server: 
/127.0.1.1:36976. Already tried 4 time(s).
09/09/12 09:40:59 INFO ipc.HBaseClient: Retrying connect to server: 
/127.0.1.1:36976. Already tried 5 time(s).
09/09/12 09:41:01 INFO ipc.HBaseClient: Retrying connect to server: 
/127.0.1.1:36976. Already tried 6 time(s).
09/09/12 09:41:03 INFO ipc.HBaseClient: Retrying connect to server: 
/127.0.1.1:36976. Already tried 7 time(s).
09/09/12 09:41:05 INFO ipc.HBaseClient: Retrying connect to server: 
/127.0.1.1:36976. Already tried 8 time(s).
09/09/12 09:41:07 INFO ipc.HBaseClient: Retrying connect to server: 
/127.0.1.1:36976. Already tried 9 time(s).
09/09/12 09:41:08 INFO ipc.HbaseRPC: Server at /127.0.1.1:36976 not available 
yet, Zzzzz...
09/09/12 09:41:08 INFO ipc.HbaseRPC: Server at /127.0.1.1:36976 could not be 
reached after 1 tries, giving up.
Exception in thread "main" 
org.apache.hadoop.hbase.client.RetriesExhaustedException: Trying to contact 
region server /127.0.1.1:36976 for region unknown, row 'unknown', but failed 
after 1 attempts.at org.apache.hadoop.hbase.ipc.HBaseRPC.waitForProxy(
at 
org.apache.hadoop.hbase.client.HConnectionManager$TableServers.getHRegionConnection(
at 
org.apache.hadoop.hbase.client.HConnectionManager$TableServers.getHRegionConnection(
at 
org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRootRegion(
at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(
at 
org.apache.hadoop.hbase.client.HConnectionManager$TableServers.relocateRegion(
at 
org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegionInMeta(
at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(
at 
org.apache.hadoop.hbase.client.HConnectionManager$TableServers.relocateRegion(
at 
org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegionInMeta(
at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(
at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(
at org.apache.hadoop.hbase.client.HTable.<init>(
at org.apache.hadoop.hbase.client.HTable.<init>(
at 
MyClient.main(HBaseRPC.java:425)HConnectionManager.java:857)HConnectionManager.java:873)HConnectionManager.java:927)HConnectionManager.java:573)HConnectionManager.java:555)HConnectionManager.java:686)HConnectionManager.java:582)HConnectionManager.java:555)HConnectionManager.java:686)HConnectionManager.java:586)HConnectionManager.java:549)HTable.java:125)HTable.java:103)MyClient.java:18)



----- Original Message ----
From: stack <[email protected]>
To: [email protected]
Sent: Saturday, September 12, 2009 12:04:00 AM
Subject: Re: Hbase Client problem

How is the client over on ubuntu?  If you try the cell there?  Does it work?
St.Ack

On Fri, Sep 11, 2009 at 7:40 PM, David Perona <[email protected]> wrote:

> The client is JBOSS running on Vista.  The server is Hadoop/hbase on
> Ubuntu.
>
>
>
> ----- Original Message ----
> From: Stack <[email protected]>
> To: "[email protected]" <[email protected]>
> Sent: Friday, September 11, 2009 8:17:33 PM
> Subject: Re: Hbase Client problem
>
> If ubuntu, why all the windows style pathes?
>
>
>
> On Sep 11, 2009, at 6:00 PM, David Perona <[email protected]> wrote:
>
> > I am beginning to think it is some sort of network problem even though I
> can use the web UIs from the client.  I am only running the client/Jboss on
> my laptop with a VM running Ubuntu 9.0.4 with Hadoop/Hbase.
> >
> > The STDOUT was just printing the HBaseConfiguration file as a string.
> >
> > JBOSS just wants to talk to Hbase.
> >
> > What is the minimum I information I need on the client to talk to hbase?
> I have the 3 jars listed below and the hbase-site.xml without anything else
> that I know of on the client.  I searched and removed any hadoop and hbase
> files or references on the client.  Here's my client hbase-site.xml:
> >
> > <configuration>
> > <property>
> >  <name>hbase.zookeeper.quorum</name>
> >  <value>user-laptop</value>
> > </property>
> > <property>
> >  <name>hbase.rootdir</name>
> >  <value>hdfs://user-laptop:9000/hbase</value>
> > </property>
> > </configuration>
> >
> > I am calling it a night and looking at it again tomorrow.
> >
> > Thanks for your help.
> >
> > DP
> >
> >
> > ----- Original Message ----
> > From: stack <[email protected]>
> > To: [email protected]
> > Sent: Friday, September 11, 2009 6:46:27 PM
> > Subject: Re: Hbase Client problem
> >
> > If the CLASSPATH is ordered as per the output below on the line STDOUT,
> then
> > hbase-default is perhaps being read before hbase-site so default values
> are
> > being found instead of your customizations?  This JBOSS client is trying
> to
> > talk to hbase or launch mapreduce jobs?
> > St.Ack
> >
> > On Fri, Sep 11, 2009 at 4:26 PM, David Perona <[email protected]>
> wrote:
> >
> >> I replaced all ips with host names in hadoop/hbase and got the same
> >> behavior.  Any other thoughts?
> >>
> >> Jboss console:
> >> 18:18:55,183 INFO [STDOUT] config=Configuration: core-default.xml,
> >> core-site.xml, hbase-default.xml, hbase-site.xml, C:/dev/hbase-site.xml
> >> 18:18:55,356 INFO [ZooKeeper] Client
> >> environment:zookeeper.version=3.2.0--1, built on 05/15/2009 06:05 GMT
> >> 18:18:55,357 INFO [ZooKeeper] Client environment:host.name=
> >> d1-laptop.gateway.2wire.net
> >> 18:18:55,357 INFO [ZooKeeper] Client environment:java.version=1.6.0_14
> >> 18:18:55,357 INFO [ZooKeeper] Client environment:java.vendor=Sun
> >> Microsystems Inc.
> >> 18:18:55,357 INFO [ZooKeeper] Client environment:java.home=C:\Program
> Files
> >> (x86)\Java\jre6
> >> 18:18:55,357 INFO [ZooKeeper] Client
> environment:java.class.path=C:\JBOSS\
> >> jboss-5.1.0.GA\bin\run.jar
> >> 18:18:55,357 INFO [ZooKeeper] Client
> >> environment:java.io.tmpdir=C:\Users\owner\AppData\Local\Temp\
> >> 18:18:55,357 INFO [ZooKeeper] Client environment:java.compiler=<NA>
> >> 18:18:55,357 INFO [ZooKeeper] Client environment:os.name=Windows Vista
> >> 18:18:55,358 INFO [ZooKeeper] Client environment:os.arch=x86
> >> 18:18:55,358 INFO [ZooKeeper] Client environment:os.version=6.0
> >> 18:18:55,358 INFO [ZooKeeper] Client environment:user.name=owner
> >> 18:18:55,358 INFO [ZooKeeper] Client
> environment:user.home=C:\Users\owner
> >> 18:18:55,358 INFO [ZooKeeper] Client environment:user.dir=C:\JBOSS\
> >> jboss-5.1.0.GA\bin
> >> 18:18:55,360 INFO [ZooKeeper] Initiating client connection,
> >> host=user-laptop:2181 sessionTimeout=60000
> >>
> watcher=org.apache.hadoop.hbase.client.hconnectionmanager$clientzkwatc...@1abf27c
> >> 18:18:55,364 INFO [ClientCnxn] zookeeper.disableAutoWatchReset is false
> >> 18:18:56,262 INFO [ClientCnxn] Attempting connection to server
> user-laptop/
> >> 192.168.1.68:2181
> >> 18:18:56,275 INFO [ClientCnxn] Priming connection to
> >> java.nio.channels.SocketChannel[connected local=/192.168.1.65:63498
> remote=user-laptop/
> >> 192.168.1.68:2181]
> >> 18:18:56,285 INFO [ClientCnxn] Server connection successful
> >> 18:18:58,471 INFO [HBaseClient] Retrying connect to server: /
> >> 127.0.1.1:44915. Already tried 0 time(s).
> >> 18:19:00,511 INFO [HBaseClient] Retrying connect to server: /
> >> 127.0.1.1:44915. Already tried 1 time(s).
> >> 18:19:02,510 INFO [HBaseClient] Retrying connect to server: /
> >> 127.0.1.1:44915. Already tried 2 time(s).
> >> 18:19:04,510 INFO [HBaseClient] Retrying connect to server: /
> >> 127.0.1.1:44915. Already tried 3 time(s).
> >> 18:19:06,520 INFO [HBaseClient] Retrying connect to server: /
> >> 127.0.1.1:44915. Already tried 4 time(s).
> >> 18:19:08,532 INFO [HBaseClient] Retrying connect to server: /
> >> 127.0.1.1:44915. Already tried 5 time(s).
> >>
> >>
> >> ----- Original Message ----
> >> From: David Perona <[email protected]>
> >> To: [email protected]
> >> Sent: Friday, September 11, 2009 3:07:31 PM
> >> Subject: Hbase Client problem
> >>
> >> It appears that the hbase client is trying to connect to the server at
> >> 127.0.1.1:35059.  This is not the desired behavior, but am not sure how
> to
> >> correct it.
> >>
> >> The client (JBOSS) has the following jars in the lib directory:
> >> hbase-0.20.0.jar, hadoop-0.20.1-core.jar, and
> >> zookeeper-r785019-hbase-1329.jar.  I assume these are the appropriate
> ones.
> >>
> >> I am running Hadoop 0.20.1 and hbase 0.20.0.  Both are running and have
> >> been confirmed through their respective web UIs.  I created a table in
> hbase
> >> through the shell.  It is a pseudo-distributed deployment. This
> >> identical configuration has been successfully run using 0.19
> hadoop/hbase.
> >>
> >>
> >> hbase-env.sh:  HBASE_MANAGES_ZK=true
> >> hbase-site.xml: <property>
> >> <name>hbase.zookeeper.quorum</name>
> >> <value>192.168.1.68</value>
> >> </property>
> >> <property>
> >> <name>hbase.rootdir</name>
> >> <value>hdfs://192.168.1.68:9000/hbase</value>
> >> </property>
> >>  java client code:
> >> HBaseConfiguration config =
> >>
> config.addResource(newHBaseConfiguration();newPath("C://dev/hbase-site.xml"));HTable
> >> table =
> >>
> >> JBOSS Console:
> >> 14:05:13,401 INFO [ZooKeeper] Client
> >> environment:zookeeper.version=3.2.0--1, built on 05/15/2009 06:05 GMT
> >> 14:05:13,402 INFO [ZooKeeper] Client environment:host.name=
> >> d1-laptop.gateway.2wire.net
> >> 14:05:13,402 INFO [ZooKeeper] Client environment:java.version=1.6.0_14
> >> 14:05:13,402 INFO [ZooKeeper] Client environment:java.vendor=Sun
> >> Microsystems Inc.
> >> 14:05:13,402 INFO [ZooKeeper] Client environment:java.home=C:\Program
> Files
> >> (x86)\Java\jre6
> >> 14:05:13,402 INFO [ZooKeeper] Client
> environment:java.class.path=C:\JBOSS\
> >> jboss-5.1.0.GA\bin\run.jar
> >> 14:05:13,403 INFO [ZooKeeper] Client
> >> environment:java.io.tmpdir=C:\Users\owner\AppData\Local\Temp\
> >> 14:05:13,403 INFO [ZooKeeper] Client environment:java.compiler=<NA>
> >> 14:05:13,403 INFO [ZooKeeper] Client environment:os.name=Windows Vista
> >> 14:05:13,403 INFO [ZooKeeper] Client environment:os.arch=x86
> >> 14:05:13,403 INFO [ZooKeeper] Client environment:os.version=6.0
> >> 14:05:13,403 INFO [ZooKeeper] Client environment:user.name=owner
> >> 14:05:13,403 INFO [ZooKeeper] Client
> environment:user.home=C:\Users\owner
> >> 14:05:13,403 INFO [ZooKeeper] Client environment:user.dir=C:\JBOSS\
> >> jboss-5.1.0.GA\bin
> >> 14:05:13,405 INFO [ZooKeeper] Initiating client connection, host=
> >> 192.168.1.68:2181 sessionTimeout=60000
> >>
> watcher=org.apache.hadoop.hbase.client.hconnectionmanager$clientzkwatc...@62a5dd
> >> 14:05:13,408 INFO [ClientCnxn] zookeeper.disableAutoWatchReset is false
> >> 14:05:14,263 INFO [ClientCnxn] Attempting connection to server /
> >> 192.168.1.68:2181
> >> 14:05:14,273 INFO [ClientCnxn] Priming connection to
> >> java.nio.channels.SocketChannel[connected local=/192.168.1.65:60282
> remote=/
> >> 192.168.1.68:2181]
> >> 14:05:14,294 INFO [ClientCnxn] Server connection successful
> >> 14:05:16,455 INFO [HBaseClient] Retrying connect to server: /
> >> 127.0.1.1:35059. Already tried 0 time(s).
> >> 14:05:18,464 INFO [HBaseClient] Retrying connect to server: /
> >> 127.0.1.1:35059. Already tried 1 time(s).
> >> 14:05:20,457 INFO [HBaseClient] Retrying connect to server: /
> >> 127.0.1.1:35059. Already tried 2 time(s).
> >> 14:05:22,455 INFO [HBaseClient] Retrying connect to server: /
> >> 127.0.1.1:35059. Already tried 3 time(s).
> >> 14:05:24,457 INFO [HBaseClient] Retrying connect to server: /
> >> 127.0.1.1:35059. Already tried 4 time(s).
> >> 14:05:26,458 INFO [HBaseClient] Retrying connect to server: /
> >> 127.0.1.1:35059. Already tried 5 time(s).
> >> 14:05:28,454 INFO [HBaseClient] Retrying connect to server: /
> >> 127.0.1.1:35059. Already tried 6 time(s).
> >> 14:05:30,447 INFO [HBaseClient] Retrying connect to server: /
> >> 127.0.1.1:35059. Already tried 7 time(s).
> >> 14:05:32,444 INFO [HBaseClient] Retrying connect to server: /
> >> 127.0.1.1:35059. Already tried 8 time(s).
> >> 14:05:34,434 INFO [HBaseClient] Retrying connect to server: /
> >> 127.0.1.1:35059. Already tried 9 time(s).
> >> 14:05:35,433 INFO [HbaseRPC] Server at /127.0.1.1:35059 not available
> yet,
> >> Zzzzz...
> >>
> >> Any help would be appreciated and do not assume that I know what I am
> >> doing:)
> >>
> >> Thanks,
> >> DPnewHTable(config, "contact");
> >>
> >>
> >
>
>

Exceptions:

Reply via email to