You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@parquet.apache.org by "Arnaud-Nauwynck (via GitHub)" <gi...@apache.org> on 2024/12/08 19:08:52 UTC
[I] NoClassDefFoundError using parquet-cli shaded jar (building with mvn -Plocal) [parquet-java]
Arnaud-Nauwynck opened a new issue, #3099:
URL: https://github.com/apache/parquet-java/issues/3099
### 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_
--
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: issues-unsubscribe@parquet.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@parquet.apache.org
For additional commands, e-mail: issues-help@parquet.apache.org
Re: [I] NoClassDefFoundError using parquet-cli shaded jar (building with mvn -Plocal) [parquet-java]
Posted by "wgtmac (via GitHub)" <gi...@apache.org>.
wgtmac closed issue #3099: NoClassDefFoundError using parquet-cli shaded jar (building with mvn -Plocal)
URL: https://github.com/apache/parquet-java/issues/3099
--
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: issues-unsubscribe@parquet.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@parquet.apache.org
For additional commands, e-mail: issues-help@parquet.apache.org