You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by Aditya Kumar <ad...@yahoo.com> on 2011/12/15 04:07:42 UTC

HBase accessing Tables

HI all,

Atlast I am able to install the hadoop/Hbase and was ableto create some tables.

when I login to http://10.10.20.1:60010/master.jsp
I am able to see all the tables I have created. b(from webpage)

But when I try to see from HBASE shell noting is happening.

===
hbase(main):021:0* list

TABLE
11/12/14 18:49:57 FATAL zookeeper.ZKConfig: The server in zoo.cfg cannot be set to localhost in a fully-distributed setup because it won't be reachable. See "Getting Started" for more information.

ERROR: org.apache.hadoop.hbase.ZooKeeperConnectionException: org.apache.hadoop.hbase.ZooKeeperConnectionException: org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase

Here is some help for this command:
List all tables in hbase. Optional regular expression parameter could
be used to filter the output. Examples:
==

how can I see the list of tables?
how to fix the Issue I am having?

Can you please guide me.

-Adi
--2120775178-2132875201-1323918267=:17723
Content-Type: text/html; charset=us-ascii

<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 8px; margin-right: 0px; margin-bottom: 0px; margin-left: 12px; font-family: arial, helvetica, sans-serif; "><div style="font-size: 13px; ">HI all,</div><div style="font-size: 13px; "><br></div><div style="font-size: 13px; ">Atlast I am able to install the hadoop/Hbase and was ableto create some tables.</div><div style="font-size: 13px; "><br></div><div style="font-size: 13px; ">when I login to http://10.10.20.1:60010/master.jsp</div><div style="font-size: 13px; ">I am able to see all the tables I have created. b(from webpage)</div><div style="font-size: 13px; "><br></div><div style="font-size: 13px; ">But when I try to see from HBASE shell noting is happening.</div><div style="font-size: 13px; "><br></div><div
style="font-size: 13px; ">===</div><div style="font-size: 13px; ">hbase(main):021:0* list<br></div><div><div><font class="Apple-style-span" size="2">TABLE</font></div><div><font class="Apple-style-span" size="2">11/12/14 18:49:57 FATAL zookeeper.ZKConfig: The server in zoo.cfg cannot be set to localhost in a fully-distributed setup because it won't be reachable. See "Getting Started" for more information.</font></div><div><font class="Apple-style-span" size="2"><br></font></div><div><font class="Apple-style-span" size="2">ERROR: org.apache.hadoop.hbase.ZooKeeperConnectionException: org.apache.hadoop.hbase.ZooKeeperConnectionException: org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase</font></div><div><font class="Apple-style-span" size="2"><br></font></div><div><font class="Apple-style-span" size="2">Here is some help for this command:</font></div><div><font class="Apple-style-span" size="2">List
all tables in hbase. Optional regular expression parameter could</font></div><div><font class="Apple-style-span" size="2">be used to filter the output. Examples:</font></div><div><font class="Apple-style-span" size="2">==</font></div><div><font class="Apple-style-span" size="2"><br></font></div><div><font class="Apple-style-span" size="2">how can I see the list of tables?</font></div><div style="font-size: 13px; ">how to fix the Issue I am having?</div><div style="font-size: 13px; "><br></div><div style="font-size: 13px; ">Can you please guide me.</div><div style="font-size: 13px; "><br></div><div style="font-size: 13px; ">-Adi</div></div></div></div> </div></body></html>
--2120775178-2132875201-1323918267=:17723--

Re: HBase accessing Tables

Posted by Jean-Daniel Cryans <jd...@apache.org>.
Per the error message:

11/12/14 18:49:57 FATAL zookeeper.ZKConfig: The server in zoo.cfg
cannot be set to localhost in a fully-distributed setup because it
won't be reachable. See "Getting Started" for more information.

You are running with hbase.cluster.distributed set to true but
hbase.zookeeper.quorum was kept to the default value of localhost, you
need to fix this.

J-D

On Wed, Dec 14, 2011 at 7:07 PM, Aditya Kumar <ad...@yahoo.com> wrote:
> HI all,
>
> Atlast I am able to install the hadoop/Hbase and was ableto create some tables.
>
> when I login to http://10.10.20.1:60010/master.jsp
> I am able to see all the tables I have created. b(from webpage)
>
> But when I try to see from HBASE shell noting is happening.
>
> ===
> hbase(main):021:0* list
>
> TABLE
> 11/12/14 18:49:57 FATAL zookeeper.ZKConfig: The server in zoo.cfg cannot be set to localhost in a fully-distributed setup because it won't be reachable. See "Getting Started" for more information.
>
> ERROR: org.apache.hadoop.hbase.ZooKeeperConnectionException: org.apache.hadoop.hbase.ZooKeeperConnectionException: org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase
>
> Here is some help for this command:
> List all tables in hbase. Optional regular expression parameter could
> be used to filter the output. Examples:
> ==
>
> how can I see the list of tables?
> how to fix the Issue I am having?
>
> Can you please guide me.
>
> -Adi
> --2120775178-2132875201-1323918267=:17723
> Content-Type: text/html; charset=us-ascii
>
> <html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><div style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 8px; margin-right: 0px; margin-bottom: 0px; margin-left: 12px; font-family: arial, helvetica, sans-serif; "><div style="font-size: 13px; ">HI all,</div><div style="font-size: 13px; "><br></div><div style="font-size: 13px; ">Atlast I am able to install the hadoop/Hbase and was ableto create some tables.</div><div style="font-size: 13px; "><br></div><div style="font-size: 13px; ">when I login to http://10.10.20.1:60010/master.jsp</div><div style="font-size: 13px; ">I am able to see all the tables I have created. b(from webpage)</div><div style="font-size: 13px; "><br></div><div style="font-size: 13px; ">But when I try to see from HBASE shell noting is happening.</div><div style="font-size: 13px; "><br></div><div
> style="font-size: 13px; ">===</div><div style="font-size: 13px; ">hbase(main):021:0* list<br></div><div><div><font class="Apple-style-span" size="2">TABLE</font></div><div><font class="Apple-style-span" size="2">11/12/14 18:49:57 FATAL zookeeper.ZKConfig: The server in zoo.cfg cannot be set to localhost in a fully-distributed setup because it won't be reachable. See "Getting Started" for more information.</font></div><div><font class="Apple-style-span" size="2"><br></font></div><div><font class="Apple-style-span" size="2">ERROR: org.apache.hadoop.hbase.ZooKeeperConnectionException: org.apache.hadoop.hbase.ZooKeeperConnectionException: org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase</font></div><div><font class="Apple-style-span" size="2"><br></font></div><div><font class="Apple-style-span" size="2">Here is some help for this command:</font></div><div><font class="Apple-style-span" size="2">List
> all tables in hbase. Optional regular expression parameter could</font></div><div><font class="Apple-style-span" size="2">be used to filter the output. Examples:</font></div><div><font class="Apple-style-span" size="2">==</font></div><div><font class="Apple-style-span" size="2"><br></font></div><div><font class="Apple-style-span" size="2">how can I see the list of tables?</font></div><div style="font-size: 13px; ">how to fix the Issue I am having?</div><div style="font-size: 13px; "><br></div><div style="font-size: 13px; ">Can you please guide me.</div><div style="font-size: 13px; "><br></div><div style="font-size: 13px; ">-Adi</div></div></div></div> </div></body></html>
> --2120775178-2132875201-1323918267=:17723--

Re: Fw: HBase accessing Tables

Posted by Andrei Savu <sa...@gmail.com>.
We've seen a similar issue reported for Apache Whirr.

I suspect this is an environment issue. I think HBase is running with
a  different set on environment variables. You need to somehow make
sure that bash has the same env when running "hbase shell".

I hope this helps.

On Thu, Dec 15, 2011 at 5:22 AM, Aditya Kumar <ad...@yahoo.com> wrote:
> HI all,
>
>
> I am able to install the hadoop/Hbase and was able to create some tables.
>
> when I login to http://10.10.20.1:60010/master.jsp
> I am able to see all the tables I have created. b(from webpage)
>
> But when I try to see from HBASE shell noting is happening.
>
> ===
> hbase(main):021:0* list
>
> TABLE
> 11/12/14 18:49:57 FATAL zookeeper.ZKConfig: The server in zoo.cfg cannot be set to localhost in a fully-distributed setup because it won't be reachable. See "Getting Started" for more information.
>
> ERROR: org.apache.hadoop.hbase.ZooKeeperConnectionException: org.apache.hadoop.hbase.ZooKeeperConnectionException: org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase
>
> Here is some help for this command:
> List all tables in hbase. Optional regular expression parameter could
> be used to filter the output. Examples:
> ==
>
> how can I see the list of tables?
> how to fix the Issue I am having?
>
> Can you please guide me.
>
> -Adi
>
>
>
> P.S: I initially posted to Hbase but later found that it is a zookeeper issue so posting in zoo keeper mailing list

Re: Fw: HBase accessing Tables

Posted by Mahadev Konar <ma...@hortonworks.com>.
Aditya,
 It seems like you are setting the hostnames as localhost in your
zoo.cfg. You will have to use real hostnames for that.

Hope that helps.

mahadev

On Wed, Dec 14, 2011 at 7:22 PM, Aditya Kumar <ad...@yahoo.com> wrote:
> HI all,
>
>
> I am able to install the hadoop/Hbase and was able to create some tables.
>
> when I login to http://10.10.20.1:60010/master.jsp
> I am able to see all the tables I have created. b(from webpage)
>
> But when I try to see from HBASE shell noting is happening.
>
> ===
> hbase(main):021:0* list
>
> TABLE
> 11/12/14 18:49:57 FATAL zookeeper.ZKConfig: The server in zoo.cfg cannot be set to localhost in a fully-distributed setup because it won't be reachable. See "Getting Started" for more information.
>
> ERROR: org.apache.hadoop.hbase.ZooKeeperConnectionException: org.apache.hadoop.hbase.ZooKeeperConnectionException: org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase
>
> Here is some help for this command:
> List all tables in hbase. Optional regular expression parameter could
> be used to filter the output. Examples:
> ==
>
> how can I see the list of tables?
> how to fix the Issue I am having?
>
> Can you please guide me.
>
> -Adi
>
>
>
> P.S: I initially posted to Hbase but later found that it is a zookeeper issue so posting in zoo keeper mailing list

Fw: HBase accessing Tables

Posted by Aditya Kumar <ad...@yahoo.com>.
HI all,


I am able to install the hadoop/Hbase and was able to create some tables.

when I login to http://10.10.20.1:60010/master.jsp
I am able to see all the tables I have created. b(from webpage)

But when I try to see from HBASE shell noting is happening.

===
hbase(main):021:0* list

TABLE
11/12/14 18:49:57 FATAL zookeeper.ZKConfig: The server in zoo.cfg cannot be set to localhost in a fully-distributed setup because it won't be reachable. See "Getting Started" for more information.

ERROR: org.apache.hadoop.hbase.ZooKeeperConnectionException: org.apache.hadoop.hbase.ZooKeeperConnectionException: org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase

Here is some help for this command:
List all tables in hbase. Optional regular expression parameter could
be used to filter the output. Examples:
==

how can I see the list of tables?
how to fix the Issue I am having?

Can you please guide me.

-Adi



P.S: I initially posted to Hbase but later found that it is a zookeeper issue so posting in zoo keeper mailing list