Note that its not an compile error, but a warning. You need to use the getInstance(…) method instead: http://hadoop.apache.org/docs/stable2/api/org/apache/hadoop/mapreduce/Job.html#getInstance(org.apache.hadoop.conf.Configuration,%20java.lang.String)
On Fri, Jan 24, 2014 at 10:11 PM, Kokkula, Sada <[email protected]> wrote: > -bash-4.1$ /usr/jdk64/jdk1.6.0_31/bin/javac -Xlint -classpath > "/usr/lib/hadoop-mapreduce/hadoop-mapreduce-client-core-2.2.0.2.0.6.0-76.jar:/usr/lib/hadoop/hadoop-common-2.2.0.2.0.6.0-76.jar:./hadoop-annotations-2.0.0-cdh4.0.1.jar" > WordCount.java WordCount.java:62: warning: [deprecation] > Job(org.apache.hadoop.conf.Configuration,java.lang.String) in > org.apache.hadoop.mapreduce.Job has been deprecated > Job job = new Job(conf, "WordCount"); > > Thanks, > > > The information contained in this e-mail, and any attachment, is > confidential and is intended solely for the use of the intended recipient. > Access, copying or re-use of the e-mail or any attachment, or any > information contained therein, by any other person is not authorized. If you > are not the intended recipient please return the e-mail to the sender and > delete it from your computer. Although we attempt to sweep e-mail and > attachments for viruses, we do not guarantee that either are virus-free and > accept no liability for any damage sustained as a result of viruses. > > Please refer to http://disclaimer.bnymellon.com/eu.htm for certain > disclosures relating to European legal entities. -- Harsh J
