not able to set up hadoop

47 views
Skip to first unread message

kbk

unread,
Jun 20, 2014, 10:22:00 AM6/20/14
to hadoop-learner-tutori...@googlegroups.com
hi,

As per section 3 I am trying to set up Hadoop. 
After executing sudo mkdtr -p /usr/local/java  it is asking [sudo] password for user. Though i gave correct password which i have given during installation I am getting sudo mkdtr :command not found. 

I have checked few commands  in net and i tired  pkexec echo success with the same password and ran successfully.(success appeared on the screen )
Could you please help me on this as  I am stucked with this and I am not able to proceed.


thanks,
KBK.

Nitesh Jain

unread,
Jun 22, 2014, 9:38:03 PM6/22/14
to hadoop-learner-tutori...@googlegroups.com
Hey Kbk,

The command is 'mkdir', which creates directory. I suppose it accidentally got 'mkdtr' which is causing you the trouble. Can you please correct taht and let me know if it works good?

Best,
Nitesh   

kbk

unread,
Jun 23, 2014, 11:03:32 AM6/23/14
to hadoop-learner-tutori...@googlegroups.com
Hi Nithesh ,

Thanks for the help.I am sorry for that mistake.
I corrected and executed with 'mkdir ' . This time it didn't ask for password . 
I was able to execute all other commands also till document step 10.
I failed to execute the command sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jre1.8.0_5/bin/java" 1 (my downloaded version is jre-8uf-linux-x64 tar.gz and while updating profile also i  have corrected it as jre1.8.0_5).I am getting alternatives path "/usr/local/java/jre1.8.0_5/bin/java does not exist.

Could you please help me on this.

Nitesh Jain

unread,
Jun 30, 2014, 2:03:13 AM6/30/14
to hadoop-learner-tutori...@googlegroups.com
Hey,

Can you please tell me where is the complete path of java (or jdk) folder and the path of JRE? Generally JRE is one level lower, ie, inside the jdk folder. 

When Linux say path does not exists, then just check the folder if it exists. The path would not exist might be because there was a mistake is specification, so you need to give the correct and complete path. To avoid typos, go to the directory or the folder using the command prompt and type in command 'pwd' to get the complete and the correct path. If you do this, you would never face the issue of path does not exists. 

Hope this helps!

Best
Nitesh
Reply all
Reply to author
Forward
0 new messages