1. Download hive2.3.5 decompress and renamed the hive directory into / usr / local under ( Note permission )
sudo mv apache-hive-2.3.5-bin /usr/local/hive
2. Modify the owner of the directory / usr / local / under hive folder
sudo chown -R username / usr / local / hive
3. Set Environment Variables
(1) enters sudo gedit ~ / .bashrc
#~/.bashrc
#hive environment variables
export HIVE_HOME=/usr/local/hive
export PATH=$PATH:$HIVE_HOME/bin
# Let environment variables to take effect
source ~/.bashrc
(2) Configuration hive-env.sh.template
The /usr/local/hive/conf/hive-env.sh.template renamed hive-env.sh
(3)配置hive-default.xml.template
The /usr/local/hive/conf/hive-default.xml.template renamed the hive-default.xml
(4) arranged hive-env.sh
export HADOOP_HOME=/usr/local/hadoop
export HIVE_CONF_DIR=/usr/local/hive/conf
4 into the hive
Hive