You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "luoyuxia (Jira)" <ji...@apache.org> on 2022/12/14 01:36:00 UTC
[jira] [Commented] (FLINK-30035) ./bin/sql-client.sh won't import external jar into the session
[ https://issues.apache.org/jira/browse/FLINK-30035?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17646888#comment-17646888 ]
luoyuxia commented on FLINK-30035:
----------------------------------
May similar issue to FLINK-30318, after FLINK-14055, we won't wrap therad's classload using Thread.currentThread().setContextClassLoader() with the added jars in SQL Client CLI, so if the any class in iceberg-flink-runtime-1.16-1.1.0.jar try to load the class using Thread.currentThread().setContextClassLoader(), it may well get an classload without all the added jars which is different from 1.15.
> ./bin/sql-client.sh won't import external jar into the session
> --------------------------------------------------------------
>
> Key: FLINK-30035
> URL: https://issues.apache.org/jira/browse/FLINK-30035
> Project: Flink
> Issue Type: Bug
> Components: Table SQL / Client
> Affects Versions: 1.16.0
> Reporter: Steven Zhen Wu
> Priority: Major
>
> I used to be able to run the sql-client with iceberg-flink-runtime jar using the `-j,--jar <JAR file>` option (e.g. with 1.15.2).
> {code}
> ./bin/sql-client.sh embedded --jar iceberg-flink-runtime-1.16-1.1.0.jar
> {code}
> With 1.16.0, this doesn't work anymore. As a result, I am seeing ClassNotFoundException.
> {code}
> java.lang.ClassNotFoundException: org.apache.iceberg.hadoop.HadoopCatalog
> {code}
> I have to put the iceberg-flink-runtime-1.16-1.1.0.jar file inside the `flink/lib` directory to make the jar loaded. This seems like a regression of 1.16.0.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)