From ba51c171cb7ff32e78ba0f60552e6cff85d57d0a Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Wed, 23 Oct 2024 08:12:57 -0400 Subject: [PATCH] Allow security manager on Java 23 for HDFS java.lang.UnsupportedOperationException: getSubject is supported only if a security manager is allowed at java.base/javax.security.auth.Subject.getSubject(Subject.java:347) at org.apache.hadoop.security.UserGroupInformation.getCurrentUser(UserGroupInformation.java:588) --- commons-vfs2-hdfs/pom.xml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/commons-vfs2-hdfs/pom.xml b/commons-vfs2-hdfs/pom.xml index 8de814faf8..160276bc1c 100644 --- a/commons-vfs2-hdfs/pom.xml +++ b/commons-vfs2-hdfs/pom.xml @@ -270,9 +270,17 @@ [23,) - - allow - + + + + org.apache.maven.plugins + maven-surefire-plugin + + -Djava.security.manager=allow + + + +