【问题标题】:Flink localhost dashboard not working despite cluster starting尽管集群启动,Flink localhost 仪表板仍无法正常工作
【发布时间】:2020-09-25 11:12:44
【问题描述】:

我已经下载了Flink 1.5.0并运行了start-cluster脚本,集群似乎已经启动成功了:

$ ./bin/start-cluster.sh
Starting cluster.
Starting standalonesession daemon on host LAPTOP-HRAHBL24.
Starting taskexecutor daemon on host LAPTOP-HRAHBL24.

但是,当我访问 http://localhost:8081/ 时,连接被拒绝。我按照问题取消注释主机文件中的 localhost 行: https://superuser.com/questions/1008349/unable-to-connect-to-localhost-after-windows-10-upgrade

我检查了日志,里面有这个错误:"/d/Programs/flink-1.5.0/bin/flink-daemon.sh: line 131: C:\Program: No such file or directory" I Flink 1.10.1 出现此错误,我尝试搜索但找不到任何内容

知道我能做些什么来解决这个问题吗?

【问题讨论】:

  • 我会首先在 Flink 日志中寻找线索。
  • 谢谢。我做到了。我有这个错误:“/d/Programs/flink-1.5.0/bin/flink-daemon.sh: line 131: C:\Program: No such file or directory” 我在使用 Flink 1.10.1 时遇到了这个错误,我尝试搜索它,但找不到任何东西......
  • 你能升级到更现代的 Flink 版本吗? 1.5 版在这一点上很古老。
  • 我在使用 Flink 1.0.1 时遇到了同样的错误
  • 这是使用 Flink 10.1 的 start-cluster 脚本的输出:[ERROR] Unexpected result: /d/Programs/flink-1.10.1/bin/config.sh: line 633: C: \Program: No such file or directory [错误] BashJavaUtils 输出的最后一行应该是执行结果,在前缀 'BASH_JAVA_UTILS_EXEC_RESULT:' /d/Programs/flink-1.10.1/bin/config.sh 之后:第 633 行:C:\Program: No such file or directory [错误] 无法正确获取 JVM 参数。是不是同样的错误?

标签: windows localhost apache-flink


【解决方案1】:

问题是“程序文件”中的空间,所以我在 conf/flink-conf.xml 中设置了 java home,这个错误就消失了。

【讨论】:

    【解决方案2】:

    在 conf/flink-conf.yaml 中,用这个变量 env.java.home 设置 java home

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-07-12
      • 2021-12-09
      相关资源
      最近更新 更多