Setting HBase Environment Variables
- Edit the /etc/profile file.
1vi /etc/profile - Press i to enter the insert mode and add environment variables at the end of the file.
1 2
export HBASE_HOME=/usr/local/hbase export PATH=$HBASE_HOME/bin:$HBASE_HOME/sbin:$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 HBase