Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
MapReduce >> mail # dev >> Hadoop Pipes: How to get filename from InputSplit


Copy link to this message
-
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