1、下载:官网https://www.anaconda.com/download/#linux
#wget https://repo.continuum.io/archive/Anaconda2-5.0.1-Linux-x86_64.sh
2、安装:
#bash Anaconda2-5.0.1-Linux-x86_64.sh
参考:https://docs.anaconda.com/anaconda/install/linux
3、配置环境变量:
#vi /home/user/.bashrc
加入:export PATH=/home/user/anaconda2/bin:$PATH
这里安装路径是:/home/user/anaconda2
4、部署pyhs2组件,python访问hive
#sudo yum install gcc-c++ cyrus-sasl-devel #pip install pyhs2