Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-728

Yarn and MR default classpath are wrong on Windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 3.0.0-alpha1
    • None
    • None
    • None
    • Windows

    Description

      On Windows, the environment variables need to be used as %X% not $X as in Linux/Unix. This is handled in code in Yarn in the ApplicationConstants$Environment.$() method. However there are two problems in Windows today where this doesn't work:

      1. In yarn-default.xml and mapred-default.xml, the yarn.application.classpath and mapreduce.application.classpath are defined with hard-coded values that use the Linux form (e.g. $HADOOP_CONF_HOME).
      2. In MRJobConfig, the DEFAULT_MAPREDUCE_APPLICATION_CLASSPATH constant is defined using the Linux form for HADOOP_MAPRED_HOME: $HADOOP_MAPRED_HOME.

      This causes MR applications to fail on Windows because it can't find the MRAppMaster class because the classpath is wrong.

      Attachments

        1. YARN-728.patch
          3 kB
          Mostafa Elhemali

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mostafae Mostafa Elhemali
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: