Dear All,
I installed Github recently and in hadoop command line I get following error
I ran into this problem couple of days ago and still not finding the way to resolve it.
Whenever I open the Hadoop command line, I get JAVA_HOME not set error as shown below
The system cannot find the path specified.
Error: JAVA_HOME is incorrectly set.
Please update c:\Hadoop\hadoop-1.1.0-SNAPSHOT\conf\hadoop-env.cmd
Usage: hadoop [--config confdir] COMMAND
Few options I tried
1.Changed the Java_Home path to C:\Hadoop\java\bin in my system
Also changed in C:\Hadoop\hadoop-1.1.0-SNAPSHOT\conf\hadoop-env.sh as export JAVA_HOME="C:\Hadoop\java\bin"
But this did not solve the problem
2.I had local installation of Java.So I thought it could be the problem. I also tried pointing JAVA_HOME in both my system environment variables and in script as
export JAVA_HOME="C:\Program Files\Java\jdk1.7.0_40"
But again this problem has not solved
Am I missing out something here?
Did anyone face similar problem? If yes what is the solution.
Also note: entering java or javac in hadoop command line lists all the commands but none of the hadoop commands work
- Edited by HadoopUser Tuesday, December 10, 2013 12:02 AM addition of note