AnsweredAssumed Answered

FileNotFoundException on running hadoop jar jarfile

Question asked by hadoop23 on Nov 10, 2013
Latest reply on Nov 11, 2013 by yufeldman
<code>

hadoop jar PDFParserTest-1.0-SNAPSHOT-jar-with-dependencies.jar  pdftest/PDFParserTest /user/munish/input/inputpdf/ /user/munish/output61

java.io.FileNotFoundException:  (No such file or directory)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:145)
        at pdftest.PDFParserTest.readFile(PDFParserTest.java:36)
        at pdftest.PDFParserTest.main(PDFParserTest.java:59)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:160)
cluster details:
-----------------

hpinst.agiledc.lab (10.1.168.36) – Ambari server
hpmaster.agiledc.lab (10.1.168.21)-master
hpslave1.agiledc.lab (10.1.168.37)-slave1
hpslave2.agiledc.lab (10.1.168.38)-slave2


**input path used in the code :                                                                        Path path = new Path("hdfs://hdpmaster.agiledc.lab:8020/user/munish/input/inputpdf/OReilly.pdf");**
[munish@hdpmaster pdftest]$ hadoop fs -ls /user/munish/input/inputpdf/
Found 1 items
-rwxrwxrwx   3 munish hdfs   14502056 2013-10-13 12:16 /user/munish/input/inputpdf/OReilly.pdf

Outcomes