You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Irooniam <ir...@gmail.com> on 2011/03/19 03:31:07 UTC

zookeeper lost connection error

Hello,

so I'm trying to get hbase installed.

I've followed the instructions on the quick-tutorial and I can startup hbase
but when I actually try to create a table I get an error.

Looking at the log file here's the output:

2011-03-18 17:20:44,695 INFO org.apache.zookeeper.
ZooKeeper: Initiating client connection, connectString=localhost:2181
sessionTimeout=180000 watcher=hconnection
2011-03-18 17:20:44,706 INFO org.apache.zookeeper.ClientCnxn: Opening socket
connection to server localhost/127.0.0.1:2181
2011-03-18 17:20:44,706 INFO org.apache.zookeeper.server.NIOServerCnxn:
Accepted socket connection from /127.0.0.1:40587
2011-03-18 17:20:44,707 INFO org.apache.zookeeper.ClientCnxn: Socket
connection established to localhost/127.0.0.1:2181, initiating session
2011-03-18 17:20:44,707 INFO org.apache.zookeeper.server.NIOServerCnxn:
Client attempting to establish new session at /127.0.0.1:40587
2011-03-18 17:20:44,708 INFO org.apache.zookeeper.server.NIOServerCnxn:
Established session 0x12ecb7c4cad0001 with negotiated timeout 40000 for
client /127.0.0.1:40587
2011-03-18 17:20:44,708 INFO org.apache.zookeeper.ClientCnxn: Session
establishment complete on server localhost/127.0.0.1:2181, sessionid =
0x12ecb7c4cad0001, negotiated timeout = 40000
2011-03-18 17:20:44,710 INFO
org.apache.zookeeper.server.PrepRequestProcessor: Got user-level
KeeperException when processing sessionid:0x12ecb7c4cad0001 type:create
cxid:0x1 zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a Error
Path:/hbase Error:KeeperErrorCode = NodeExists for /hbase
2011-03-18 17:20:44,712 INFO
org.apache.zookeeper.server.PrepRequestProcessor: Got user-level
KeeperException when processing sessionid:0x12ecb7c4cad0001 type:create
cxid:0x2 zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a Error
Path:/hbase/unassigned Error:KeeperErrorCode = NodeExists for
/hbase/unassigned
2011-03-18 17:20:44,713 INFO
org.apache.zookeeper.server.PrepRequestProcessor: Got user-level
KeeperException when processing sessionid:0x12ecb7c4cad0001 type:create
cxid:0x3 zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a Error
Path:/hbase/rs Error:KeeperErrorCode = NodeExists for /hbase/rs
2011-03-18 17:20:44,714 INFO
org.apache.zookeeper.server.PrepRequestProcessor: Got user-level
KeeperException when processing sessionid:0x12ecb7c4cad0001 type:create
cxid:0x4 zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a Error
Path:/hbase/table Error:KeeperErrorCode = NodeExists for /hbase/table
2011-03-18 17:20:44,726 INFO org.apache.hadoop.hbase.ipc.HBaseRpcMetrics:
Initializing RPC Metrics with hostName=HRegionServer, port=35545
2011-03-18 17:20:44,744 INFO
org.apache.hadoop.hbase.master.ActiveMasterManager: Master=hadoop1:47967
2011-03-18 17:20:44,752 INFO org.apache.zookeeper.ZooKeeper: Initiating
client connection, connectString=localhost:2181 sessionTimeout=180000
watcher=regionserver:35545
2011-03-18 17:20:44,757 INFO org.apache.zookeeper.ClientCnxn: Opening socket
connection to server localhost/127.0.0.1:2181
2011-03-18 17:20:44,757 INFO org.apache.zookeeper.server.NIOServerCnxn:
Accepted socket connection from /127.0.0.1:40588
2011-03-18 17:20:44,757 INFO org.apache.zookeeper.ClientCnxn: Socket
connection established to localhost/127.0.0.1:2181, initiating session
2011-03-18 17:20:44,758 INFO org.apache.zookeeper.server.NIOServerCnxn:
Client attempting to establish new session at /127.0.0.1:40588
2011-03-18 17:20:44,762 INFO org.apache.zookeeper.server.NIOServerCnxn:
Established session 0x12ecb7c4cad0002 with negotiated timeout 40000 for
client /127.0.0.1:40588
2011-03-18 17:20:44,762 INFO org.apache.zookeeper.ClientCnxn: Session
establishment complete on server localhost/127.0.0.1:2181, sessionid =
0x12ecb7c4cad0002, negotiated timeout = 40000
2011-03-18 17:20:44,763 INFO
org.apache.zookeeper.server.PrepRequestProcessor: Got user-level
KeeperException when processing sessionid:0x12ecb7c4cad0002 type:create
cxid:0x1 zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a Error
Path:/hbase Error:KeeperErrorCode = NodeExists for /hbase
2011-03-18 17:20:44,765 INFO
org.apache.zookeeper.server.PrepRequestProcessor: Got user-level
KeeperException when processing sessionid:0x12ecb7c4cad0002 type:create
cxid:0x2 zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a Error
Path:/hbase/unassigned Error:KeeperErrorCode = NodeExists for
/hbase/unassigned
2011-03-18 17:20:44,766 INFO
org.apache.zookeeper.server.PrepRequestProcessor: Got user-level
KeeperException when processing sessionid:0x12ecb7c4cad0002 type:create
cxid:0x3 zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a Error
Path:/hbase/rs Error:KeeperErrorCode = NodeExists for /hbase/rs
2011-03-18 17:20:44,767 INFO
org.apache.zookeeper.server.PrepRequestProcessor: Got user-level
KeeperException when processing sessionid:0x12ecb7c4cad0002 type:create
cxid:0x4 zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a Error
Path:/hbase/table Error:KeeperErrorCode = NodeExists for /hbase/table
2011-03-18 17:20:45,028 FATAL org.apache.hadoop.hbase.master.HMaster:
Unhandled exception. Starting shutdown.
java.lang.StackOverflowError
    at java.lang.String.indexOf(String.java:1521)
    at java.net.URI$Parser.scan(URI.java:2912)
    at java.net.URI$Parser.parseHierarchical(URI.java:3065)
    at java.net.URI$Parser.parse(URI.java:3024)
    at java.net.URI.<init>(URI.java:578)
    at java.net.URI.create(URI.java:840)
    at org.apache.hadoop.fs.FileSystem.getDefaultUri(FileSystem.java:103)
    at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:95)
    at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:180)
    at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:95)
    at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:180)
    at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:95)
