Return-Path: X-Original-To: apmail-apex-commits-archive@minotaur.apache.org Delivered-To: apmail-apex-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AB45619EBA for ; Fri, 8 Apr 2016 00:41:28 +0000 (UTC) Received: (qmail 69271 invoked by uid 500); 8 Apr 2016 00:41:28 -0000 Delivered-To: apmail-apex-commits-archive@apex.apache.org Received: (qmail 69225 invoked by uid 500); 8 Apr 2016 00:41:28 -0000 Mailing-List: contact commits-help@apex.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@apex.incubator.apache.org Delivered-To: mailing list commits@apex.incubator.apache.org Received: (qmail 69212 invoked by uid 99); 8 Apr 2016 00:41:28 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Apr 2016 00:41:28 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 06FCC180315 for ; Fri, 8 Apr 2016 00:41:28 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -3.221 X-Spam-Level: X-Spam-Status: No, score=-3.221 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id r9NQlm9OCBUA for ; Fri, 8 Apr 2016 00:41:25 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id A75C05F23E for ; Fri, 8 Apr 2016 00:41:24 +0000 (UTC) Received: (qmail 69049 invoked by uid 99); 8 Apr 2016 00:41:23 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Apr 2016 00:41:23 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id CC272DFC55; Fri, 8 Apr 2016 00:41:23 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sashap@apache.org To: commits@apex.incubator.apache.org Date: Fri, 08 Apr 2016 00:41:24 -0000 Message-Id: <4fbe9f5c61af41aaaf875a95f94d6ea9@git.apache.org> In-Reply-To: <612d720da9e04a0da3339d8438afdd7c@git.apache.org> References: <612d720da9e04a0da3339d8438afdd7c@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/4] incubator-apex-core git commit: Describe setting HADOOP_HOME globally Describe setting HADOOP_HOME globally Project: http://git-wip-us.apache.org/repos/asf/incubator-apex-core/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-apex-core/commit/ef61f102 Tree: http://git-wip-us.apache.org/repos/asf/incubator-apex-core/tree/ef61f102 Diff: http://git-wip-us.apache.org/repos/asf/incubator-apex-core/diff/ef61f102 Branch: refs/heads/master Commit: ef61f102713f4b1d563b1054e5830e5b4346d39b Parents: 2c061f8 Author: Munagala V. Ramanath Authored: Wed Apr 6 09:35:46 2016 -0700 Committer: Munagala V. Ramanath Committed: Wed Apr 6 09:35:46 2016 -0700 ---------------------------------------------------------------------- docs/apex_development_setup.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-apex-core/blob/ef61f102/docs/apex_development_setup.md ---------------------------------------------------------------------- diff --git a/docs/apex_development_setup.md b/docs/apex_development_setup.md index a154faa..42fe520 100644 --- a/docs/apex_development_setup.md +++ b/docs/apex_development_setup.md @@ -103,8 +103,13 @@ On Windows, an additional file, `winutils.exe`, is required; download it from and unpack the archive to, say, `C:\hadoop`; this file should be present under `hadoop-common-2.2.0-bin-master\bin` within it. -You can now run unit tests from the command line by specifying the maven -property `hadoop.home.dir`, for example: +Set the `HADOOP_HOME` environment variable system-wide to +`c:\hadoop\Software\hadoop-common-2.2.0-bin-master` as described at: +. You should now be able to run unit tests normally. + +If you prefer not to set the variable globally, you can set it on the command line or within +your IDE. For example, on the command line, specify the maven +property `hadoop.home.dir`: mvn -Dhadoop.home.dir=c:\hadoop\Software\hadoop-common-2.2.0-bin-master test @@ -113,15 +118,14 @@ or set the environment variable separately: set HADOOP_HOME=c:\hadoop\Software\hadoop-common-2.2.0-bin-master mvn test -To run unit tests from within your IDE, set the `HADOOP_HOME` environment -variable to the path to the root of the unpacked archive and then run the desired +Within your IDE, set the environment variable and then run the desired unit test in the usual way. For example, with NetBeans you can add: Env.HADOOP_HOME=c:/hadoop/hadoop-common-2.2.0-bin-master at _Properties ⇒ Actions ⇒ Run project ⇒ Set Properties_. -Similarly, in Eclipse (Mars) add the HADOOP_HOME environment variable to the +Similarly, in Eclipse (Mars) add it to the project properties at _Properties ⇒ Run/Debug Settings ⇒ ApplicationTest ⇒ Environment_ tab.