YARN-8491. TestServiceCLI#testEnableFastLaunch fail when umask is 077. Contributed by K G Bakthavachalam.
This commit is contained in:
parent
7f1d3d0e9d
commit
52e1bc8539
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user