YARN-11165. Use default java.policy when no group policy is set.

This commit is contained in:
Weiqiang (Brandon) Li 2022-05-27 11:46:16 +08:00 committed by GitHub
parent 96985f4c45
commit 8817b3691f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}