You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-dev@hadoop.apache.org by Ilya Storozhilov <Il...@epam.com> on 2014/08/05 13:08:14 UTC

Hadoop Pipes: How to get filename from InputSplit

Hello,

does somebody know how to get the name of currently processed file from the map-function in C++? HadoopPipes::MapContext::getInputSplit() returns an std::string, which contains filename, but surrounded with some (non-printable) characters. How to correctly extract a filename from this value? (Hadoop 2.3.0-cdh5.1.0, r8e266e052e423af592871e2dfe09d54c03f6a0e8, CentOS 6.5 x64) Thank you very much!

Best Regards, 
Ilya Storozhilov