Skip to content Skip to sidebar Skip to footer

Transport Exception

I'm trying to import happybase but gets the following error message while connecting. I have Hadoop pseudonode cluster and Hbase already running. Version of the components installe

Solution 1:

make sure you have thrift server started before you try to connect.

hbase thrift start-threadpool

Solution 2:

connection = happybase.Connection('localhost','2181')

Solution 3:

The trift server hast to be up and running. Your connection has to be opened as well:

nohup hbase thrift start &

Open connection in python before use:

connection.open()

Example:

#!/usr/bin/pythonimport happybase
connection = happybase.Connection('localhost', autoconnect=False)
connection.open()

Solution 4:

this worked for me:

sudo server hbase-thrift restart 

Post a Comment for "Transport Exception"