Ubuntu – Unable to find hadoop-env.sh in hadoop folder

hadoop

I am trying to install hadoop on Ubuntu 12.04. I followed the following article.

http://www.michael-noll.com/tutorials/running-hadoop-on-ubuntu-linux-single-node-cluster/

I have installed hadoop as per the instruction given in this tutorial. I have installed hadoop-0.23.9.tar.gz, though the site mentions an older version. It also mentions about updating hadoop-env.sh file. I could not find this file under /usr/local/hadoop/conf. There is no directory 'conf' under hadoop directory. It could be that this file is located somewhere else due to version change, but I am unable to find it. I want to know where this configuration file is located under the main hadoop directory.

Best Answer

Run following command on terminal to find it :

find hadoop/ -name hadoop-env.sh

Replace hadoop/ with your hadoop folder name