Trying to serialize a image

2011-08-22 Thread Xian Boullosa
Hi. I'm running a 2 Node Hadoop (v 20.203). I'm trying to do a distributed image processing. And now, I'm facing an issue, The job it's a Hadoop pipes job, with custom RecordReader, Maper and Reducer (standard record Writer yet). The job itself it's using C++ and OpenCV as image processing l

RE: Trying to serialize a image

2011-08-22 Thread Xian Boullosa
I found out why that string was getting whipped. It happens that on the function context.getInputValue(). Its the string serialized as I wanted, but, I was copying as a new object instance (std::string = context.getInputValue()) instead of reserve and memcpy the content. Did it and it work like a