Skip to content

Commit

Permalink
Allow security manager on Java 23 for HDFS
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
garydgregory committed Oct 23, 2024
1 parent 236b1d7 commit ba51c17
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions commons-vfs2-hdfs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,17 @@
<activation>
<jdk>[23,)</jdk>
</activation>
<properties>
<java.security.manager>allow</java.security.manager>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>-Djava.security.manager=allow</argLine>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<activation>
Expand Down

0 comments on commit ba51c17

Please sign in to comment.