title: Hadoop JobConf class is deprecated , need updated example
body: <p>I am writing hadoop programs , and i really dont want to play with deprecated classes .
  Anywhere online i am not able to find programs with updated </p>
  
  <blockquote>
    <p>org.apache.hadoop.conf.Configuration</p>
  </blockquote>
  
  <p>class 
  insted of </p>
  
  <blockquote>
    <p>org.apache.hadoop.mapred.JobConf</p>
  </blockquote>
  
  <p>class.</p>
  
  <pre><code>   public static void main(String[] args) throws Exception {
       JobConf conf = new JobConf(Test.class);
       conf.setJobName("TESST");
  
       conf.setOutputKeyClass(Text.class);
       conf.setOutputValueClass(IntWritable.class);
  
       conf.setMapperClass(Map.class);
       conf.setCombinerClass(Reduce.class);
       conf.setReducerClass(Reduce.class);
  
       conf.setInputFormat(TextInputFormat.class);
       conf.setOutputFormat(TextOutputFormat.class);
  
       FileInputFormat.setInputPaths(conf, new Path(args[0]));
       FileOutputFormat.setOutputPath(conf, new Path(args[1]));
  
       JobClient.runJob(conf);
     }
  </code></pre>
  
  <p>This is how my main() looks like.
  Can please anyone will provide me with updated function.</p>