Could not Connect | Thrift Error
Opened this issue · 2 comments
Hi -
I am trying to connect beeline server using your example. I have KERBEROS authentication. Do I need to install Thrift on client side?
ImportError Traceback (most recent call last)
in ()
9 u = "p624626"
10 s = "roy2015"
---> 11 connection = beeline.connect(host=DEFAULT_SERVER, port= DEFAULT_PORT, authMechanism='KERBEROS', user=u + '@' + DEFAULT_DOMAIN, password=s)
12 statement = "select * from reads.CL_COST_CNTR limit 100"
13 cur = connection.cursor()
/Users/taposh/anaconda/lib/python3.4/site-packages/pyhs2/init.py in connect(_args, *_kwargs)
4 more information.
5 """
----> 6 from .connections import Connection
7 return Connection(_args, *_kwargs)
/Users/taposh/anaconda/lib/python3.4/site-packages/pyhs2/connections.py in ()
1 import sys
2
----> 3 from thrift.protocol.TBinaryProtocol import TBinaryProtocol
4 from thrift.transport.TSocket import TSocket
5 from thrift.transport.TTransport import TBufferedTransport
ImportError: No module named 'thrift'
yes you need thrift.
On Jan 20, 2015, at 5:02 PM, Taposh Dutta Roy notifications@github.com wrote:
Hi -
I am trying to connect beeline server using your example. I have KERBEROS authentication. Do I need to install Thrift on client side?
ImportError Traceback (most recent call last)
in ()
9 u = "p624626"
10 s = "roy2015"
---> 11 connection = beeline.connect(host=DEFAULT_SERVER, port= DEFAULT_PORT, authMechanism='KERBEROS', user=u + '@' + DEFAULT_DOMAIN, password=s)
12 statement = "select * from reads.CL_COST_CNTR limit 100"
13 cur = connection.cursor()/Users/taposh/anaconda/lib/python3.4/site-packages/pyhs2/init.py in connect(args, *kwargs)
4 more information.
5 """
----> 6 from .connections import Connection
7 return Connection(args, *kwargs)/Users/taposh/anaconda/lib/python3.4/site-packages/pyhs2/connections.py in ()
1 import sys
2
----> 3 from thrift.protocol.TBinaryProtocol import TBinaryProtocol
4 from thrift.transport.TSocket import TSocket
5 from thrift.transport.TTransport import TBufferedTransportImportError: No module named 'thrift'
—
Reply to this email directly or view it on GitHub #33.
Is this required to run on CentOS 6.5?
https://thrift.apache.org/docs/install/centos
I need to manually build Thrift and provide the .so libs?