zz5440435 opened a new issue, #8159:
URL: https://github.com/apache/iceberg/issues/8159
### Apache Iceberg version
1.3.0
### Query engine
None
### Please describe the bug 🐞
我这边尝试将flink作业打包后运行, 当执行到TableLoader类的FlinkEnvironmentContext.init()方法时, 如下代码
public static void init() {
EnvironmentContext.put("engine-name", "flink");
EnvironmentContext.put("engine-version", FlinkPackage.version());
}
发现FlinkPackage.version()报空指针异常, 通过判断确定是FlinkPackage中获取flink版本的值为NULL
private static final String VERSION =
DataStream.class.getPackage().getImplementationVersion();
如上, DataStream.class.getPackage().getImplementationVersion()获取不到版本号,
本地可以正常获取, maven打包后获取不到
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]