Return-Path: Delivered-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Received: (qmail 48124 invoked from network); 22 Sep 2010 17:00:40 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Sep 2010 17:00:40 -0000 Received: (qmail 91219 invoked by uid 500); 22 Sep 2010 17:00:40 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 91074 invoked by uid 500); 22 Sep 2010 17:00:40 -0000 Mailing-List: contact mapreduce-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-user@hadoop.apache.org Delivered-To: mailing list mapreduce-user@hadoop.apache.org Received: (qmail 91061 invoked by uid 99); 22 Sep 2010 17:00:39 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Sep 2010 17:00:39 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [217.72.192.234] (HELO fmmailgate03.web.de) (217.72.192.234) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Sep 2010 17:00:18 +0000 Received: from smtp05.web.de ( [172.20.4.166]) by fmmailgate03.web.de (Postfix) with ESMTP id 72097161456CF for ; Wed, 22 Sep 2010 18:59:58 +0200 (CEST) Received: from [95.88.109.79] (helo=[192.168.178.33]) by smtp05.web.de with asmtp (WEB.DE 4.110 #24) id 1OySfm-0004vn-00 for mapreduce-user@hadoop.apache.org; Wed, 22 Sep 2010 18:59:58 +0200 Message-ID: <4C9A360C.4050907@web.de> Date: Wed, 22 Sep 2010 18:59:56 +0200 From: Martin Becker <_martinbecker@web.de> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.9) Gecko/20100915 Lightning/1.0b2 Thunderbird/3.1.4 MIME-Version: 1.0 To: mapreduce-user@hadoop.apache.org Subject: Re: JobClient using deprecated JobConf References: <4C99CE4F.9040305@web.de> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: _martinbecker@web.de X-Sender: _martinbecker@web.de X-Provags-ID: V01U2FsdGVkX1++gbzCD+JdfR8XzdMKcxOCzfxIA2WayfSG4QKR wWuxemuWTsloI4bhyQJI6hR1E3E2plAdKrQXIeDavDc7pZXgY0 zHc0XpRfeBKoalsAqt2w== X-Virus-Checked: Checked by ClamAV on apache.org Hello Tom, But could I also use the new API by doing this?: Configuration configuration = new Configuration(); Cluster cluster = new Cluster(configuration); Job job = Job.getInstance(cluster); ... System.exit(job.waitForCompletion(true) ? 0 : 1); If I do this I get the most peculiar error, telling me: java.lang.NoSuchMethodError: org.apache.hadoop.conf.Configuration.addDeprecation(Ljava/lang/String;[Ljava/lang/String;)V I looked into the source and this method does exist. I did use the precomiled version of the jar files coming with the downloadable MapReduce package. Martin On 22.09.2010 18:29, Tom White wrote: > Note that JobClient, along with the rest of the "old" API in > org.apache.hadoop.mapred, has been undeprecated in Hadoop 0.21.0 so > you can continue to use it without warnings. > > Tom > > On Wed, Sep 22, 2010 at 2:43 AM, Amareshwari Sri Ramadasu > wrote: >> In 0.21, JobClient methods are available in org.apache.hadoop.mapreduce.Job >> and org.apache.hadoop.mapreduce.Cluster classes. >> >> On 9/22/10 3:07 PM, "Martin Becker"<_martinbecker@web.de> wrote: >> >> Hello, >> >> I am using the Hadoop MapReduce version 0.20.2 and soon 0.21. >> I wanted to use the JobClient class to circumvent the use of the command >> line interface. >> I am noticed that JobClient still uses the deprecated JobConf class for >> jib submissions. >> Are there any alternatives to JobClient not using the deprecated JobConf >> class? >> >> Thanks in advance, >> Martin >> >> >>