Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-13773

wrong HADOOP_CLIENT_OPTS in hadoop-env on branch-2

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.1, 2.7.3
    • Fix Version/s: 2.8.0
    • Component/s: conf
    • Labels:
      None
    • Target Version/s:

      Description

      in conf/hadoop-env.sh,
      export HADOOP_CLIENT_OPTS="-Xmx512m $HADOOP_CLIENT_OPTS"

      when i set HADOOP_HEAPSIZE ,and run 'hadoop jar ...', jvm args is not work.

      i see, in bin/hadoop,
      exec "$JAVA" $JAVA_HEAP_MAX $HADOOP_OPTS $CLASS "$@"

      HADOOP_OPTS is behind JAVA_HEAP_MAX, so HADOOP_HEAPSIZE is not work.

      for example i run 'HADOOP_HEAPSIZE=1024 hadoop jar ...' , the java process is 'java -Xmx1024m ... -Xmx512m...', then Xmx512m is valid´╝î and Xmx1024m is invalid

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ferhui Fei Hui
                Reporter:
                ferhui Fei Hui
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: