Hi All,
I am looking for example in java for hadoop. I have done lots of search but
I have only found word count. Are there any other exapmple for the same.
--
View this message in context:
http://old.nabble.com/Hadoop-Example-in-java-tp33341353p33341353.html
Sent from the Hadoop core-user
atureReducer.class);
job.setOutputKeyClass(Text.class);
job.setOutputValueClass(IntWritable.class);
}
}
System.exit(job.waitForCompletion(true) ? 0 : 1);
}
}
--
View this message in context:
http://old.nabble.com/Hadoop-Example-in-java-tp33341353p34208568.html
Sent from the Hadoop core-user mailing list archive at Nabble.com.
> Job job = new Job();
> job.setJarByClass(MaxTemperature.class);
> job.setJobName("Max temperature");
> FileInputFormat.addInputPath(job, new Path(args[0]));
> FileOutputFormat.setOutputPath(job, new Path(args[1]));
> job.setMapperClass(MaxTemperatureMapper.cla
gs) throws Exception {
>> if (args.length != 2) {
>> System.err.println("Usage: MaxTemperature ");
>> System.exit(-1);
>> }
>> Job job = new Job();
>> job.setJarByClass(MaxTemperature.class);
>> job.setJobName("Max temperature");
>> Fil
sage in context:
> http://old.nabble.com/Hadoop-Example-in-java-tp33341353p33341353.html
> Sent from the Hadoop core-user mailing list archive at Nabble.com.
>
--
Harsh J
Customer Ops. Engineer
Cloudera | http://tiny.cloudera.com/about
On Fri, Feb 17, 2012 at 1:00 AM, vikas jain wrote:
>
> Hi All,
>
> I am looking for example in java for hadoop. I have done lots of search but
> I have only found word count. Are there any other exapmple for the same.
If you want to find them on the web, you can look in subversion:
http://svn.ap