You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Ramaswamy B.A" <ra...@persistent.co.in> on 2009/08/14 15:31:47 UTC

Failing to executing the the C++ program - /home/ramaswamy_a/hadoop/src/examples/pipes/impl/wordcount-simple.cc in Hadoop -- Need help

Hi All,

I am trying to execute a C++ wordcount-smaple.cc program which is exist
in hadoop package. Built went fine with ant, but execution  failed,
throws the following errors.

[ramaswamy_a@ps259 hadoop]$./bin/hadoop pipes
-program /home/ramaswamy_a/Rama/Hadoop/hadoop/hadoop-0.18.3/build/c
++-examples/Linux-i386-32/bin/pipes-sort  -input input  -output output
09/08/14 18:07:00 INFO jvm.JvmMetrics: Initializing JVM Metrics with
processName=JobTracker, sessionId=
09/08/14 18:07:00 WARN mapred.JobClient: Use GenericOptionsParser for
parsing the arguments. Applications should implement Tool for the same.
09/08/14 18:07:00 WARN mapred.JobClient: No job jar file set.  User
classes may not be found. See JobConf(Class) or JobConf#setJar(String).
09/08/14 18:07:00 INFO mapred.FileInputFormat: Total input paths to
process : 2
09/08/14 18:07:00 INFO mapred.FileInputFormat: Total input paths to
process : 2
09/08/14 18:07:01 INFO mapred.FileInputFormat: Total input paths to
process : 2
09/08/14 18:07:01 INFO mapred.FileInputFormat: Total input paths to
process : 2
09/08/14 18:07:01 INFO mapred.JobClient: Running job: job_local_0001
09/08/14 18:07:01 INFO mapred.MapTask: numReduceTasks: 1
09/08/14 18:07:01 INFO mapred.MapTask: io.sort.mb = 100
09/08/14 18:07:01 INFO mapred.MapTask: data buffer = 79691776/99614720
09/08/14 18:07:01 INFO mapred.MapTask: record buffer = 262144/327680
09/08/14 18:07:02 WARN mapred.LocalJobRunner: job_local_0001
java.lang.NullPointerException
at
org.apache.hadoop.mapred.pipes.Application.<init>(Application.java:80)
at
org.apache.hadoop.mapred.pipes.PipesMapRunner.run(PipesMapRunner.java:57)
at org.apache.hadoop.mapred.MapTask.run(MapTask.java:227)
at org.apache.hadoop.mapred.LocalJobRunner
$Job.run(LocalJobRunner.java:157)
Exception in thread "main" java.io.IOException: Job failed!
at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1113)
at
org.apache.hadoop.mapred.pipes.Submitter.submitJob(Submitter.java:261)
at org.apache.hadoop.mapred.pipes.Submitter.main(Submitter.java:417)
[ramaswamy_a@ps25 hadoop]$ 

It seems the the JobConf  is not set. 

Please let me know how to set the Jobconf what should be the values for
this.

With my setup  I can run  Java programs.


My Observations:
The
program /home/ramaswamy_a/hadoop/src/examples/pipes/impl/wordcount-simple.cc  is including the file /home/ramaswamy_a/hadoop/c++/Linux-i386-32/include/hadoop/Pipes.hh.

Pipes.hh contains JobConf which is an abstract class.
Is it needed  to write to our own JobConf  by inheriting the
Pipes.hh:JobConf class?


Please suggest me 

Thanks and Regards
Ramaswamy . B.A 



DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.