Flink 1.7.2 start-scala-shell.sh无法找到或加载主类org.apache.flink.api.scala.FlinkShell [英] Flink 1.7.2 start-scala-shell.sh cannot find or load main class org.apache.flink.api.scala.FlinkShell

查看:675
本文介绍了Flink 1.7.2 start-scala-shell.sh无法找到或加载主类org.apache.flink.api.scala.FlinkShell的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Flink版本:仅Apache Flink 1.7.2二进制.斯卡拉:2.12

Flink version: Apache Flink 1.7.2 only binary. Scala:2.12

环境:

Scala version: 2.12.5   
JDK: 1.8.0_171 

我只是解压缩此存档并运行

I simply untar this archive and run

bin/start-scala-shell.sh local 

我得到了错误:

cannot find or load main class org.apache.flink.api.scala.FlinkShell. 

错过了什么?

推荐答案

基于Scala 2.12版本构建的Flink尚不支持Flink Scala shell.因此,如果要使用Flink Scala shell,则应使用基于Scala 2.11构建的Flink二进制文件.来自Flink项目的提交人 Chesnay Schepler 的消息:

Flink built on Scala 2.12 version Doesn't support Flink Scala shell yet. So you should use the Flink binary built based on Scala 2.11 if you want to use Flink Scala shell. A message from Chesnay Schepler, Committer of Flink project:

这是有意的.增加Scala版本基本上打破了 scala-shell,我们还没有时间修复它.因此,这只是 可在Scala 2.11中使用.我同意错误消息可能是 更好.

This is intended. Increasing the Scala version basically broke the scala-shell and we haven't had the time to fix it. It is thus only available with Scala 2.11. I agree that the error message could be better though.

这篇关于Flink 1.7.2 start-scala-shell.sh无法找到或加载主类org.apache.flink.api.scala.FlinkShell的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