5

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.

KurioZ7
  • 201
  • 2
  • 3
  • 10

4 Answers4

5

Run following command on terminal to find it :

find hadoop/ -name hadoop-env.sh

Replace hadoop/ with your hadoop folder name

Anil Arya
  • 151
3

The usual location for the configuration and environment is in /etc/hadoop. Example: hadoop-2.5.1//etc/hadoop/hadoop-env.sh

muru
  • 197,895
  • 55
  • 485
  • 740
0

For the most recent hadoop release, the file hadoop-env.sh can be found in:

/usr/local/hadoop/hadoop-common-project/hadoop-common/src/main/conf

pd441
  • 111
  • 4
0

You may search in this folder for hadoop_env.sh /usr/local/hadoop{your_hadoop_folder_name}/hadoop-common-project/hadoop-common/src/main/conf/

bhargav3vedi
  • 101
  • 1