namenode error

42 views
Skip to first unread message

anand murari

unread,
Jul 14, 2014, 3:31:49 PM7/14/14
to scoob...@googlegroups.com
Please help me!!

I am not able to execute any hadoop commands from the namenode? please let me know the check points?

root@xxx:/usr/lib/hadoop-0.20/conf# jps
20729 Jps
19659 NameNode
root@xxx:/usr/lib/hadoop-0.20/conf# hadoop fs -ls
/usr/lib/hadoop-0.20/bin/hadoop: line 301: /usr/java/jdk1.6.0_26/bin/java: No such file or directory
/usr/lib/hadoop-0.20/bin/hadoop: line 470: /usr/java/jdk1.6.0_26/bin/java: No such file or directory
/usr/lib/hadoop-0.20/bin/hadoop: line 470: exec: /usr/java/jdk1.6.0_26/bin/java: cannot execute: No such file or directory




root@nn3-las:/usr/lib/hadoop-0.20/conf# java -version
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b04)
Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)

Eric Torreborre

unread,
Jul 14, 2014, 9:06:57 PM7/14/14
to scoob...@googlegroups.com
By the look of it there is java executable at  /usr/java/jdk1.6.0_26/bin/java. Maybe you need to locate your java executable with `which java` and modify the hadoop script accordingly. (or just change the JAVA_HOME or JAVA_EXEC variables if the script is using those).

Eric.

anand murari

unread,
Jul 15, 2014, 10:35:39 AM7/15/14
to scoob...@googlegroups.com
Thank you Eric

Now I am getting this error? Please let me know

[root@nn1-las ~]# /usr/bin/hadoop distcp hftp://hdfs-nn2-atl:50070/mnt/nfs/clearleap/accounts hdfs://hdfs1-las/user/root/atl-mnt-nfs/clearleap/accounts
java.lang.IllegalArgumentException: Missing src
at org.apache.hadoop.tools.DistCp$Arguments.valueOf(DistCp.java:830)
at org.apache.hadoop.tools.DistCp.run(DistCp.java:881)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
at org.apache.hadoop.tools.DistCp.main(DistCp.java:908)

distcp [OPTIONS] <srcurl>* <desturl>



--
You received this message because you are subscribed to a topic in the Google Groups "scoobi-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/scoobi-dev/GZ2BnJDcpKM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to scoobi-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Regards,

Anand.M
 
Reply all
Reply to author
Forward
0 new messages