参考的基础是官方文档:
https://cwiki.apache.org/confluence/display/Hive/Setting+up+HiveServer2#SettingUpHiveServer2-WebUIforHiveServer2
我的环境:
- python2.7
- hive2.3.4
- centos7 64
根据官网,首先要安装pyh2
>pip install pyhs2
装到一半时会报错,说没有sasl 这个文件(sasl/sasl.h: No such file or directory),那么现在必须安装这个sasl ,首先在yum中搜索
[root@localhost ~]$ yum search sasl|grep dev
cyrus-sasl-devel.i686 : Files needed for developing applications with Cyrus SASL
cyrus-sasl-devel.x86_64 : Files needed