Uploaded image for project: 'CDH (READ-ONLY)'
  1. CDH (READ-ONLY)
  2. DISTRO-408

Debugger flags are duplicated when hadoop-env.sh is executed as a configuration from hadoop-mapreduce shell

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: CDH4.0.0
    • Fix Version/s: CDH4.2.0
    • Component/s: Packaging
    • Labels:

      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.

        Attachments

          Activity

            People

            • Assignee:
              ptr Patrick Taylor Ramsey (Inactive)
              Reporter:
              thaddeus.diamond Thaddeus Diamond
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: