Hadoop Example in java

2012-02-17 Thread vikas jain
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

Re: Hadoop Example in java

2012-07-24 Thread minumichael
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.

Re: Hadoop Example in java

2012-07-24 Thread Saravanan Nagarajan
> 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

Re: Hadoop Example in java

2012-07-25 Thread Lance Norskog
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

Re: Hadoop Example in java

2012-02-17 Thread Harsh J
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

Re: Hadoop Example in java

2012-02-17 Thread Owen O'Malley
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