YARN-11165. Use default java.policy when no group policy is set.
This commit is contained in:
parent
96985f4c45
commit
8817b3691f
|
@ -468,7 +468,7 @@ public class JavaSandboxLinuxContainerRuntime
|
|||
cacheDirs.add(path.getParent().toString());
|
||||
}
|
||||
|
||||
if (groupPolicyPaths != null) {
|
||||
if (groupPolicyPaths != null && !groupPolicyPaths.isEmpty()) {
|
||||
for(String policyPath : groupPolicyPaths) {
|
||||
Files.copy(Paths.get(policyPath), policyOutStream);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue