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

Switch to Threaded View
MapReduce, mail # user - Mapper input as argument


Copy link to this message
-
Re: Mapper input as argument
unmesha sreeveni 2013-11-07, 06:05
one more doubt : how to copy each input split entering into mapper into a
file for computation?
On Thu, Nov 7, 2013 at 10:35 AM, unmesha sreeveni <[EMAIL PROTECTED]>wrote:

> My driver code is
>                 FileInputFormat.setInputPaths(job, new Path(args[0]));
>  FileOutputFormat.setOutputPath(job,new Path(args[1]));
>
> and My mapper is
>         public void map(Object key, Text value, Context context)
> throws IOException, InterruptedException {
> where value.tostring() contains my input data.
>
> is that a better way to copy all the data s coming into a file and do
> computations. OR read each line and do the calculation.
>
> --
> *Thanks & Regards*
>
> Unmesha Sreeveni U.B
>
> *Junior Developer*
>
>
>
>
--
*Thanks & Regards*

Unmesha Sreeveni U.B

*Junior Developer*

*Amrita Center For Cyber Security*
* Amritapuri.www.amrita.edu/cyber/ <http://www.amrita.edu/cyber/>*