-
Type:
Bug
-
Status: Closed
-
Priority:
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
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); }