hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SÅ‚awek Trybus <slawek.try...@gmail.com>
Subject Java client connection to HBase 0.20.1 problem
Date Mon, 02 Nov 2009 11:38:52 GMT
Hi to everyone in the forum!

I'm getting started with HBase 0.20.1 and I'm trying to prepare dev
environment for web application development based on HBase as storage.

In my test desktop java application I'm getting console output like this:

09/11/02 01:59:57 INFO zookeeper.ZooKeeper: Client
environment:user.dir=C:\Data\Users\slawek\workspace\HBaseTestClient
09/11/02 01:59:57 INFO zookeeper.ZooKeeper: Initiating client connection,
connectString=192.168.219.129:2181 sessionTimeout=60000
watcher=org.apache.hadoop.hbase.client.HConnectionManager$ClientZKWatcher@4741d6
09/11/02 01:59:57 INFO zookeeper.ClientCnxn: zookeeper.disableAutoWatchReset
is false
09/11/02 01:59:57 INFO zookeeper.ClientCnxn: Attempting connection to server
/192.168.219.129:2181
09/11/02 01:59:57 INFO zookeeper.ClientCnxn: Priming connection to
java.nio.channels.SocketChannel[connected local=/192.168.219.1:54027remote=/
192.168.219.129:2181]
09/11/02 01:59:57 INFO zookeeper.ClientCnxn: Server connection successful
*09/11/02 01:59:59 INFO ipc.HbaseRPC: Server at /127.0.0.1:35565 could not
be reached after 1 tries, giving up.*
*09/11/02 02:00:02 INFO ipc.HbaseRPC: Server at /127.0.0.1:35565 could not
be reached after 1 tries, giving up.*
this info is appearing with no end -> *09/11/02 02:00:05 INFO ipc.HbaseRPC:
Server at /127.0.0.1:35565 could not be reached after 1 tries, giving up.*
...


I'm working on Windows Vista (running my java client application in eclipse)
and HBase is installed on Ubuntu 9.04 installed on VMware. Ubuntu virtual
machine has IP 192.168.219.129.
On Ubuntu I have installed Hadoop 0.20.1 and HBase 0.20.1 working in
Pseudo-Distributed Mode.

Hadoop conf files on Ubuntu:

*conf/core-site.xml*
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration>
<property>
<name>*fs.default.name*</name>
<value>*hdfs://localhost:9000*</value>
</property>
</configuration>

*conf/hdfs-site.xml*
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
figuration>
<property>
<name>*dfs.replication*</name>
<value>*1*</value>
</property>
</configuration>


*conf/hdfs-site.xml*
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration>
<property>
<name>*mapred.job.tracker*</name>
<value>*localhost:9001*</value>
</property>
</configuration>


HBase conf file on Ubuntu

*conf/hbase-site.xml*
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration>
  <property>
    <name>*h**base.rootdir*</name>
    <value>*hdfs://localhost:9000/hbase*</value>
    </description>
  </property>
</configuration>



In *classpath *of my java application there are all HBase jars and *
hbase-site.xml* file with content:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration>
  <property>
    <name>*hbase.rootdir*</name>
    <value>*hdfs://192.168.219.129:9000/hbase*</value>
    </description>
  </property>
  <property>
    <name>*hbase.zookeeper.quorum*</name>
    <value>*192.168.219.129*</value>
  </property>
</configuration>


When I'm connecting to HBase by shell it's working perfectly.
I know that there might be a problem bas content of */etc/hosts* file in
Ubuntu; mine is like this:

*127.0.0.1 localhost ubuntu*
# 127.0.1.1 ubuntu.localdomain ubuntu
# The following lines are desirable for IPv6 capable hosts
# ::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts


I don't know what's wrong in my configuration.
If you could advice I'd be very appreciate because now I can't go further
with my HBase.
Slawek

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message