Details
Description
When the hadoop-mapreduce package is built from source and the shell script for ``hadoop jar`` is executed (hadoop-0.20-mapreduce/bin/hadoop) with debugger flags:
-agentlib:jdwp=transport=dt_socket,server=y,address=8000,suspend=y
a JVM TI error occurs. This happens because if you pass debugger flags for the JVM via HADOOP_CLIENT_OPTS, it gets duplicated inside of HADOOP_OPTS. The two places it is set are:
/etc/hadoop/conf/hadoop-env.sh:48
export HADOOP_OPTS="-Djava.net.preferIPv4Stack=true $HADOOP_CLIENT_OPTS"
hadoop-0.20-mapreduce/bin/hadoop:261
HADOOP_OPTS="$HADOOP_OPTS $HADOOP_CLIENT_OPTS"
Removing one of the two dereferencings of HADOOP_CLIENT_OPTS is a workaround.