自问自答,hive没有C++接口,正在尝试使用C++调用python访问hive,目前,已掌握C++调用python的方法,直接使用python访问hiveserver2并执行SQL语句也成功,但是使用C++调用python访问hive时,在python中使用connect函数链接hiveserver2时报错,报错如下:Exception AttributeError: AttributeError("'TSaslClientTransport' object has no attribute 'trans'",) in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored