[
https://issues.apache.org/jira/browse/HADOOP-7626?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Yang updated HADOOP-7626:
------------------------------
Attachment: HADOOP-7626.patch
Fixed accidental environment shell variable expansion.
> Allow overwrite of HADOOP_CLASSPATH and HADOOP_OPTS
> ---------------------------------------------------
>
> Key: HADOOP-7626
> URL: https://issues.apache.org/jira/browse/HADOOP-7626
> Project: Hadoop Common
> Issue Type: Bug
> Components: scripts
> Affects Versions: 0.20.205.0
> Environment: Java, Linux
> Reporter: Eric Yang
> Assignee: Eric Yang
> Fix For: 0.20.205.0
>
> Attachments: HADOOP-7626.patch
>
>
> Quote email from Ashutosh Chauhan:
> bq. There is a bug in hadoop-env.sh which prevents hcatalog server to start
> in secure settings. Instead of adding classpath, it overrides them. I was not
> able to verify where the bug belongs to, in HMS or in hadoop scripts. Looks
> like hadoop-env.sh is generated from hadoop-env.sh.template in installation
> process by HMS. Hand crafted patch follows:
> bq. - export HADOOP_CLASSPATH=$f
> bq. +export HADOOP_CLASSPATH=${HADOOP_CLASSPATH}:$f
> bq. -export HADOOP_OPTS="-Djava.net.preferIPv4Stack=true "
> bq. +export HADOOP_OPTS="${HADOOP_OPTS} -Djava.net.preferIPv4Stack=true "
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira