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

Switch to Threaded View
Hadoop, mail # user - RE: number input files to mapreduce job


Copy link to this message
-
RE: number input files to mapreduce job
java8964 java8964 2013-02-12, 15:01

I don't think you can get list of all input files in the mapper, but what you can get is the current file's information.
In the context object reference, you can get the InputSplit(), which should give you all the information you want of the current input file.
http://hadoop.apache.org/docs/r2.0.2-alpha/api/org/apache/hadoop/mapred/FileSplit.html
Date: Tue, 12 Feb 2013 12:35:16 +0530
Subject: number input files to mapreduce job
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]

Hi all,How to get number of Input files and thier to particular mapreduce job in java MapReduce  program.
--

Thanx and Regards Vikas Jadhav