YARN-8491. TestServiceCLI#testEnableFastLaunch fail when umask is 077. Contributed by K G Bakthavachalam.

This commit is contained in:
bibinchundatt 2018-07-11 16:19:51 +05:30
parent 7f1d3d0e9d
commit 52e1bc8539

View File

@ -121,12 +121,16 @@ public void setup() throws Throwable {
basedir = new File("target", "apps");
basedirProp = YARN_SERVICE_BASE_PATH + "=" + basedir.getAbsolutePath();
conf.set(YARN_SERVICE_BASE_PATH, basedir.getAbsolutePath());
fs = new SliderFileSystem(conf);
dependencyTarGzBaseDir = tmpFolder.getRoot();
fs.getFileSystem()
.setPermission(new Path(dependencyTarGzBaseDir.getAbsolutePath()),
new FsPermission("755"));
dependencyTarGz = getDependencyTarGz(dependencyTarGzBaseDir);
dependencyTarGzProp = DEPENDENCY_TARBALL_PATH + "=" + dependencyTarGz
.toString();
conf.set(DEPENDENCY_TARBALL_PATH, dependencyTarGz.toString());
fs = new SliderFileSystem(conf);
if (basedir.exists()) {
FileUtils.deleteDirectory(basedir);
} else {