python连接hive

1.python连接hive,其实是连接hiveserver,连接的包的impyla

2. impyla安装:

  error:   cc1plus 没有文件或目录  

              需要安装gcc 和g++,并且版本保持一致

  error:   sasl/sasl.h: 没有那个文件或目录     

              sudo apt-get install libsasl2-dev

  

         

原文地址:https://www.cnblogs.com/userrain/p/7141961.html