hello,
I have written a simple java program to load data and scan table in hbase,
but get problems.
this is my code snap:
HBaseConfiguration config = new HBaseConfiguration();
HTable table = new HTable(config, "logtable");
..
//do something with the table
this program blocked when trying to
Hi Exception,
For starters the logs say you are trying the wrong ZooKeeper node to
get the HBase details (localhost) and you config has:
hbase.zookeeper.quorum
dev32
hbase.zookeeper.quorum
localhost
You are declaring it twice and the last one wins. Remove the second
Hi George,
thanks for you reply and sorry for the silly mistake.
I change the hbase-site.xml to this:
hbase.cluster.distributed
true
hbase.rootdir
hdfs://dev32:9000/hbase
hbase.zookeepe
Hi,
I did some investigation on this issue.There are several things I need to
make clear.
1, I'm using Cloudera's Distribution for Hadoop(0.20.0),HBase(0.20.6) and
Zookeeper(3.3.1)
2, The HBase didn't manage it's own instance of zookeeper.
3, I found my program can connected to zookeeper successf
Hi Exception,
This is up to you to set up properly. If you run them on the same
cluster/network then you either share the same ZooKeeper or make sure they use
different ports (as per the zoo.cfg). Also make sure you have the proper
ZooKeeper quorum set and your client being able to "see" it. If
thanks Geogre.
I have already shut down the Flume instance. So there should be no zookeeper
conflict.
I wrote a shell script to run the java program. This is the script:
#!/bin/bash
HADOOPHOME="/root/hadoop/";
HBASEHOME="/root/hbase";
ZOOKEEPERHOME="/root/zookeeper";
RUNLIB="${HADOOPHOME}/hado
OK, so ZooKeeper works now and the client can obviously connect. After the
cluster is running can you start the HBase shell and see if you can scan meta
or root? Simply try a "> scan '-ROOT-'" in the shell.
Do you have anything blocking access to the server hosting those regions? Is
port 60020
yes, the hbase shell works fine.I can scan both '-ROOT-' and '.META.'. Also,
I created a table and put some data into it.
The port 60020 is listened by region server:
tcp6 0 0 dev_26:60020[::]:* LISTEN hbase 1563816
5610/java
I wrote a simple program to try to locat
On Tue, Dec 7, 2010 at 3:51 AM, exception qin wrote:
> Does this mean port 60020 unaccessable?
>
Yes -- can you get to 10.1.1.26:60020? -- or your programming is not
picking up the configuration and is pointed at 60020 on wrong
interface or there is a mismatch in hbase versions between client and
: user@hbase.apache.org
Subject: Re: blocked when creating HTable
Hi,
I did some investigation on this issue.There are several things I need to
make clear.
1, I'm using Cloudera's Distribution for Hadoop(0.20.0),HBase(0.20.6) and
Zookeeper(3.3.1)
2, The HBase didn't manage it
ied to mix and match
> zookeeper versions
>
> Dave
>
> -Original Message-
> From: exception qin [mailto:exceptionq...@gmail.com]
> Sent: Tuesday, December 07, 2010 12:20 AM
> To: user@hbase.apache.org
> Subject: Re: blocked when creating HTable
>
> H
11 matches
Mail list logo