You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Jignesh Patel <ji...@gmail.com> on 2011/10/12 23:58:26 UTC

problem in starting in Hbase

I have following setup in my hbase-site.xml
<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://localhost:9000/hbase</value>
</property>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
</configuration>

but when I started the Hbase I got following error.

ERROR: org.apache.hadoop.hbase.ZooKeeperConnectionException: HBase is able
to connect to ZooKeeper but the connection closes immediately. This could be
a sign that the server has too many connections (30 is the default).
Consider inspecting your ZK server logs for that error and then make sure
you are reusing HBaseConfiguration as often as you can. See HTable's javadoc
for more information.

My OS: Max Lion X
HBase Version : 0.90.4

The above error comes when I have either Hadoop running in sinlge node setup
or it ain't running.

-Jignesh

Re: problem in starting in Hbase

Posted by Jean-Daniel Cryans <jd...@apache.org>.
It says connection refused trying to talk to zookeeper (again unrelated to
Hadoop), is zookeeper running? Can you check the log?

J-D

On Fri, Oct 14, 2011 at 12:29 PM, Jignesh Patel <ji...@gmail.com>wrote:

> Here is the required details
>
> http://pastebin.com/KrJePt64
>
>
> On Fri, Oct 14, 2011 at 3:28 PM, Jignesh Patel <jigneshmpatel@gmail.com
> >wrote:
>
> > Guys,
> > I am struggling from last 3 days to integrate Hbase0.90.4 with Hadoop
> > 0.20.205.0.
> > And really don't know what is wrong. If either of you help me to run this
> > then it will be a great help. I am trying to run in pseudo mode and
> getting
> > following error.
> >
> >
> >    1.  2011-10-14 14:38:21,382 INFO org.apache.zookeeper.ClientCnxn:
> >    Opening socket connection to server
> localhost/fe80:0:0:0:0:0:0:1%1:2181
> >    2.  2011-10-14 14:38:21,383 WARN org.apache.zookeeper.ClientCnxn:
> >    Session 0x13303b76e500002 for server null, unexpected error, closing
> socket
> >    connection and attempting reconnect
> >    3.  java.net.ConnectException: Connection refused
> >    4.          at sun.nio.ch.SocketChannelImpl.checkConnect(Native
> Method)
> >    5.          at
> >    sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567)
> >    6.          at
> >    org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1119)
> >
> >
> >
> >
> > On Thu, Oct 13, 2011 at 1:33 PM, Jean-Daniel Cryans <jdcryans@apache.org
> >wrote:
> >
> >> Have you done what the exception message tells you to do? It's related
> to
> >> ZooKeeper, not HDFS.
> >>
> >> J-D
> >>
> >> On Wed, Oct 12, 2011 at 2:58 PM, Jignesh Patel <jigneshmpatel@gmail.com
> >> >wrote:
> >>
> >> > I have following setup in my hbase-site.xml
> >> > <configuration>
> >> > <property>
> >> > <name>hbase.rootdir</name>
> >> > <value>hdfs://localhost:9000/hbase</value>
> >> > </property>
> >> > <property>
> >> > <name>dfs.replication</name>
> >> > <value>1</value>
> >> > </property>
> >> > </configuration>
> >> >
> >> > but when I started the Hbase I got following error.
> >> >
> >> > ERROR: org.apache.hadoop.hbase.ZooKeeperConnectionException: HBase is
> >> able
> >> > to connect to ZooKeeper but the connection closes immediately. This
> >> could
> >> > be
> >> > a sign that the server has too many connections (30 is the default).
> >> > Consider inspecting your ZK server logs for that error and then make
> >> sure
> >> > you are reusing HBaseConfiguration as often as you can. See HTable's
> >> > javadoc
> >> > for more information.
> >> >
> >> > My OS: Max Lion X
> >> > HBase Version : 0.90.4
> >> >
> >> > The above error comes when I have either Hadoop running in sinlge node
> >> > setup
> >> > or it ain't running.
> >> >
> >> > -Jignesh
> >> >
> >>
> >
> >
>

Re: problem in starting in Hbase

Posted by Jignesh Patel <ji...@gmail.com>.
Here is the required details

http://pastebin.com/KrJePt64


On Fri, Oct 14, 2011 at 3:28 PM, Jignesh Patel <ji...@gmail.com>wrote:

