Hive connections not working on Windows
- Dominant language
- Python
- Stars
- 1.7k
- Forks
- 545
- PR merge metrics
- No merged PRs in 30d
Description
Using Anaconda2 with sasl from: http://www.lfd.uci.edu/~gohlke/pythonlibs/ allows the package to install and load, but establishing a connection fails:
```
In [1]: from pyhive import hive
In [2]: connection = hive.connect(xxxxx)
---------------------------------------------------------------------------
TTransportException Traceback (most recent call last)
in ()
----> 1 connection = hive.connect(xxxxx)
C:\Anaconda2\lib\site-packages\pyhive\hive.pyc in connect(*args, **kwargs)
59 :returns: a :py:class:`Connection` object.
60 """
---> 61 return Connection(*args, **kwargs)
62
63
C:\Anaconda2\lib\site-packages\pyhive\hive.pyc in __init__(self, host, port, use
rname, database, configuration)
84
85 try:
---> 86 self._transport.open()
87 open_session_req = ttypes.TOpenSessionReq(
88 client_protocol=ttypes.TProtocolVersion.HIVE_CLI_SERVICE
_PROTOCOL_V1,
C:\Anaconda2\lib\site-packages\thrift_sasl\__init__.pyc in open(self)
70 if not ret:
71 raise TTransportException(type=TTransportException.NOT_OPEN,
---> 72 message=("Could not start SASL: %s" % self.sasl.getError()))
73
74 # Send initial response
TTransportException: Could not start SASL: Error in sasl_client_start (-4) SASL(
-4): no mechanism available: Unable to find a callback: 2
```
Which is probably an issue with sasl libraries not being readily available on Windows, but if anyone has managed to get pyhive working on Windows I'd appreciate a pointer
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.