LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   hadoop installation in linux (http://www.linuxquestions.org/questions/linux-networking-3/hadoop-installation-in-linux-4175447632/)

Priyanga 01-29-2013 12:16 AM

hadoop installation in linux
 
Hello..
I tried to install hadoop 0.20.1 and hadoop plugin for eclipse(necessary for my project)in linux to form an distributed environment. I downloaded hadoop 0.20.1.tar.gz and when i tried to execute the jar file in it using the command java -jar hadoop 0.20.1.tar.gz
I encountered the error "Failed to load the main class Manifest from the jar file"
And when I tried to run the start-all.sh file in bin folder there is an error that "JAVA_HOME is not set"
Could any one help me to proceed..thanks in advance

YankeePride13 01-30-2013 09:16 AM

You need to set the JAVA_HOME environmental variable:

Code:

export JAVA_HOME=/path/to/java
Add that to the ~/.bashrc file of the user running the program.

---------- Post added 01-30-13 at 10:17 AM ----------

Also, you can test to see if the variable is set with this command:
Code:

echo $JAVA_HOME

Priyanga 01-30-2013 11:55 PM

Thank you for the Reply...

As per your guidence we have set the JAVA_HOME.
But when we tried to run start-all.sh it ask for a password and after giving the password the same error occurs "JAVA_HOME not set" which has been set earlier.

How to resolve this

YankeePride13 01-31-2013 07:44 AM

Quote:

Originally Posted by Priyanga (Post 4881104)
Thank you for the Reply...

As per your guidence we have set the JAVA_HOME.
But when we tried to run start-all.sh it ask for a password and after giving the password the same error occurs "JAVA_HOME not set" which has been set earlier.

How to resolve this

when you type:
Code:

echo $JAVA_HOME
what is the result?

Priyanga 01-31-2013 10:04 PM

On excecuting the command echo $JAVA_HOME
we get /usr/lib/jvm/jre-1.6.0(this is the path of the JAVA_HOME I had set)

Priyanga 02-01-2013 12:37 AM

In eclipse Map/Reduce Location when we give "new hadoop location" this will ask for two port number.What port number should be given there? What ever port we give its not connecting.


All times are GMT -5. The time now is 03:55 AM.