[ 
https://issues.apache.org/jira/browse/HADOOP-13040?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15250452#comment-15250452
 ] 

Allen Wittenauer commented on HADOOP-13040:
-------------------------------------------

bq. Does HADOOP_OPTS get added as environment variable or part of the command 
line argument? 

It's passed as a Java system property on the command line. 

bin/hdfs in branch-2:
{code}
exec "$JAVA" -Dproc_$COMMAND $JAVA_HEAP_MAX $HADOOP_OPTS $CLASS "$@" 
{code}

hadoop_java_exec in hadoop-functions.sh in trunk:
{code}
  exec "${JAVA}" "-Dproc_${command}" ${HADOOP_OPTS} "${class}" "$@"
{code}


> HADOOP_NAMENODE_OPTS does not pass -DconfigKey=Value to namenode as parameter 
> ------------------------------------------------------------------------------
>
>                 Key: HADOOP-13040
>                 URL: https://issues.apache.org/jira/browse/HADOOP-13040
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: scripts
>            Reporter: Xiaoyu Yao
>            Assignee: Xiaoyu Yao
>
> We want to hide the ldap bind password file path from core-site.xml by 
> setting the following in hadoop-env.sh only.
> export HADOOP_NAMENODE_OPTS=$HADOOP_NAMENODE_OPTS 
> -Dhadoop.security.group.mapping.ldap.bind.password.file 
> =BIND_PASSWORD_FILE_PATH
> However, it does not work as expected and the BIND_PASSWORD_FILE_PATH is not 
> honored with existing hadoop_add_param call from 
> hadoop-config.sh/hadoop-function.sh.
>  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to