为什么Apache Flink不在Windows上运行?
我是新手,我是第一次使用Apache Flink。我已经在Windows中下载了Flink-1.14.4-bin-scala_2.12版本,我已经安装了Cygwin在Windows中运行SH文件。我还在Windows 10 OS上安装了Java 11。
我正在关注据我执行脚本 bin/start-cluster.sh ,这在cygwin终端显示
启动群集。
在主持人Simli上启动独立的守护程序。
在主机上启动taskexecutor守护程序。
但是,在执行此命令之后,Apache Flink Web UI并未在http:// localhost:8081/
我在这里丢失一些非常简单的东西吗? 我还提到一个问题,但似乎我已经安装了正确的Java版本(Java 11)。
I am a newbie and I am using apache flink for the first time. I have downloaded flink-1.14.4-bin-scala_2.12 version in windows, I have installed cygwin to run the sh files in windows. I have also installed java 11 on my windows 10 os.
I am following this documentation according to which I am executing the script bin/start-cluster.sh and this is shown on the cygwin terminal
Starting cluster.
Starting standalonesession daemon on host Simli.
Starting taskexecutor daemon on host Simli.
but after executing this command, the apache flink web UI is not starting at http://localhost:8081/
Am I missing something really simple here?
I have also referred to this question but it seems that I have installed the correct version of java (java 11).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Windows和Cygwin上的线路结尾字符似乎存在问题。
启动cygwin shell。
通过输入来确定您的主目录
; PWD
这将返回Cygwin root路径下的路径。
$ export shellopts
$ SET -O IGNCR
保存文件并打开一个新的bash shell(只是句子导出...并设置...而不是$,以防万一)。
taskmanager.resource-ID: TM_LOCALHOST
此设置的缺点是每个执行情况都不会有特定的文件夹,并且它将在Cygwin
参考的临时文件夹上具有该名称:
flink任务管理器未启动问题
flink的windows/cygwin手动修复
apace flink:任务经理未能启动-Mapohl的评论
flink的邮件列表
There seems to be an issue with line endings characters on Windows and Cygwin.
Start a Cygwin shell.
Determine your home directory by entering
cd; pwd
This will return a path under the Cygwin root path.
$ export SHELLOPTS
$ set -o igncr
Save the file and open a new bash shell (just the sentences export... and set..., not the $, just in case).
taskmanager.resource-id: tm_localhost
The drawback of this setting is that there will be no specific folder per execution, and it will have that name on the temporal folder of cygwin
References:
Flink Task manager not started issue
Flink's windows/cygwin manual fix
Apace Flink : Task Manager failed to start - mapohl's comment
Flink's mail list
对于Newbie,为了尽快体验Flink的新功能,并避免安装环境的麻烦,我认为您可以尝试安装Docker。
Flink Docker-compose.yml:
然后在docker-compose.yml文件所在的当前目录中启动flink组件。
此命令将自动启动Docker中定义的所有容器以独立模式组成配置。
您可以通过访问来检查Flink是否正常运行:http:// localhost:8081/
您也可以在Dockerhub上搜索所需的图像的Flink版本:https://hub.dock.docker.com/r/apache/flink /标签
For newbie, in order to experience the new features of Flink as soon as possible in windows, and to avoid the trouble of installing the environment, I think you can try to install Docker.
Flink docker-compose.yml:
Then start the Flink component in the current directory where the docker-compose.yml file is located.
This command will automatically start all the containers defined in the Docker Compose configuration in detached mode.
You can check if Flink is running properly by visiting: http://localhost:8081/
You can also search for the Flink version of the image you want on DockerHub:https://hub.docker.com/r/apache/flink/tags