hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stack <st...@duboce.net>
Subject Re: how to use hbase with eclipse?
Date Tue, 20 Oct 2009 04:32:52 GMT
Add the hbase conf directory to your eclipse CLASSPATH.  It should probably
be the first thing on the CLASSPATH.  Make sure that this conf dir has the
address of your cluster.

Your cluster is up and running?  Verify using shell.  It looks like its
trying to get to the zk cluster below but is not finding anything.

St.Ack

On Mon, Oct 19, 2009 at 8:13 PM, jdh <tianqiu_527@yahoo.com.cn> wrote:

>
> Hi,
> I just install hbase 0.20 with pseduo-distributed style according to the
> hbase wiki. Then I wrote a java program in eclipse. There was no compile
> error. but there was nothing happened when I ran the program although I
> tried to put and get some row in the program.
> Hadoop-*-core.jar and hbase-*-.jar was added into eclipse.
> here is the eclipse console content after running the program.
> Could you give me some advice?
> thanks!
>
>
> 09/10/20 10:40:05 INFO zookeeper.ZooKeeper: Client
> environment:zookeeper.version=3.2.1-808558, built on 08/27/2009 18:48 GMT
> 09/10/20 10:40:05 INFO zookeeper.ZooKeeper: Client
> environment:host.name=ubuntu.ubuntu-domain
> 09/10/20 10:40:05 INFO zookeeper.ZooKeeper: Client
> environment:java.version=1.6.0_16
> 09/10/20 10:40:05 INFO zookeeper.ZooKeeper: Client
> environment:java.vendor=Sun Microsystems Inc.
> 09/10/20 10:40:05 INFO zookeeper.ZooKeeper: Client
> environment:java.home=/usr/lib/jvm/java-6-sun-1.6.0.16/jre
> 09/10/20 10:40:05 INFO zookeeper.ZooKeeper: Client
>
> environment:java.class.path=/home/hi/workspace/hbaseclient/bin:/home/hi/hadoop/hbase/hbase-0.20.0.jar:/home/hi/hadoop/hadoop/hadoop-0.20.1-core.jar:/home/hi/hadoop/hadoop/lib/commons-logging-api-1.0.4.jar:/home/hi/hadoop/hbase/conf:/home/hi/hadoop/zookeeper/zookeeper-3.2.1.jar:/home/hi/hadoop/hbase/lib/commons-logging-1.0.4.jar:/home/hi/hadoop/hbase/lib/log4j-1.2.15.jar
> 09/10/20 10:40:05 INFO zookeeper.ZooKeeper: Client
>
> environment:java.library.path=/usr/lib/jvm/java-6-sun-1.6.0.16/jre/lib/i386/server:/usr/lib/jvm/java-6-sun-1.6.0.16/jre/lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.16/jre/../lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.16/jre/lib/i386/client:/usr/lib/jvm/java-6-sun-1.6.0.16/jre/lib/i386:/usr/lib/mozilla:/usr/lib/mozilla:/usr/java/packages/lib/i386:/lib:/usr/lib
> 09/10/20 10:40:05 INFO zookeeper.ZooKeeper: Client
> environment:java.io.tmpdir=/tmp
> 09/10/20 10:40:05 INFO zookeeper.ZooKeeper: Client
> environment:java.compiler=<NA>
> 09/10/20 10:40:05 INFO zookeeper.ZooKeeper: Client environment:os.name
> =Linux
> 09/10/20 10:40:05 INFO zookeeper.ZooKeeper: Client environment:os.arch=i386
> 09/10/20 10:40:05 INFO zookeeper.ZooKeeper: Client
> environment:os.version=2.6.28-11-generic
> 09/10/20 10:40:05 INFO zookeeper.ZooKeeper: Client environment:user.name
> =hi
> 09/10/20 10:40:05 INFO zookeeper.ZooKeeper: Client
> environment:user.home=/home/hi
> 09/10/20 10:40:05 INFO zookeeper.ZooKeeper: Client
> environment:user.dir=/home/hi/workspace/hbaseclient
> 09/10/20 10:40:05 INFO zookeeper.ZooKeeper: Initiating client connection,
> connectString=localhost:2181 sessionTimeout=60000
>
> watcher=org.apache.hadoop.hbase.client.HConnectionManager$ClientZKWatcher@157fb52
> 09/10/20 10:40:05 INFO zookeeper.ClientCnxn:
> zookeeper.disableAutoWatchReset
> is false
> 09/10/20 10:40:05 INFO zookeeper.ClientCnxn: Attempting connection to
> server
> localhost/0:0:0:0:0:0:0:1:2181
> 09/10/20 10:40:05 INFO zookeeper.ClientCnxn: Priming connection to
> java.nio.channels.SocketChannel[connected local=/0:0:0:0:0:0:0:1:35430
> remote=localhost/0:0:0:0:0:0:0:1:2181]
> 09/10/20 10:40:05 INFO zookeeper.ClientCnxn: Server connection successful
>
>
> --
> View this message in context:
> http://www.nabble.com/how-to-use-hbase--with-eclipse--tp25969117p25969117.html
> Sent from the HBase User mailing list archive at Nabble.com.
>
>

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