ankit0811 commented on issue #8366:
URL: https://github.com/apache/hudi/issues/8366#issuecomment-2044207518
This occurs when I don't pass the `hudi-flink-bundle` in the class path
explicitly. So I am not sure about the jdk incompatibility.
To summarize, if I pass the bundle explicitly in the class path
`(/opt/flink/lib/)` and update the pom as
```
<dependency>
<groupId>org.apache.hudi</groupId>
<artifactId>hudi-flink${flink.binary.version}-bundle</artifactId>
<version>${hudi.version}</version>
<scope>provided</scope>
</dependency>
```
, it throws
```
Caused by: java.util.concurrent.CompletionException:
java.lang.NoClassDefFoundError: Could not initialize class
org.apache.hudi.configuration.FlinkOptions at
java.base/java.util.concurrent.CompletableFuture.encodeThrowable(Unknown
Source) at
java.base/java.util.concurrent.CompletableFuture.completeThrowable(Unknown
Source) ... 2 more
```
And if I change the pom dependency for the bundle to be default and not
provided
```
<dependency>
<groupId>org.apache.hudi</groupId>
<artifactId>hudi-flink${flink.binary.version}-bundle</artifactId>
<version>${hudi.version}</version>
</dependency>
```
I get the following exception
```
java.util.concurrent.CompletionException: java.lang.NoSuchFieldError:
DATABASE_NAME\n\tat
java.base/java.util.concurrent.CompletableFuture.encodeThrowable(Unknown
Source)\n\tat
java.base/java.util.concurrent.CompletableFuture.completeThrowable(Unknown
Source)\n\t... 2 more\nCaused by: java.lang.NoSuchFieldError:
DATABASE_NAME\n\tat
org.apache.hudi.configuration.FlinkOptions.<clinit>(FlinkOptions.java:88)
```
Any pointers will be much appreciated @danny0405
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]