This is in referance with the sample application in the JAVAWord http://www.javaworld.com/javaworld/jw-09-2008/jw-09-hadoop.html?page=5
bin/hadoop dfs -mkdir /opt/www/hadoop/hadoop-0.18.2/words bin/hadoop dfs -put word1 /opt/www/hadoop/hadoop-0.18.2/words bin/hadoop dfs -put word2 /opt/www/hadoop/hadoop-0.18.2/words bin/hadoop dfs -put word3 /opt/www/hadoop/hadoop-0.18.2/words bin/hadoop dfs -put word4 /opt/www/hadoop/hadoop-0.18.2/words When i browse through the http://serdev40.apac.nokia.com:50075/browseDirectory.jsp .I could see the files in the directory Also below commands execute properly bin/hadoop dfs -ls /opt/www/hadoop/hadoop-0.18.2/words/ bin/hadoop dfs -ls /opt/www/hadoop/hadoop-0.18.2/words/word1 bin/hadoop dfs -cat /opt/www/hadoop/hadoop-0.18.2/words/word1 But on executing this command ,i am getting an error java -Xms1024m -Xmx1024m com.nokia.tag.test.EchoOhce /opt/www/hadoop/hadoop-0.18.2/words/ result java -Xms1024m -Xmx1024m com.nokia.tag.test.EchoOhce /opt/www/hadoop/hadoop-0.18.2/words result 08/11/24 10:52:54 INFO jvm.JvmMetrics: Initializing JVM Metrics with processName=JobTracker, sessionId= Exception in thread "main" org.apache.hadoop.mapred.InvalidInputException: Input path does not exist: file:/opt/www/hadoop/hadoop-0.18.2/words at org.apache.hadoop.mapred.FileInputFormat.listStatus(FileInputFormat.java:179) at org.apache.hadoop.mapred.FileInputFormat.getSplits(FileInputFormat.java:210) at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:742) at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1026) at com.nokia.tag.test.EchoOhce.run(EchoOhce.java:123) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65) at com.nokia.tag.test.EchoOhce.main(EchoOhce.java:129) Can anybody know why there is a failure from the Java application -- View this message in context: http://www.nabble.com/Exception-in-thread-%22main%22-org.apache.hadoop.mapred.InvalidInputException%3A-Input-path-does-not-exist%3A-tp20655207p20655207.html Sent from the Hadoop core-user mailing list archive at Nabble.com.
