Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-5790

Default map hprof profile options do not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.3.0
    • 2.5.0
    • None
    • None
    • java version "1.6.0_31"
      Java(TM) SE Runtime Environment (build 1.6.0_31-b04)
      Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)

    • Reviewed

    Description

      I have an MR job doing the following:

          Job job = Job.getInstance(conf);
      
          // Enable profiling
          job.setProfileEnabled(true);
          job.setProfileTaskRange(true, "0");
          job.setProfileTaskRange(false, "0");
      

      When I run this job, some of my map tasks fail with this error message:

      org.apache.hadoop.util.Shell$ExitCodeException: /data/5/yarn/nm/usercache/hdfs/appcache/application_1394482121761_0012/container_1394482121761_0012_01_000041/launch_container.sh: line 32: $JAVA_HOME/bin/java -Djava.net.preferIPv4Stack=true -Dhadoop.metrics.log.level=WARN   -Xmx825955249 -Djava.io.tmpdir=$PWD/tmp -Dlog4j.configuration=container-log4j.properties -Dyarn.app.container.log.dir=/var/log/hadoop-yarn/container/application_1394482121761_0012/container_1394482121761_0012_01_000041 -Dyarn.app.container.log.filesize=0 -Dhadoop.root.logger=INFO,CLA ${mapreduce.task.profile.params} org.apache.hadoop.mapred.YarnChild 10.20.212.12 43135 attempt_1394482121761_0012_r_000000_0 41 1>/var/log/hadoop-yarn/container/application_1394482121761_0012/container_1394482121761_0012_01_000041/stdout 2>/var/log/hadoop-yarn/container/application_1394482121761_0012/container_1394482121761_0012_01_000041/stderr : bad substitution
      

      It looks like ${mapreduce.task.profile.params} is not getting subbed in correctly.

      Attachments

        1. MAPREDUCE-5790.v01.patch
          8 kB
          Gera Shegalov
        2. MAPREDUCE-5790.v02.patch
          8 kB
          Gera Shegalov

        Activity

          People

            jira.shegalov Gera Shegalov
            andrew.wang Andrew Wang
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: