Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

hive:command not found in ubuntu

Tags:

ubuntu

hive

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.

like image 408
ashwini Avatar asked May 06 '26 08:05

ashwini


1 Answers

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

like image 59
Erik Schmiegelow Avatar answered May 10 '26 02:05

Erik Schmiegelow



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!