On Nov 19, 2007, at 9:17 AM, jerrro wrote:
I am trying to use hadoop with C++ while supplying myself a Reader
and a
Writer. I compiled and ran wordcount-nopipe, however, it seems like
when I
try to run it, the filename that the reader tries to open is "" (empty
string) - I print the filename it tries to open in the Reader's
constructor.
I get the following error when running the program:
The nopipe example needs more documentation. It assumes that it is
run with the InputFormat from src/test/org/apache/hadoop/mapred/pipes/
WordCountInputFormat.java, which has a very specific input split
format. By running with a TextInputFormat, it will send binary bytes
as the input split and won't work right. The nopipe example should
probably be recoded to use libhdfs too, but that is more complicated
to get running as a unit test. Also note that since the C++ example
is using local file reads, it will only work on a cluster if you have
nfs or something working across the cluster.
-- Owen