hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From unmesha sreeveni <unmeshab...@gmail.com>
Subject Mapper input as argument
Date Thu, 07 Nov 2013 05:05:15 GMT
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*

Mime
View raw message