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

The hadoop shell script downloaded by Hadoop package does not honor HADOOP_CLIENT_OPTS

    Details

      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"

        Attachments

          Activity

            People

            • Assignee:
              rvs Roman V Shaposhnik
              Reporter:
              thaddeus.diamond Thaddeus Diamond
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: