Return-Path: Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: (qmail 39696 invoked from network); 4 May 2010 15:04:18 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 May 2010 15:04:18 -0000 Received: (qmail 28383 invoked by uid 500); 4 May 2010 15:04:16 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 28310 invoked by uid 500); 4 May 2010 15:04:15 -0000 Mailing-List: contact common-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-user@hadoop.apache.org Delivered-To: mailing list common-user@hadoop.apache.org Received: (qmail 28302 invoked by uid 99); 4 May 2010 15:04:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 May 2010 15:04:15 +0000 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=AWL,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [74.125.82.48] (HELO mail-ww0-f48.google.com) (74.125.82.48) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 May 2010 15:04:10 +0000 Received: by wwb17 with SMTP id 17so644988wwb.35 for ; Tue, 04 May 2010 08:03:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.86.14 with SMTP id v14mr237061wee.157.1272985428742; Tue, 04 May 2010 08:03:48 -0700 (PDT) Received: by 10.216.181.82 with HTTP; Tue, 4 May 2010 08:03:48 -0700 (PDT) In-Reply-To: References: Date: Tue, 4 May 2010 11:03:48 -0400 Message-ID: Subject: Re: Need a Jira? From: Eric Sammer To: common-user@hadoop.apache.org Content-Type: text/plain; charset=ISO-8859-1 On Tue, May 4, 2010 at 10:50 AM, Michael Segel wrote: > > Hi, > > Came across something "ugly". > > I'm using the latest Hadoop version in Cloudera's CH2 :Hadoop 0.20.1+169.68 > (At least I think its the latest version in CH2) > > Noticed that when I instantiate a JobClient() passing in a Configuration object, I have to cast it to the deprecated class (JobConf). > > Is this something that should be updated, or is this fixed in the next Cloudera (CH3) release? The reason / problem here is because JobClient is from the old (0.18) API and thus has no understanding of Configuration. You can initialize a JobConf from a Configuration rather than casting it which avoids the cast. JobConf conf = new JobConf(new Configuration()) This isn't a bug as much as it is confusion between the new and old APIs. As the new APIs become more feature complete (probably at or around 0.21) the recommendation will be to prefer those. There has been discussion around un-deprecating the old APIs. -- Eric Sammer phone: +1-917-287-2675 twitter: esammer data: www.cloudera.com