...tens of lines later
2011-03-18 17:20:45,111 INFO org.apache.hadoop.hbase.master.HMaster:
Aborting
2011-03-18 17:20:45,111 DEBUG org.apache.hadoop.hbase.master.HMaster:
Stopping service threads
2011-03-18 17:20:45,111 INFO org.apache.hadoop.ipc.HBaseServer: Stopping
server on 47967
2011-03-18 17:20:45,111 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server
handler 0 on 47967: exiting
2011-03-18 17:20:45,112 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server
handler 1 on 47967: exiting
2011-03-18 17:20:45,112 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server
handler 2 on 47967: exiting
2011-03-18 17:20:45,113 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server
handler 3 on 47967: exiting
2011-03-18 17:20:45,113 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server
handler 4 on 47967: exiting
2011-03-18 17:20:45,113 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server
handler 5 on 47967: exiting
2011-03-18 17:20:45,113 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server
handler 6 on 47967: exiting
2011-03-18 17:20:45,113 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server
handler 7 on 47967: exiting
2011-03-18 17:20:45,114 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server
handler 8 on 47967: exiting
2011-03-18 17:20:45,114 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server
handler 9 on 47967: exiting
2011-03-18 17:20:45,114 INFO org.apache.hadoop.ipc.HBaseServer: Stopping IPC
Server listener on 47967
2011-03-18 17:20:45,117 INFO org.apache.hadoop.ipc.HBaseServer: Stopping IPC
Server Responder
2011-03-18 17:20:45,129 INFO
org.apache.zookeeper.server.PrepRequestProcessor: Processed session
termination for sessionid: 0x12ecb7c4cad0000
2011-03-18 17:20:45,131 INFO org.apache.zookeeper.server.NIOServerCnxn:
Closed socket connection for client /127.0.0.1:40586 which had sessionid
0x12ecb7c4cad0000
2011-03-18 17:20:45,137 INFO org.apache.zookeeper.ClientCnxn: EventThread
shut down
2011-03-18 17:20:45,137 INFO org.apache.zookeeper.ZooKeeper: Session:
0x12ecb7c4cad0000 closed
2011-03-18 17:20:45,137 INFO org.apache.hadoop.hbase.master.HMaster: HMaster
main thread exiting
2011-03-18 17:20:45,138 INFO org.apache.zookeeper.server.NIOServerCnxn:
Closed socket connection for client /127.0.0.1:40587 which had sessionid
0x12ecb7c4cad0001
2011-03-18 17:20:45,138 INFO org.apache.zookeeper.ClientCnxn: Unable to read
additional data from server sessionid 0x12ecb7c4cad0001, likely server has
closed socket, closing socket connection and attempting reconnect

