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: Stack: Must hbase0.20 go with zookeeper?
Date Sat, 01 Aug 2009 16:21:38 GMT
It seems your client cannot connect to the following ZK servers :
isiteam2, isiteam-desktop  because their hostname is unknown to your
client machine (the name of the exception is quite clear on that).

So make sure you can ping those machines using those hostnames. If you
configured your hbase-site correctly, start-hbase.sh should have
started the ZK servers for you.

You need the same but updated jars plus the zookeeper jar.

J-D

On Sat, Aug 1, 2009 at 12:15 PM, lei wang<nutchmaillist@gmail.com> wrote:
> Jean,Thank you.
> Now i can start my hbase 0.20 shell and it does work in shell.
> But I am still puzzled how to run my own java program to use hbase 0.20 api.
> In the 0.19.3 version, i can run the java program with add hbase-* .jar and
> hadoop-*.jar to my classpath.
> Now i change the jar to 0.20, it cann't work.
> The error messges is :
> *********************************************************************************************************
> [org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper]-[WARN]
> java.net.UnknownHostException: isiteam2
>    at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
>    at java.net.InetAddress$1.lookupAllHostAddr(Unknown Source)
>    at java.net.InetAddress.getAddressFromNameService(Unknown Source)
>    at java.net.InetAddress.getAllByName0(Unknown Source)
>    at java.net.InetAddress.getAllByName(Unknown Source)
>    at java.net.InetAddress.getAllByName(Unknown Source)
>    at java.net.InetAddress.getByName(Unknown Source)
>    at
> org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.setQuorumServers(ZooKeeperWrapper.java:129)
>    at
> org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.<init>(ZooKeeperWrapper.java:79)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.getZooKeeperWrapper(HConnectionManager.java:820)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRootRegion(HConnectionManager.java:837)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:515)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:491)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegionInMeta(HConnectionManager.java:565)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:524)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:491)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegionInMeta(HConnectionManager.java:565)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:528)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:491)
>    at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:125)
>    at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:103)
>    at
> isiteam.beyiwork.test.MyLittleHBaseClient.main(MyLittleHBaseClient.java:27)
>
>  2009-08-01 22:13:57
> [org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper]-[WARN]
> java.net.UnknownHostException: isiteam-desktop
>    at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
>    at java.net.InetAddress$1.lookupAllHostAddr(Unknown Source)
>    at java.net.InetAddress.getAddressFromNameService(Unknown Source)
>    at java.net.InetAddress.getAllByName0(Unknown Source)
>    at java.net.InetAddress.getAllByName(Unknown Source)
>    at java.net.InetAddress.getAllByName(Unknown Source)
>    at java.net.InetAddress.getByName(Unknown Source)
>    at
> org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.setQuorumServers(ZooKeeperWrapper.java:129)
>    at
> org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.<init>(ZooKeeperWrapper.java:79)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.getZooKeeperWrapper(HConnectionManager.java:820)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRootRegion(HConnectionManager.java:837)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:515)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:491)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegionInMeta(HConnectionManager.java:565)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:524)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:491)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegionInMeta(HConnectionManager.java:565)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:528)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:491)
>    at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:125)
>    at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:103)
>    at
> isiteam.beyiwork.test.MyLittleHBaseClient.main(MyLittleHBaseClient.java:27)
>
>  2009-08-01 22:13:57
> [org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper]-[ERROR] no valid quorum
> servers found in zoo.cfg
>  2009-08-01 22:13:57
> [org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper]-[WARN]
> java.net.UnknownHostException: isiteam2
>    at java.net.InetAddress.getAllByName0(Unknown Source)
>    at java.net.InetAddress.getAllByName(Unknown Source)
>    at java.net.InetAddress.getAllByName(Unknown Source)
>    at java.net.InetAddress.getByName(Unknown Source)
>    at
> org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.setQuorumServers(ZooKeeperWrapper.java:129)
>    at
> org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.<init>(ZooKeeperWrapper.java:79)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.getZooKeeperWrapper(HConnectionManager.java:820)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRootRegion(HConnectionManager.java:837)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:515)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.relocateRegion(HConnectionManager.java:497)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegionInMeta(HConnectionManager.java:628)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:524)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:491)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegionInMeta(HConnectionManager.java:565)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:528)
>    at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:491)
>    at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:125)
>    at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:103)
>    at
> isiteam.beyiwork.test.MyLittleHBaseClient.main(MyLittleHBaseClient.java:27)
> *********************************************************************************************************
> Should i need to install a zookeeper as metions in the its wiki?
> http://hadoop.apache.org/zookeeper/docs/current/zookeeperAdmin.html
>
> Addition, if i want to run my java program in eclipse, which .jar files
> should i add to my classpath lib?
> Hope your reply and thanks again.
>
>
> On Sat, Aug 1, 2009 at 11:17 PM, Jean-Daniel Cryans <jdcryans@apache.org>wrote:
>
>> HBase official release will happen when a release candidate gets only
>> +1s. I think the current one may get sunk, we'll see.
>>
>> Starting with hbase-0.20, as the doc says, it will start a Zookeeper
>> quorum for you unless you override that behavior, in which case you
>> must start it yourself. So ZK is mandatory and it is already contained
>> in the distribution.
>>
>> J-D
>>
>> On Sat, Aug 1, 2009 at 6:47 AM, lei wang<hbasemaillist@gmail.com> wrote:
>> > Stack's mail remind me us the hbase 0.20 candidate version,  when does
>> hbase
>> > 0.20.0 release?
>> > In the hbase 0.20.0 api overview, it mention zookeeper cluster
>> > configuration, but i am just use hadoop in hbase 0.19.3 before, how can i
>> do
>> > with hbase 0.20.0? I don't want to use zookeeper as a plugin.
>> >
>>
>

Mime
View raw message