On 2017-06-14 18:50 (-0700), Kevin Buckley 
<[email protected]> wrote: 

> So,
> 
> is there a "to be preferred" file choice, between those two,
> within which to set certain classes of EnvVars ?

2.x releases require a significant amount of duplication of environment 
variable settings. The YARN subsystem does not read from hadoop-env.sh at all. 
Because of this limitation, it means you'll need to configure HADOOP_PID_DIR in 
hadoop-env.sh, YARN_PID_DIR in yarn-env.sh, and HADOOP_MAPRED_PID_DIR in 
mapred-env.sh. Same is true for LOG_DIR, _OPT, and a few others.

FWIW, this is one of the areas that got cleaned up in the massive shell script 
rewrite in 3.x. For example, setting HADOOP_PID_DIR in hadoop-env.sh will 
propagate to all of the other services.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to