我刚刚将flink从1.9.1版本升级到1.11.2(使用docker) 我已经在1.9.1版中运行了许多flink作业 当我尝试升级到1.11.1并重新运行我的作业时,它显示错误。
2020-11-12 06:49:17,731 WARN org.apache.zookeeper.ClientCnxn []
- SASL configuration failed: javax.security.auth.login.LoginException: No JAAS configuration section named 'Client' was found in specified JAAS configuration file: '/tmp/jaas-1135609831848314731.conf'. Will continue connection to Zookeeper server without SASL authentication, if Zookeeper server allows it.
2020-11-12 06:49:17,739 INFO org.apache.zookeeper.ClientCnxn [] - Opening socket connection to server xxxxxx:2181
2020-11-12 06:49:17,741 ERROR org.apache.curator.ConnectionState [] - Authentication failed
这是部署我的flink作业后的错误:
由以下原因引起:java.lang.RuntimeException:API路径未定义
还有:
java.lang.NoSuchMethodError:org.apache.flink.api.common.state.OperatorStateStore.getSerializableListState(Ljava / lang / String;)Lorg / apache / flink / api / common / state / ListState;
我需要为我的flink工作更改每个pom吗? 可以更改我的源代码吗?
谢谢
答案 0 :(得分:0)
是的,每当您更新用于运行作业的Flink版本时,都必须重建Flink作业。您使用的库应该与作业管理器和任务管理器使用的版本完全相同。
如果您要尝试自动执行CI / CD管道的部署,则可以使用环境变量将版本号注入pom.xml中-但是这样做会导致出现问题时难以调试。