Setting Hive Environment Variables
- Open the configuration file.
1vi /etc/profile - Press i to enter the insert mode and configure environment variables for Hive.
1 2
export HIVE_HOME=/usr/local/hive export PATH=$HIVE_HOME/bin:$PATH
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Make the environment variables take effect.
1source /etc/profile
Parent topic: Deploying Hive