Cannot find hadoop installation: $HADOOP_HOME must be set or hadoop must be in the path Cannot find hadoop installation: $HADOOP_HOME must be set or hadoop must be in the path hadoop hadoop

Cannot find hadoop installation: $HADOOP_HOME must be set or hadoop must be in the path


Go to /etc/profile.d directory and create a hadoop.sh file in there with

export HADOOP_HOME=/opt/hadoop/hadoopexport HIVE_HOME=/opt/hadoop/hiveexport PATH=$PATH:$HADOOP_HOME/bin:$HIVE_HOME/bin

After you save the file, make sure to

chmod +x /etc/profile.d/hadoop.shsource /etc/profile.d/hadoop.sh

This should take care of it.