hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Nauroth <cnaur...@hortonworks.com>
Subject Re: use of HADOOP_HOME
Date Thu, 28 May 2015 17:07:48 GMT
Hi Sangjin,

In the new scripts, HADOOP_PREFIX is set very early in execution.  This
happens inside the hadoop_bootstrap function, which executes before
hadoop_exec_hadoopenv, so I expect you can use that.

However, HADOOP-11393 proposes reverting HADOOP_PREFIX and switching
things back to HADOOP_HOME, so this might be a moving target right now.  I
haven't looked at the patch in detail yet.


--Chris Nauroth

On 5/28/15, 9:36 AM, "Sangjin Lee" <sjlee@apache.org> wrote:

>Hi folks,
>I noticed this while setting up a cluster based on the current trunk. It
>appears that setting HADOOP_HOME is now done much later (in
>hadoop_finalize) than branch-2. Importantly this is set *after*
>hadoop-env.sh (or yarn-env.sh) is invoked.
>In our version of hadoop-env.sh, we have used $HADOOP_HOME to define some
>more variables, but it appears that we can no longer rely on the
>HADOOP_HOME value in our *-env.sh customization. Is this an intended
>in the recent shell script refactoring? What is the right thing to use in
>hadoop-env.sh for the location of hadoop?

View raw message