Hadoop - Getting input paths, java api -


i passing file pattern:

fileinputformat.addinputpath(job, new path("/path/to/file*")); 

and wish know files matches after job finished running, provided successful.

i have tried:

job.getconfiguration().get("mapreduce.input.fileinputformat.inputdir") 

but returning same thing:

"/path/to/file*" 

i wondering if there's method matching paths without resorting creating routine scanning of directories.

your enlightenment appreciated.

try link, has few ways path in mapper. but, sure talking few more ways. :)

how input file name in mapper in hadoop program?


Comments

Popular posts from this blog

php - Hide output during test execution -

javascript - Migrate custom AngularJS filter from 1.2.28 to 1.4.x -

Update Magento products with multiple images -