thrift.transport.TTransport.TTransportException:无法解析主机 Pyhive 和 Python 的 sockaddr

thrift.transport.TTransport.TTransportException: failed to resolve sockaddr for host Pyhive and Python

from pyhive import hive
conn = hive.Connection(host="host", username="hive",auth="NOSASL",port=10000)
cur = conn.cursor()

我写了这个 code.I 收到这个错误:

thrift.transport.TTransport.TTransportException: failed to resolve sockaddr for host.

我使用库、tweepy、pyhive

pure-sasl==0.6.1
PyHive==0.6.1
pyhs2==0.6.0
pyOpenSSL==17.2.0
PySAL==1.14.4.post1
pysasl==0.4.1
sasl==0.2.1
thrift==0.11.0
tweepy==3.5.0
twitter==1.18.0``
twython==3.7.0

给的主机有误。例如,它可能 'localhost'.