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 [email protected]
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

  • Adam Smieszny at Mar 8, 2013 at 2:58 pm
    Hello sir,

    As of Cloudera Manager 4.5, you should be able to start an HBase Thrift
    server via the UI.
    Please see attached when i went to the "Add Service" workflow in a cluster
    where i was just creating the HBase instance

    [image: Inline image 1]

    On Thu, Mar 7, 2013 at 9:00 PM, Josh Becker wrote:

    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 [email protected]
    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


    --
    Adam Smieszny
    Cloudera | Systems Engineer | http://www.linkedin.com/in/adamsmieszny
    917.830.4156

Related Discussions

Discussion Navigation
viewthread | post
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 © 2023 Grokbase