在Windows 10中使用python客户端运行Hive查询

时间:2016-03-22 16:41:06

标签: python python-2.7 hadoop hive

我在Windows 10上使用ipython。我想通过这个运行配置单件查询,我在这方面遇到了问题。

我尝试过使用,

import pyhs2
connection = hive.connect(host='xx.xx.xxx.xx', port= 22, authMechanism='LDAP', user='username', password='password')

但我得到了,

TTransportException: Could not start SASL: Error in sasl_client_start (-4) SASL(-4): no mechanism available: Unable to find a callback: 2

在搜索更多相关信息时,我得到以下链接。

https://github.com/dropbox/PyHive/issues/32

我还尝试安装hive_utils包,

pip install hive_utils

但是我在安装时遇到以下错误,

"path '%s' cannot end with '/'" % pathname
    ValueError: path 'src/' cannot end with '/'

Command "python setup.py egg_info" failed with error code 1 

当我更多地搜索这个时,我得到了这个链接,

https://github.com/eventbrite/python_hive_utils/issues/1

有没有办法在ipython中使用windows运行配置单元查询?有人可以帮我解决这个问题吗?

由于

0 个答案:

没有答案
相关问题