hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benjamin Campbell <benji.campb...@gmail.com>
Subject Retrieving Filename
Date Fri, 06 Aug 2010 22:46:41 GMT
Hey all!

I am trying to retrieve the filename of the input file into my Mapper class.
I read it's accessible from my Configuration:

String filename = context.getConfiguration().
get( "map.input.file" );

But I am also intrigued by the String[] context.getInputSplit.getLocations()
function. What other ways are available to retrieve the filename in my
Mapper Class/function?

I am using the latest 0.20.2 release.


-- 
Thanks

Ben Campbell

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message