We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 074d9b5 commit 1487714Copy full SHA for 1487714
src/main/java/org/apache/hadoop/fs/glusterfs/GlusterVolume.java
@@ -66,6 +66,18 @@ public void setConf(Configuration conf){
66
}else{
67
attr = new GlusterFSXattr();
68
}
69
+ String jtSysDir = conf.get("mapreduce.jobtracker.system.dir", null);
70
+ Path mapredSysDirectory = null;
71
+
72
+ if(jtSysDir!=null)
73
+ mapredSysDirectory = new Path(jtSysDir);
74
+ else{
75
+ mapredSysDirectory = new Path(conf.get("mapred.system.dir", "glusterfs:///mapred/system"));
76
+ }
77
78
+ if(!exists(mapredSysDirectory)){
79
+ mkdirs(mapredSysDirectory);
80
81
82
//volName=conf.get("fs.glusterfs.volname", null);
83
//remoteGFSServer=conf.get("fs.glusterfs.server", null);
0 commit comments