FAQ
All-

I'm hoping this is a simple question, I've checked out the following which
explains how to connect
w/python: http://yannramin.com/2008/07/19/using-facebook-thrift-with-python-and-hbase/

And how to start the thrift
server: http://wiki.apache.org/hadoop/Hbase/ThriftApi

My problem is that I start the thrift server and zookeeper ends up spewing
a bunch of errors: (/usr/bin/hbase thrift start)

13/03/07 20:40:02 INFO zookeeper.ZooKeeper: Initiating client connection,
connectString=localhost:2181 sessionTimeout=180000 watcher=hconnection
13/03/07 20:40:02 INFO zookeeper.RecoverableZooKeeper: The identifier of
this process is 14126@db
13/03/07 20:40:02 INFO zookeeper.ClientCnxn: Opening socket connection to
server localhost/127.0.0.1:2181. Will not attempt to authenticate using
SASL (Unable to locate a login configuration)
13/03/07 20:40:02 WARN zookeeper.ClientCnxn: Session 0x0 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.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:350)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068)
13/03/07 20:40:02 WARN zookeeper.RecoverableZooKeeper: Possibly transient
ZooKeeper exception:
org.apache.zookeeper.KeeperException$ConnectionLossException:
KeeperErrorCode = ConnectionLoss for /hbase/master
13/03/07 20:40:02 INFO util.RetryCounter: Sleeping 2000ms before retry
#1...
13/03/07 20:40:03 INFO zookeeper.ClientCnxn: Opening socket connection to
server localhost/127.0.0.1:2181. Will not attempt to authenticate using
SASL (Unable to locate a login configuration)
13/03/07 20:40:03 WARN zookeeper.ClientCnxn: Session 0x0 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.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:350)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068)
13/03/07 20:40:04 INFO zookeeper.ClientCnxn: Opening socket connection to
server localhost/127.0.0.1:2181. Will not attempt to authenticate using
SASL (Unable to locate a login configuration)
13/03/07 20:40:04 WARN zookeeper.ClientCnxn: Session 0x0 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.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:350)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1068)
13/03/07 20:40:04 WARN zookeeper.RecoverableZooKeeper: Possibly transient
ZooKeeper exception:
org.apache.zookeeper.KeeperException$ConnectionLossException:
KeeperErrorCode = ConnectionLoss for /hbase/master
13/03/07 20:40:04 INFO util.RetryCounter: Sleeping 4000ms before retry
#2...

I'm really at a loss at what to do next. A google search found a thread on
stack overflow which said to change my localhost to point to my actual IP
vs. 127.0.0.1, that didn't help, same error. The hostname of my machine is
db. My /etc/hosts looks like this:
192.168.1.70 db
127.0.0.1 localhost localhost.localdomain localhost4
localhost4.localdomain4

Anyone have any ideas how I can actually start the thrift server to
interact w/HBase properly?

I'm running CDH4 with one cluster, it's my first experience/interaction
(running on CentOS 6) trying this and I'm sure I'm missing something simple.

Thanks in advance!
~ Josh

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 2 | next ›
Discussion Overview
groupscm-users @
categorieshadoop
postedMar 8, '13 at 2:00a
activeMar 8, '13 at 2:58p
posts2
users2
websitecloudera.com
irc#hadoop

2 users in discussion

Josh Becker: 1 post Adam Smieszny: 1 post

People

Translate

site design / logo © 2022 Grokbase