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 DA974E878 for ; Tue, 5 Feb 2013 23:46:54 +0000 (UTC) Received: (qmail 44305 invoked by uid 500); 5 Feb 2013 23:46:50 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 44105 invoked by uid 500); 5 Feb 2013 23:46:50 -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 44098 invoked by uid 99); 5 Feb 2013 23:46:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2013 23:46: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 (athena.apache.org: local policy) Received: from [130.207.160.69] (HELO deliverator2.gatech.edu) (130.207.160.69) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2013 23:46:40 +0000 Received: from deliverator2.gatech.edu (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 143BFD1CD74 for ; Tue, 5 Feb 2013 18:46:20 -0500 (EST) Received: from mail2.gatech.edu (mail2.gatech.edu [130.207.185.162]) by deliverator2.gatech.edu (Postfix) with ESMTP id 9CCDED1CD58 for ; Tue, 5 Feb 2013 18:46:19 -0500 (EST) Received: from mblaptop.pace.gatech.edu (mblaptop.pace.gatech.edu [130.207.183.105]) (Authenticated sender: mbelgin3) by mail2.gatech.edu (Postfix) with ESMTPSA id 8A5C6185D9A for ; Tue, 5 Feb 2013 18:46:19 -0500 (EST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1283) Subject: Re: [HOD] Cannot use env variables in "hodrc" From: Mehmet Belgin In-Reply-To: <6395ABC6-9CC7-486F-8E38-A7F74BE5C972@oit.gatech.edu> Date: Tue, 5 Feb 2013 18:46:18 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <8323A5E7-10BF-47FD-9F4E-86263B996AC4@oit.gatech.edu> References: <6395ABC6-9CC7-486F-8E38-A7F74BE5C972@oit.gatech.edu> To: user@hadoop.apache.org X-Mailer: Apple Mail (2.1283) X-GT-AVAS-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2013.2.5.233316 X-GT-Spam-Details: Internal Mail X-GT-Spam-Rating: (0%) X-GT-True-Rating: (8%) X-Virus-Checked: Checked by ClamAV on apache.org On a related note, env-vars is also being ignored: env-vars =3D = HOD_PYTHON_HOME=3D/usr/local/packages/python/2.5.1/bin/python2.5 And hod picks the system-default python and terminates with errors = unless I manually export HOD_PYTHON_HOME. export HOD_PYTHON_HOME=3D`which python2.5` I am also having problems having hod use the cluster I created, but I = assume those issues are also related.=20 How can I make sure that "hodrc" contents are passed correctly into hod?=20= Thanks a lot in advance! On Feb 5, 2013, at 4:41 PM, Mehmet Belgin wrote: > Hello everyone, >=20 > I am setting up Hadoop for the first time, so please bear with me = while I ask all these beginner questions :) >=20 > I followed the instructions to create a hodrc, but looks like I cannot = user env variables in this file: >=20 > error: bin/hod failed to start. > error: invalid 'java-home' specified in section hod (--hod.java-home): = ${JAVA_HOME} > error: invalid 'batch-home' specified in section resource_manager = (--resource_manager.batch-home): ${RM_HOME} >=20 > ... despite the fact that I have " ${JAVA_HOME}" and "${RM_HOME}" = correctly defined in my environment. When I replace these variables with = full explicit paths, it works. I checked the permissions, and everything = else looks fine. >=20 > What am I missing here? >=20 > Thanks! >=20 >=20