You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hadoop.apache.org by ? ? <pe...@hotmail.com> on 2017/06/16 05:32:02 UTC

some truble in using sequencefile floatWritable program in C++

Hi:

I modified it on the basis of hadoop-2.7.3-src/hadoop-tools/hadoop-pipes/src/main/native/example/impl/wordcount-simple.cc and gave the following procedures:
Std:: vector<std:: string>, words = HadoopUtils:: splitstring (context.getInputValue ());
But when I read sequencefile<FloatWritable.class>, because the data file contains "0A" and "0d" characters, the data I read is not correct. How do I deal with it?
I have to deal with a series of floating-point data files (such as the matrix multiplication etc.) Where can I find an instance or information for C++ to read and write sequencefile<FloatWritable>?