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

wrong HADOOP_CLIENT_OPTS in hadoop-env on branch-2

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.6.1, 2.7.3
    • 2.8.0
    • conf
    • None

    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

        1. HADOOP-13773.patch
          2 kB
          Hui Fei

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: