Return-Path: X-Original-To: apmail-hadoop-common-user-archive@www.apache.org Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5939AE694 for ; Sat, 1 Dec 2012 10:35:39 +0000 (UTC) Received: (qmail 13268 invoked by uid 500); 1 Dec 2012 10:35:34 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 13183 invoked by uid 500); 1 Dec 2012 10:35:33 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 13147 invoked by uid 99); 1 Dec 2012 10:35:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Dec 2012 10:35:33 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of harsh@cloudera.com designates 209.85.210.176 as permitted sender) Received: from [209.85.210.176] (HELO mail-ia0-f176.google.com) (209.85.210.176) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Dec 2012 10:35:28 +0000 Received: by mail-ia0-f176.google.com with SMTP id k32so1091688iak.35 for ; Sat, 01 Dec 2012 02:35:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:x-gm-message-state; bh=6lV8h+VXmf/4U9SJOZAvA7fyRdKMVGEqzJC01+3qkUk=; b=ks913yP5PdvkVfvoFDT4PA5iIkTPZwxkBGvCfdZQmRYMC/4Xn7S46K+JhD3rty8h4l EF3pJdS45Kv81LlYUapJZq4clvVUuoM3YmtuaYOMrzzEW0AYI4xtbBm5EYXgcoBYPVIq /oWYjtbRgBydMrD6OKr/TYHdtpiTDWoIAZTL9YK+gd0nIzeZ99tJzNyRUA4iniQACZX4 rFfR9hm1TU/BpWGFHgmtsO+yd7F4TiBq0t+3TUKySt+WKJjhT8UhhwanPre91StvX+Qv Xal9CeRR7301ArZqlISfMEwfeMuZZRgpvrzyXdk4W9PvATB57+pXp5D06oEPXyg1ylQv Bweg== Received: by 10.50.34.200 with SMTP id b8mr1175149igj.52.1354358108217; Sat, 01 Dec 2012 02:35:08 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.6.129 with HTTP; Sat, 1 Dec 2012 02:34:47 -0800 (PST) In-Reply-To: References: From: Harsh J Date: Sat, 1 Dec 2012 16:04:47 +0530 Message-ID: Subject: Re: how to rebuild hadoop-core-0.20.2-cdh3u4.jar To: "cdh-user@cloudera.org" , nnhung@pdx.edu Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQlQubsqqrO0UpL07msp0cgP5Qe7tUjaiii71mQamv5lES6cuyCSAWx7ATqviAm7ZtomKA/Q X-Virus-Checked: Checked by ClamAV on apache.org Hi, Since this is a CDH build specific question, I am moving the post to cdh-user@cloudera.org [https://groups.google.com/a/cloudera.org/forum/?fromgroups=#!forum/cdh-user] To answer your question, you can simply do this: [Assuming $HADOOP_HOME points to your CDH3u4 tarball location, which you can download from http://archive.cloudera.com/cdh/3/hadoop-0.20.2-cdh3u4.tar.gz btw.] $ cd $HADOOP_HOME/src # Do your JobClient modifications under the sources here. # Good idea to git init and commit the whole directory the first time, to track your changes. # After changes, build them into a jar $ ant jar # Copy over and overwrite original jar (good idea to keep a backup. $ cp build/hadoop-core-0.20.2-cdh3u4.jar ../ That should be all! On Sat, Dec 1, 2012 at 6:46 AM, Nhung Nguyen wrote: > Hi , > > I am trying to modify JobClient.class inside hadoop-core-0.20.2-cdh3u4.jar. > But I can't find a good way to compile the source-codes to get a new a jar ( > with my modified JobClient.class) without changing too much. Any help would > be appreciated. Thanks > > Nhung Nguyen -- Harsh J