我已经下载了 Flink 1.5.0
并运行启动群集脚本,群集似乎已成功启动:
$ ./bin/start-cluster.sh
Starting cluster.
Starting standalonesession daemon on host LAPTOP-HRAHBL24.
Starting taskexecutor daemon on host LAPTOP-HRAHBL24.
然而,当我访问http://localhost:8081/连接被拒绝。我按照这个问题对我的hosts文件中的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”我有这个错误 Flink 1.10.1
,我试着搜索,但什么也没找到
你知道我能做些什么吗?
2条答案
按热度按时间falq053o1#
问题是“program files”中的空格,所以我将java home设置为conf/flink-conf.xml,这个错误就消失了。
gg0vcinb2#
在conf/flink-conf.yaml中,使用以下变量env.java.home设置java home