You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Peter Wolf <op...@gmail.com> on 2012/01/10 18:03:40 UTC
Problem Stopping 0.90.5 Standalone
Hello all,
I am having trouble starting and stopping Standalone HBase.
I successfully start Standalone, or at least there is no error message
However, when I try to use the shell, I get this
hbase(main):001:0> list
TABLE
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.
And when I try to stop and restart, I get an infinite loop
Hemiola:~ peter$ dev/hbase-0.90.5/bin/stop-hbase.sh
stopping
hbase..................................................................
Hemiola:~ peter$ dev/hbase-0.90.5/bin/start-hbase.sh
master running as process 699. Stop it first.
I tried killing the process manually, and I also blew away my hbase
directory, but it after re-starting the problem is the same.
Can anyone recommend another way to stop, refresh, and restart
Standalone? I found this JIRA ticket. Is this the same issue? Is
there a workaround?
https://issues.apache.org/jira/browse/HBASE-4008
Thanks Peter
Re: Problem Stopping 0.90.5 Standalone (2)
Posted by Peter Wolf <op...@gmail.com>.
Perhaps not related, but I followed the "Run the
'${HBASE_HOME}/bin/hbase migrate' script" suggestion and...
Hemiola:logs peter$ ../bin/hbase migrate
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/hadoop/hbase/util/Migrate
Caused by: java.lang.ClassNotFoundException:
org.apache.hadoop.hbase.util.Migrate
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
On 1/10/12 1:52 PM, Peter Wolf wrote:
> After manually killing the server, blowing away my local files, and
> restarting, here's what I get. Does the WARNING indicate the problem?
>
> P
>
>
>
>
> Hemiola:logs peter$ tail hbase-peter-master-Hemiola.local.out
> WARNING! File system needs to be upgraded. You have version null and
> I want version 7. Run the '${HBASE_HOME}/bin/hbase migrate' script.
>
> Hemiola:logs peter$ tail hbase-peter-master-Hemiola.local.log
> java.net.ConnectException: Connection refused
> at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
> at
> sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567)
> at
> org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1119)
> 2012-01-10 13:48:41,282 INFO org.apache.zookeeper.ClientCnxn: Opening
> socket connection to server localhost/127.0.0.1:2181
> 2012-01-10 13:48:41,282 WARN org.apache.zookeeper.ClientCnxn: Session
> 0x134c8f330350001 for server null, unexpected error, closing socket
> connection and attempting reconnect
> java.net.ConnectException: Connection refused
> at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
> at
> sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567)
> at
> org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1119)
>
>
>
> On 1/10/12 1:02 PM, Stack wrote:
>> On Tue, Jan 10, 2012 at 9:03 AM, Peter Wolf<op...@gmail.com> wrote:
>>> Hello all,
>>>
>>> I am having trouble starting and stopping Standalone HBase.
>>>
>>> I successfully start Standalone, or at least there is no error message
>> Anything in the hbase logs -- see under the logs/ dir?
>>
>> Have you changed config? You are using defaults and hbase is staring
>> up zookeeper? It looks like its not running.
>>
>> St.Ack
>
Re: Problem Stopping 0.90.5 Standalone
Posted by Peter Wolf <op...@gmail.com>.
After manually killing the server, blowing away my local files, and
restarting, here's what I get. Does the WARNING indicate the problem?
P
Hemiola:logs peter$ tail hbase-peter-master-Hemiola.local.out
WARNING! File system needs to be upgraded. You have version null and I
want version 7. Run the '${HBASE_HOME}/bin/hbase migrate' script.
Hemiola:logs peter$ tail hbase-peter-master-Hemiola.local.log
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1119)
2012-01-10 13:48:41,282 INFO org.apache.zookeeper.ClientCnxn: Opening
socket connection to server localhost/127.0.0.1:2181
2012-01-10 13:48:41,282 WARN org.apache.zookeeper.ClientCnxn: Session
0x134c8f330350001 for server null, unexpected error, closing socket
connection and attempting reconnect
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1119)
On 1/10/12 1:02 PM, Stack wrote:
> On Tue, Jan 10, 2012 at 9:03 AM, Peter Wolf<op...@gmail.com> wrote:
>> Hello all,
>>
>> I am having trouble starting and stopping Standalone HBase.
>>
>> I successfully start Standalone, or at least there is no error message
> Anything in the hbase logs -- see under the logs/ dir?
>
> Have you changed config? You are using defaults and hbase is staring
> up zookeeper? It looks like its not running.
>
> St.Ack
Re: Problem Stopping 0.90.5 Standalone -Ah ha!
Posted by Peter Wolf <op...@gmail.com>.
Fixed it. I manually killed the process, removed the HBase files *AND*
the directory, and restarted.
I am guessing that the HBase directory in Standalone contains some sort
of hidden file or lock, and it got stuck.
P
On 1/10/12 2:43 PM, Doug Meil wrote:
> Yep. I got it.
>
>
>
>
>
> On 1/10/12 2:07 PM, "Stack"<st...@duboce.net> wrote:
>
>> On Tue, Jan 10, 2012 at 10:55 AM, Tom<fi...@gmail.com> wrote:
>>> BTW, a little comment in the HBase book would have saved me quite a bit
>>> of
>>> time...
>>>
>> We are on it....(Doug?)
>> St.Ack
>>
>
Re: Problem Stopping 0.90.5 Standalone
Posted by Doug Meil <do...@explorysmedical.com>.
Yep. I got it.
On 1/10/12 2:07 PM, "Stack" <st...@duboce.net> wrote:
>On Tue, Jan 10, 2012 at 10:55 AM, Tom <fi...@gmail.com> wrote:
>> BTW, a little comment in the HBase book would have saved me quite a bit
>>of
>> time...
>>
>
>We are on it....(Doug?)
>St.Ack
>
Re: Problem Stopping 0.90.5 Standalone
Posted by Stack <st...@duboce.net>.
On Tue, Jan 10, 2012 at 10:55 AM, Tom <fi...@gmail.com> wrote:
> BTW, a little comment in the HBase book would have saved me quite a bit of
> time...
>
We are on it....(Doug?)
St.Ack
Re: Problem Stopping 0.90.5 Standalone
Posted by Peter Wolf <op...@gmail.com>.
Thanks Tom,
I am running on a Mac (Lion). My /etc/hosts is below. Would the last 2
lines confuse Standalone HBase?
P
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost local.babelcentral.com
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
On 1/10/12 1:55 PM, Tom wrote:
> Hi Peter,
>
> I just tried 0.90.5 standalone on linux; in my case there was a
> problem with my hostname resolving to 127.0.1.1 (not 127.0.0.1, which
> is what hbase expects in standalone).
> If you use linux, have a look into your /etc/hosts file to see if this
> is the issue and fix it as needed.
>
> BTW, a little comment in the HBase book would have saved me quite a
> bit of time...
>
>
> On 01/10/2012 10:02 AM, Stack wrote:
>> On Tue, Jan 10, 2012 at 9:03 AM, Peter Wolf<op...@gmail.com> wrote:
>>> Hello all,
>>>
>>> I am having trouble starting and stopping Standalone HBase.
>>>
>>> I successfully start Standalone, or at least there is no error message
>>
>> Anything in the hbase logs -- see under the logs/ dir?
>>
>> Have you changed config? You are using defaults and hbase is staring
>> up zookeeper? It looks like its not running.
>>
>> St.Ack
>>
>
Re: Problem Stopping 0.90.5 Standalone
Posted by Tom <fi...@gmail.com>.
Hi Peter,
I just tried 0.90.5 standalone on linux; in my case there was a problem
with my hostname resolving to 127.0.1.1 (not 127.0.0.1, which is what
hbase expects in standalone).
If you use linux, have a look into your /etc/hosts file to see if this
is the issue and fix it as needed.
BTW, a little comment in the HBase book would have saved me quite a bit
of time...
On 01/10/2012 10:02 AM, Stack wrote:
> On Tue, Jan 10, 2012 at 9:03 AM, Peter Wolf<op...@gmail.com> wrote:
>> Hello all,
>>
>> I am having trouble starting and stopping Standalone HBase.
>>
>> I successfully start Standalone, or at least there is no error message
>
> Anything in the hbase logs -- see under the logs/ dir?
>
> Have you changed config? You are using defaults and hbase is staring
> up zookeeper? It looks like its not running.
>
> St.Ack
>
Re: Problem Stopping 0.90.5 Standalone
Posted by Stack <st...@duboce.net>.
On Tue, Jan 10, 2012 at 9:03 AM, Peter Wolf <op...@gmail.com> wrote:
> Hello all,
>
> I am having trouble starting and stopping Standalone HBase.
>
> I successfully start Standalone, or at least there is no error message
Anything in the hbase logs -- see under the logs/ dir?
Have you changed config? You are using defaults and hbase is staring
up zookeeper? It looks like its not running.
St.Ack