YARN-8491. TestServiceCLI#testEnableFastLaunch fail when umask is 077. Contributed by K G Bakthavachalam.
(cherry picked from commit 52e1bc8539
)
This commit is contained in:
parent
9b4ead92c8
commit
2aaad4000a
|
@ -121,12 +121,16 @@ public class TestServiceCLI {
|
|||
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