LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-29-2013, 01:16 AM   #1
Priyanga
LQ Newbie
 
Registered: Jan 2013
Posts: 4

Rep: Reputation: Disabled
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

Last edited by Priyanga; 01-29-2013 at 01:23 AM. Reason: faced an additional error
 
Old 01-30-2013, 10:16 AM   #2
YankeePride13
Member
 
Registered: Aug 2012
Distribution: Ubuntu 10.04, CentOS 6.3, Windows 7
Posts: 222

Rep: Reputation: 51
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
 
1 members found this post helpful.
Old 01-31-2013, 12:55 AM   #3
Priyanga
LQ Newbie
 
Registered: Jan 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
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
 
Old 01-31-2013, 08:44 AM   #4
YankeePride13
Member
 
Registered: Aug 2012
Distribution: Ubuntu 10.04, CentOS 6.3, Windows 7
Posts: 222

Rep: Reputation: 51
Quote:
Originally Posted by Priyanga View Post
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?
 
Old 01-31-2013, 11:04 PM   #5
Priyanga
LQ Newbie
 
Registered: Jan 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
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)
 
Old 02-01-2013, 01:37 AM   #6
Priyanga
LQ Newbie
 
Registered: Jan 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
hadoop on ubuntu 10.04 tahani Linux - Newbie 4 01-03-2013 06:02 AM
LXer: Hadoop: A Linux even Microsoft likes LXer Syndicated Linux News 0 10-14-2011 08:43 PM
LXer: Cloud computing with Linux and Apache Hadoop LXer Syndicated Linux News 0 10-08-2009 08:50 AM
LXer: Cloudera Distribution of Hadoop Available, Makes Hadoop Easy LXer Syndicated Linux News 0 03-16-2009 09:10 PM
LXer: Distributed computing with Linux and Hadoop LXer Syndicated Linux News 0 12-11-2008 01:50 AM


All times are GMT -5. The time now is 04:45 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration