Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoClassDefFoundError using parquet-cli shaded jar (building with mvn -Plocal) #3099

Open
Arnaud-Nauwynck opened this issue Dec 8, 2024 · 0 comments · May be fixed by #3100
Open

NoClassDefFoundError using parquet-cli shaded jar (building with mvn -Plocal) #3099

Arnaud-Nauwynck opened this issue Dec 8, 2024 · 0 comments · May be fixed by #3100

Comments

@Arnaud-Nauwynck
Copy link

Describe the bug, including details regarding any error messages, version, and platform.

building parquet-cli shaded jar, and running, I get NoClassDefFoundError on class thrift

$ java -jar target/parquet-cli-1.15.0-SNAPSHOT-runtime.jar help
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/thrift/TBase
        at org.apache.parquet.cli.Main.<init>(Main.java:104)
        at org.apache.parquet.cli.Main.main(Main.java:191)
Caused by: java.lang.ClassNotFoundException: org.apache.thrift.TBase
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
        ... 2 more

by patching to add this to parquet-cli/pom.xml, it fixes the problem

    <dependency>
      <groupId>org.apache.thrift</groupId>
      <artifactId>libthrift</artifactId>
      <version>${format.thrift.version}</version>
      <scope>${deps.scope}</scope>
    </dependency>

Component(s)

No response

Arnaud-Nauwynck added a commit to Arnaud-Nauwynck/parquet-java that referenced this issue Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant