Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: CDH4.0.0
-
Fix Version/s: CDH 6.0.0
-
Component/s: Hadoop Common, Packaging
Description
When attempting to pass in debugging options, client programs such as Hive will set the HADOOP_CLIENT_OPTS flag to:
-agentlib:jdwp=transport=dt_socket,server=y,address=8000,suspend=y
and execute the `hadoop jar ...` command. However, if the hadoop script on the user's PATH is /usr/lib/hadoop/bin/hadoop, as downloaded from the CDH4 yum repo, this will fail to set the HADOOP_OPTS to contain the HADOOP_CLIENT_OPTS environment variable.
The fix for this is to add the following inside of the elif branch for the "jar" path of $COMMAND (line 104):
HADOOP_OPTS="$HADOOP_OPTS $HADOOP_CLIENT_OPTS"