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

To get "yarn.app.mapreduce.am.staging-dir" value, should set the default value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.23.1
    • 2.0.0-alpha
    • job submission, mrv2
    • None
    • client is windows eclipse, server is suse

    • Reviewed

    Description

      when submit the job use the windows eclipse, and the yarn.app.mapreduce.am.staging-dir value is null.

      MRApps.java
        public static Path getStagingAreaDir(Configuration conf, String user) {
          return new Path(
              conf.get(MRJobConfig.MR_AM_STAGING_DIR) + 
              Path.SEPARATOR + user + Path.SEPARATOR + STAGING_CONSTANT);
        }
      

      should modify to:

      MRApps.java
        public static Path getStagingAreaDir(Configuration conf, String user) {
          return new Path(
              conf.get(MRJobConfig.MR_AM_STAGING_DIR,"/tmp/hadoop-yarn/staging") + 
              Path.SEPARATOR + user + Path.SEPARATOR + STAGING_CONSTANT);
        }
      
      
      

      Attachments

        1. MAPREDUCE-4066.patch
          3 kB
          xieguiming
        2. MAPREDUCE-4066.patch
          3 kB
          Harsh J

        Activity

          People

            xieguiming xieguiming
            xieguiming xieguiming
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: