hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ratner, Alan S (IS)" <Alan.Rat...@ngc.com>
Subject Running C++ WordCount
Date Wed, 24 Feb 2010 16:02:54 GMT
I am trying to run the wordcount example in c/c++ given on
http://wiki.apache.org/hadoop/C%2B%2BWordCount with Hadoop 0.18.3 but
when I run Ant using the specified command "ant -Dcompile.c++=yes
examples" I get a BUILD FAILED error ... Cannot run program
"c:\...\hadoop-0.18.3\src\c++\pipes\configure" (in directory
CreateProcess error=193, %1 is not a valid Win32 application

Question 1: Where in the directory path do I put the wordcount code and
should it get a .cpp extension or something else?

Question 2: Where should I be when I execute the Ant command?  Ant
complains that it cannot find build.xml unless I am in the
...\hadoop-0.18.3 directory.

Question 3: The include statements in the wordcount code are of the form
#include "Hadoop/xxx.hh".  These include files reside both in
...\hadoop-0.18.3\c++\Linux-i386-32\include\hadoop and in
...\hadoop-0.18.3\c++\Linux-amd64-64\include\hadoop.  Does Ant produce
both a 32-bit and a 64-bit version of my compiled code?

Question 4: Where does Ant put the compiled code?

Alan Ratner

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message