Return-Path: X-Original-To: apmail-hadoop-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F27BAEFD5 for ; Sat, 15 Dec 2012 18:26:54 +0000 (UTC) Received: (qmail 30877 invoked by uid 500); 15 Dec 2012 18:26:50 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 30723 invoked by uid 500); 15 Dec 2012 18:26:49 -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 30714 invoked by uid 99); 15 Dec 2012 18:26:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Dec 2012 18:26:49 +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 (nike.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, 15 Dec 2012 18:26:41 +0000 Received: by mail-ia0-f176.google.com with SMTP id y26so4099939iab.35 for ; Sat, 15 Dec 2012 10:26:20 -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=uhRjrSwEAkoispNE5Uk5ulNYagFWRcE52e/n+79IL+8=; b=pW0pelv0tIRukYCl3W7IYALQWGsxsVpoGLxRxx0/zAoLL1FXhyv4W0t3bBBL9AbvA1 It+mrlHgRIzmjWvTHbPUvLSbmjqEdQqmykDaJSmu0lUw9/wUgiwRm3TxHu9gFsy+10k6 vEB75dqDXGhsT3al15Y8mrZ1oczhK2q4s3SXwn/J82pu+h4zavkCuW8UEpWFNbGucBHa zzfOHYbAscqGQrlChap5Zke2ZZ44uPJtDlVlpibF+sBoLUT0nrWpPTS98YExaF3zuQ/9 GTTh96MDUmVMgYAMb4g58WNBFkX2hgwx+rKm8Hnvyz5dWJxP3mlOyy0gMoBAKJCBIO70 o9fA== Received: by 10.50.12.169 with SMTP id z9mr5049322igb.40.1355595980716; Sat, 15 Dec 2012 10:26:20 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.6.129 with HTTP; Sat, 15 Dec 2012 10:26:00 -0800 (PST) In-Reply-To: References: From: Harsh J Date: Sat, 15 Dec 2012 23:56:00 +0530 Message-ID: Subject: Re: what are the core jars needed to compile a job in Hadoop 2.0.2 Alpha To: "" Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQlU6Dg00obusZmFe6FkkLQPCVn6CTYSYRGHFz3tkvQx8S1UqWG9x7TE2l6faR0yWhw/KYSP X-Virus-Checked: Checked by ClamAV on apache.org If you are compiling in the old-world way (javac!) it would be simpler to use the whole classpath, given the modularity of jars, such as: $ javac -cp `hadoop classpath` -d wordcount_classes WordCount.java Where the command `hadoop classpath` in the shell automatically expands and provides a usable classpath. If you want a better approach, I highly recommend using Apache Maven or similar tools with the hadoop-client dependency added instead. On Sat, Dec 15, 2012 at 9:11 PM, anand sharma wrote: > Hi please can someone let me know what are are core jar files and depeancies > we need to attach in classpath for a job to compile successfully from a java > source. > > say.. > > javac -cp classpath -d wordcount_classes WordCount.java > > here what will be jar files for it to compile successfully. > > Thanks -- Harsh J