[ https://issues.apache.org/jira/browse/HADOOP-13040?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15250403#comment-15250403 ]
Xiaoyu Yao commented on HADOOP-13040: ------------------------------------- Does HADOOP_OPTS get added as environment variable or part of the command line argument? Looks like the command line argument is empty. {code} DEBUG: Final JAVA_HOME: /Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home DEBUG: java: /Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/bin/java DEBUG: Class name: org.apache.hadoop.hdfs.server.namenode.NameNode DEBUG: Command line options: {code} {code} hdfs --debug namenode 2>&1 | grep 'Final HADOOP_OPTS' DEBUG: Final HADOOP_OPTS: -Djava.net.preferIPv4Stack=true -Djava.library.path=/Users/xyz/deploy/hadoop/lib/native -Djava.security.krb5.realm= -Djava.security.krb5.kdc= -Djava.security.krb5.conf= -Dhadoop.security.group.mapping.ldap.bind.password.file=CUSTOMERFILELOCATION -Dhadoop.security.group.mapping.ldap.bind.password.file=Nondefault.ldap.bind.password.file=nondefault.hello -Dhdfs.audit.logger=INFO,NullAppender -Dyarn.log.dir=/Users/xyz/deploy/hadoop-3.0.0-SNAPSHOT/logs -Dyarn.log.file=hadoop.log -Dyarn.home.dir=/Users/xyz/deploy/hadoop-3.0.0-SNAPSHOT -Dyarn.root.logger=INFO,console -Dhadoop.log.dir=/Users/xyz/deploy/hadoop-3.0.0-SNAPSHOT/logs -Dhadoop.log.file=hadoop.log -Dhadoop.home.dir=/Users/xyz/deploy/hadoop-3.0.0-SNAPSHOT -Dhadoop.id.str=xyz -Dhadoop.root.logger=INFO,console -Dhadoop.policy.file=hadoop-policy.xml -Dhadoop.security.logger=INFO,NullAppender {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)