Dear all,

I am sorry for posting second time but I found it very difficult to run wordcount-nopipe.cc program in* /home/hadoop/project/hadoop-0.20.2/src/examples/pipes/impl *directory in a running Hadoop Cluster.

In the beginning I faced the below exception

bin/hadoop pipes -D hadoop.pipes.java.recordreader=true -D hadoop.pipes.java.recordwriter=true -input gutenberg -output gutenberg-out11 -program bin/wordcount-nopipe

11/03/30 12:09:02 INFO mapred.JobClient: Task Id :
attempt_201103301130_0011_m_000000_0, Status : FAILED
java.io.IOException: pipe child exception
       at
org.apache.hadoop.mapred.pipes.Application.abort(Application.java:151)
       at
org.apache.hadoop.mapred.pipes.PipesMapRunner.run(PipesMapRunner.java:101)
       at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:358)
       at org.apache.hadoop.mapred.MapTask.run(MapTask.java:307)
       at org.apache.hadoop.mapred.Child.main(Child.java:170)
Caused by: java.io.EOFException
       at java.io.DataInputStream.readByte(DataInputStream.java:250)
       at
org.apache.hadoop.io.WritableUtils.readVLong(WritableUtils.java:298)
       at
org.apache.hadoop.io.WritableUtils.readVInt(WritableUtils.java:319)
       at
org.apache.hadoop.mapred.pipes.BinaryProtocol$UplinkReaderThread.run(BinaryProtocol.java:114)

attempt_201103301130_0011_m_000000_0: Hadoop Pipes Exception: failed
to open  at wordcount-nopipe.cc:82 in
WordCountReader::WordCountReader(HadoopPipes::MapContext&)
11/03/30 12:09:02 INFO mapred.JobClient: Task Id :
attempt_201103301130_0011_m_000001_0, Status : FAILED
java.io.IOException: pipe child exception
       at
org.apache.hadoop.mapred.pipes.Application.abort(Application.java:151)
       at
org.apache.hadoop.mapred.pipes.PipesMapRunner.run(PipesMapRunner.java:101)
       at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:358)
       at org.apache.hadoop.mapred.MapTask.run(MapTask.java:307)
       at org.apache.hadoop.mapred.Child.main(Child.java:170)
Caused by: java.io.EOFException

but after some R&D and executing the below command I am facing the below exception :

bash-3.2$ bin/hadoop pipes -D hadoop.pipes.java.recordreader=true -D hadoop.pipes.java.recordwriter=true -libjars /home/hadoop/project/hadoop-0.20.2/hadoop-0.20.2-test.jar -inputformat org.apache.hadoop.mapred.pipes.WordCountInputFormat -input gutenberg -output gutenberg-out101 -program bin/wordcount-nopipe



11/03/31 16:36:26 WARN mapred.JobClient: No job jar file set. User classes may not be found. See JobConf(Class) or JobConf#setJar(String). Exception in thread "main" java.lang.IllegalArgumentException: Wrong FS: hdfs://ws-test:54310/user/hadoop/gutenberg, expected: file:
      at org.apache.hadoop.fs.FileSystem.checkPath(FileSystem.java:310)
at org.apache.hadoop.fs.RawLocalFileSystem.pathToFile(RawLocalFileSystem.java:47) at org.apache.hadoop.fs.RawLocalFileSystem.listStatus(RawLocalFileSystem.java:273)
      at org.apache.hadoop.fs.FileSystem.listStatus(FileSystem.java:721)
      at org.apache.hadoop.fs.FileSystem.listStatus(FileSystem.java:746)
at org.apache.hadoop.fs.ChecksumFileSystem.listStatus(ChecksumFileSystem.java:465) at org.apache.hadoop.mapred.pipes.WordCountInputFormat.getSplits(WordCountInputFormat.java:57) at org.apache.hadoop.mapred.JobClient.writeOldSplits(JobClient.java:810) at org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:781)
      at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:730)
      at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1249)
at org.apache.hadoop.mapred.pipes.Submitter.runJob(Submitter.java:248)
      at org.apache.hadoop.mapred.pipes.Submitter.run(Submitter.java:479)
      at org.apache.hadoop.mapred.pipes.Submitter.main(Submitter.java:494)


Please Someone who ran it before or any idea about this error, guide me .


Best regards,  Adarsh

Reply via email to