You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "zz5440435 (via GitHub)" <gi...@apache.org> on 2023/07/27 01:32:37 UTC
[GitHub] [iceberg] zz5440435 opened a new issue, #8159: NullPointerException when doing FlinkEnvironmentContext.init() for Flink 1.17 and iceberg 1.3.0
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: issues-unsubscribe@iceberg.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [I] NullPointerException when doing FlinkEnvironmentContext.init() for Flink 1.17 and iceberg 1.3.0 [iceberg]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #8159:
URL: https://github.com/apache/iceberg/issues/8159#issuecomment-2336490548
This issue has been automatically marked as stale because it has been open for 180 days with no activity. It will be closed in next 14 days if no further activity occurs. To permanently prevent this issue from being considered stale, add the label 'not-stale', but commenting on the issue is preferred when possible.
--
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@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
[GitHub] [iceberg] nastra commented on issue #8159: NullPointerException when doing FlinkEnvironmentContext.init() for Flink 1.17 and iceberg 1.3.0
Posted by "nastra (via GitHub)" <gi...@apache.org>.
nastra commented on issue #8159:
URL: https://github.com/apache/iceberg/issues/8159#issuecomment-1653003388
This is most likely the same issue as https://github.com/apache/iceberg/issues/7879, indicating that there's a classpath issue. Are you creating your own uber jar?
--
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@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [I] NullPointerException when doing FlinkEnvironmentContext.init() for Flink 1.17 and iceberg 1.3.0 [iceberg]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #8159:
URL: https://github.com/apache/iceberg/issues/8159#issuecomment-2367033835
This issue has been closed because it has not received any activity in the last 14 days since being marked as 'stale'
--
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@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
[GitHub] [iceberg] zz5440435 commented on issue #8159: NullPointerException when doing FlinkEnvironmentContext.init() for Flink 1.17 and iceberg 1.3.0
Posted by "zz5440435 (via GitHub)" <gi...@apache.org>.
zz5440435 commented on issue #8159:
URL: https://github.com/apache/iceberg/issues/8159#issuecomment-1654799365
> This is most likely the same issue as #7879, indicating that there's a classpath issue. Are you creating your own uber jar?
是的, 我是通过maven将代码以及第三方依赖打包后运行出现的,
public static void main (String[] args) throws Exception {
// 获取当前flink版本
System.out.println(DataStream.class.getPackage().getImplementationVersion());
// 获取执行环境
StreamExecutionEnvironment env = FlinkUtil.getProduceMode("dws");
}
上述代码, 在打包后运行的时候是可以获取到fink的版本, 但是在FlinkPackage中发现获取到的为NULL, 我只能尝试利用子模块重写FlinkPackage类覆盖依赖中FlinkPackage类来临时解决
--
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@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [I] NullPointerException when doing FlinkEnvironmentContext.init() for Flink 1.17 and iceberg 1.3.0 [iceberg]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #8159: NullPointerException when doing FlinkEnvironmentContext.init() for Flink 1.17 and iceberg 1.3.0
URL: https://github.com/apache/iceberg/issues/8159
--
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@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org