[
https://issues.apache.org/jira/browse/HADOOP-9455?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chris Nauroth updated HADOOP-9455:
----------------------------------
Attachment: HADOOP-9455.1.patch
Sangjin, thank you for the extra details. I can repro now. I tend to override
my hadoop-env.sh locally, so I didn't notice it at first.
I think we can remove the append of HADOOP_CLIENT_OPS from hadoop-env.sh,
considering that the main entry points all take care of appending it. The
hadoop script appends HADOOP_CLIENT_OPTS, the hdfs script appends
HADOOP_CLIENT_OPTS, and the yarn script appends YARN_CLIENT_OPTS. I'm
uploading a patch.
[~eli], you added this version of hadoop-env.sh in HADOOP-8287. Can I please
get your opinion on whether or not this patch is a safe change? Thanks!
> HADOOP_CLIENT_OPTS is appended twice, causing JVM failures
> ----------------------------------------------------------
>
> Key: HADOOP-9455
> URL: https://issues.apache.org/jira/browse/HADOOP-9455
> Project: Hadoop Common
> Issue Type: Bug
> Components: bin
> Affects Versions: 3.0.0, 2.0.3-alpha
> Reporter: Sangjin Lee
> Assignee: Chris Nauroth
> Priority: Minor
> Attachments: HADOOP-9455.1.patch
>
>
> If you set HADOOP_CLIENT_OPTS and run hadoop, you'll find that the
> HADOOP_CLIENT_OPTS value gets appended twice, and leads to JVM start failures
> for cases like adding debug flags.
> For example,
> {noformat}
> HADOOP_CLIENT_OPTS='-agentlib:jdwp=transport=dt_socket,address=localhost:9009,server=y,suspend=y'
> hadoop jar anything
> ERROR: Cannot load this JVM TI agent twice, check your java command line for
> duplicate jdwp options.
> Error occurred during initialization of VM
> agent library failed to init: jdwp
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira