I have installed hive in ubuntu , followed all the steps from the article http://www.edureka.co/blog/apache-hive-installation-on-ubuntu/
I have set HADOOP_HOME,HIVE_HOME.
hduser@ubuntu:~$ echo $HADOOP_HOME
/usr/local/hadoop
hduser@ubuntu:~$ echo $HIVE_HOME
/usr/local/hive
I have mentioned HADOOP_HOME under hive-config.sh file .
when I ran hive command I got an error :
hduser@ubuntu:/usr/local/hive/bin$ hive
hive: command not found
Am I missing something? Please guide.
if you are in /usr/local/hive/bin, you'll have to execute
./hive
to run it. This tells your shell to look in the local directory instead of using $PATH.
To permanently add hive to $PATH, run the following command:
export PATH=$PATH:$HIVE_HOME/bin
and add that to your .profile
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With