Hadoop Map/Reduce
  1. Hadoop Map/Reduce
  2. MAPREDUCE-4066

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.23.1
    • Fix Version/s: 2.0.0-alpha
    • Component/s: job submission, mrv2
    • Labels:
      None
    • Environment:

      client is windows eclipse, server is suse

    • Hadoop Flags:
      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);
        }
      
      
      
      1. MAPREDUCE-4066.patch
        3 kB
        xieguiming
      2. MAPREDUCE-4066.patch
        3 kB
        Harsh J

        Activity

        Arun C Murthy made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Tsz Wo Nicholas Sze made changes -
        Assignee xieguiming [ xieguiming ]
        Arun C Murthy made changes -
        Fix Version/s 2.0.0 [ 12320354 ]
        Fix Version/s 0.23.3 [ 12320060 ]
        Harsh J made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags Reviewed [ 10343 ]
        Target Version/s 0.23.3, 0.24.0 [ 12320060, 12317654 ]
        Fix Version/s 0.23.3 [ 12320060 ]
        Resolution Fixed [ 1 ]
        Harsh J made changes -
        Attachment MAPREDUCE-4066.patch [ 12519955 ]
        Harsh J made changes -
        Target Version/s 0.24.0, 0.23.3 [ 12317654, 12320060 ]
        xieguiming made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        xieguiming made changes -
        Field Original Value New Value
        Attachment MAPREDUCE-4066.patch [ 12519932 ]
        xieguiming created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development