Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Driver

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

import java.io.

IOException;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Job;
import org.apache.hadoop.mapreduce.lib.input.FileInputFormat;
import org.apache.hadoop.mapreduce.lib.output.FileOutputFormat;

public class d1
{
public static void main(String[] args) throws
IOException,ClassNotFoundException, InterruptedException
{

Configuration conf = new Configuration();


Job job = Job.getInstance(conf, "");
job.setJarByClass();
job.setMapperClass();
job.setReducerClass();
job.setOutputKeyClass();
job.setOutputValueClass();
FileInputFormat.addInputPath(job, new Path(args[0]));
FileOutputFormat.setOutputPath(job, new Path(args[1]));
System.exit(job.waitForCompletion(true) ? 0 : 1);
}
}

You might also like