and the same message repeats about being unable to connect.

In the shell when I try to create a table I get:
hbase(main):002:0> create 'test', 'cf'

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


Any help would be appreciated.

Re: zookeeper lost connection error

Posted by Irooniam <ir...@gmail.com>.
I figured out my problem.

The docs specifically say to specify the location of the db date via
file:///your/path/here and instead I simply decided to make it
/your/path/here

Once I used the file:/// convention everything went smooth.

Thanks for the help.

On Sun, Mar 20, 2011 at 2:46 PM, Suraj Varma <sv...@gmail.com> wrote:

> Are you trying to install HBase in a standalone mode? Can you give
> some more details like what your local system looks like (cygwin / Mac
> / Linux etc)
>
> Try the following things:
> 1) Start hbase and use the master web ui
> (http://localhost:60010/master.jsp) to ensure that *all* hostnames are
> reflected as localhost.
>
> 2) If you see any IP addresses that are not 127.0.0.1, you would need
> to use the hbase.(zookeeper|master|regionserver).dns.interface
> configuration to bind it to localhost. See
> http://opentsdb.net/setup-hbase.html for an example configuration file
> with these fields. The exact value would change based on your system
> (cygwin/Mac/Linux etc)
>
> 3) Look at the master log (under $HBASE_HOME/logs) to see if there are
> any errors / stack traces that could point you to more information.
>
> 4) Lastly, try deleting your /hbase directory before a clean start in
> case you have been having installation issues for a while (to make
> sure that you are starting with a clean slate)
>
> Use a service like pastebin.com to post logs as email mangles it up.
> --Suraj
>

Re: zookeeper lost connection error

Posted by Suraj Varma <sv...@gmail.com>.
Are you trying to install HBase in a standalone mode? Can you give
some more details like what your local system looks like (cygwin / Mac
/ Linux etc)

Try the following things:
1) Start hbase and use the master web ui
(http://localhost:60010/master.jsp) to ensure that *all* hostnames are
reflected as localhost.

2) If you see any IP addresses that are not 127.0.0.1, you would need
to use the hbase.(zookeeper|master|regionserver).dns.interface
configuration to bind it to localhost. See
http://opentsdb.net/setup-hbase.html for an example configuration file
with these fields. The exact value would change based on your system
(cygwin/Mac/Linux etc)

3) Look at the master log (under $HBASE_HOME/logs) to see if there are
any errors / stack traces that could point you to more information.

4) Lastly, try deleting your /hbase directory before a clean start in
case you have been having installation issues for a while (to make
sure that you are starting with a clean slate)

Use a service like pastebin.com to post logs as email mangles it up.
--Suraj