LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   hadoop on ubuntu 10.04 (https://www.linuxquestions.org/questions/linux-newbie-8/hadoop-on-ubuntu-10-04-a-4175443855/)

tahani 01-02-2013 02:46 PM

hadoop on ubuntu 10.04
 
Dear all,
I have an error ehen I try to install Hadoop-1.0.3 on ubuntu 10.04

I wrote:
cd /usr/local
then
tahani@ubuntu:/usr/local$ sudo tar xzf hadoop-1.0.3.tar.gz

the error:

tar: hadoop-1.0.3.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Exiting with failure status due to previous errors

what i can do to fix this problem??

spiky0011 01-02-2013 03:32 PM

Hi where did you download the tarball to?
Have you looked in /home/user/Downloads

Also it is better to untar as user not root

tahani 01-03-2013 01:30 AM

Dear spiky0011;
What do you mean about "untar as user not root"
and also when I follow home/user/download.. i do not have this directory

so what can I do?

knudfl 01-03-2013 03:54 AM

$HOME/Downloads is probably not /home/user/Downloads ,
but /home/<user-name>/Downloads/ , like : /home/tahani/Downloads/


And : root is for administrative tasks only.
It is not recommended to work as root, unless absolute necessary.
And : The default build directory is e.g. /home/tahani/tmp/


Building in /home/tahani/tmp/, the commands would be :
1) cd tmp/
2) tar xvf ../Downloads/hadoop-1.0.3.tar.gz


.

tahani 01-03-2013 05:02 AM

starting single node cluster
 
Dear;
Thanks for reply I fixed the previous error.


I have another error when I starting a single node cluster on Hadoop..

hduser@ubuntu:/home/tahani$ hadoop/bin/start-all.sh
namenode running as process 3738. Stop it first.
localhost: ssh: connect to host localhost port 22: Connection refused
localhost: ssh: connect to host localhost port 22: Connection refused
jobtracker running as process 3879. Stop it first.
localhost: ssh: connect to host localhost port 22: Connection refused

how I can fix it??


All times are GMT -5. The time now is 09:02 PM.