> Guys,
> I am struggling from last 3 days to integrate Hbase0.90.4 with Hadoop
> 0.20.205.0.
> And really don't know what is wrong. If either of you help me to run this
> then it will be a great help. I am trying to run in pseudo mode and getting
> following error.
>
>
>    1.  2011-10-14 14:38:21,382 INFO org.apache.zookeeper.ClientCnxn:
>    Opening socket connection to server localhost/fe80:0:0:0:0:0:0:1%1:2181
>    2.  2011-10-14 14:38:21,383 WARN org.apache.zookeeper.ClientCnxn:
>    Session 0x13303b76e500002 for server null, unexpected error, closing socket
>    connection and attempting reconnect
>    3.  java.net.ConnectException: Connection refused
>    4.          at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
>    5.          at
>    sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567)
>    6.          at
>    org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1119)
>
>
>
>
> On Thu, Oct 13, 2011 at 1:33 PM, Jean-Daniel Cryans <jd...@apache.org>wrote:
>
>> Have you done what the exception message tells you to do? It's related to
>> ZooKeeper, not HDFS.
>>
>> J-D
>>
>> On Wed, Oct 12, 2011 at 2:58 PM, Jignesh Patel <jigneshmpatel@gmail.com
>> >wrote:
>>
>> > I have following setup in my hbase-site.xml
>> > <configuration>
>> > <property>
>> > <name>hbase.rootdir</name>
>> > <value>hdfs://localhost:9000/hbase</value>
>> > </property>
>> > <property>
>> > <name>dfs.replication</name>
>> > <value>1</value>
>> > </property>
>> > </configuration>
>> >
>> > but when I started the Hbase I got following error.
>> >
>> > ERROR: org.apache.hadoop.hbase.ZooKeeperConnectionException: HBase is
>> able
>> > to connect to ZooKeeper but the connection closes immediately. This
>> could
>> > be
>> > a sign that the server has too many connections (30 is the default).
>> > Consider inspecting your ZK server logs for that error and then make
>> sure
>> > you are reusing HBaseConfiguration as often as you can. See HTable's
>> > javadoc
>> > for more information.
>> >
>> > My OS: Max Lion X
>> > HBase Version : 0.90.4
>> >
>> > The above error comes when I have either Hadoop running in sinlge node
>> > setup
>> > or it ain't running.
>> >
>> > -Jignesh
>> >
>>
>
>

Re: problem in starting in Hbase

Posted by Jignesh Patel <ji...@gmail.com>.
Guys,
I am struggling from last 3 days to integrate Hbase0.90.4 with Hadoop
0.20.205.0.
And really don't know what is wrong. If either of you help me to run this
then it will be a great help. I am trying to run in pseudo mode and getting
following error.


   1. 2011-10-14 14:38:21,382 INFO org.apache.zookeeper.ClientCnxn: Opening
   socket connection to server localhost/fe80:0:0:0:0:0:0:1%1:2181
   2. 2011-10-14 14:38:21,383 WARN org.apache.zookeeper.ClientCnxn: Session
   0x13303b76e500002 for server null, unexpected error, closing socket
   connection and attempting reconnect
   3. java.net.ConnectException: Connection refused
   4.         at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
   5.         at
   sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567)
   6.         at
   org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1119)




On Thu, Oct 13, 2011 at 1:33 PM, Jean-Daniel Cryans <jd...@apache.org>wrote:

> Have you done what the exception message tells you to do? It's related to
> ZooKeeper, not HDFS.
>
> J-D
>
> On Wed, Oct 12, 2011 at 2:58 PM, Jignesh Patel <jigneshmpatel@gmail.com
> >wrote:
>
> > I have following setup in my hbase-site.xml
> > <configuration>
> > <property>
> > <name>hbase.rootdir</name>
> > <value>hdfs://localhost:9000/hbase</value>
> > </property>
> > <property>
> > <name>dfs.replication</name>
> > <value>1</value>
> > </property>
> > </configuration>
> >
> > but when I started the Hbase I got following error.
> >
> > ERROR: org.apache.hadoop.hbase.ZooKeeperConnectionException: HBase is
> able
> > to connect to ZooKeeper but the connection closes immediately. This could
> > be
> > a sign that the server has too many connections (30 is the default).
> > Consider inspecting your ZK server logs for that error and then make sure
> > you are reusing HBaseConfiguration as often as you can. See HTable's
> > javadoc
> > for more information.
> >
> > My OS: Max Lion X
> > HBase Version : 0.90.4
> >
> > The above error comes when I have either Hadoop running in sinlge node
> > setup
> > or it ain't running.
> >
> > -Jignesh
> >
>

Re: problem in starting in Hbase

Posted by Jean-Daniel Cryans <jd...@apache.org>.
Have you done what the exception message tells you to do? It's related to
ZooKeeper, not HDFS.

J-D

On Wed, Oct 12, 2011 at 2:58 PM, Jignesh Patel <ji...@gmail.com>wrote:

> I have following setup in my hbase-site.xml
> <configuration>
> <property>
> <name>hbase.rootdir</name>
> <value>hdfs://localhost:9000/hbase</value>
> </property>
> <property>
> <name>dfs.replication</name>
> <value>1</value>
> </property>
> </configuration>
>
> but when I started the Hbase I got following error.
>
> ERROR: org.apache.hadoop.hbase.ZooKeeperConnectionException: HBase is able
> to connect to ZooKeeper but the connection closes immediately. This could
> be
> a sign that the server has too many connections (30 is the default).
> Consider inspecting your ZK server logs for that error and then make sure
> you are reusing HBaseConfiguration as often as you can. See HTable's
> javadoc
> for more information.
>
> My OS: Max Lion X
> HBase Version : 0.90.4
>
> The above error comes when I have either Hadoop running in sinlge node
> setup
> or it ain't running.
>
> -Jignesh
>