How can I get the input file name which is being executed in the hadoop mapper in Hadoop Pipes?
I can easily get file name in java based map reducer like
FileSplit fileSplit = (FileSplit)context.getInputSplit(); String filename = fileSplit.getPath().getName(); System.out.println("File name "+filename); System.out.println("Directory and Filename"+fileSplit.getPath().toString());
but how can I get in C++;
Plz help me
Thanks