且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

由于找不到或加载主类错误而导致Flink群集无法启动

更新时间:2022-04-02 22:41:51

我遇到了同样的问题,但是现在我能够启动集群并看到localhost:8081 UI.

I was experiencing the same issue, but now I am able to start the cluster and see the localhost:8081 UI.

这是我采取的步骤:

  1. 针对Windows的激活 WSL : https://askubuntu.com/Questions/746413/trying-to-install-java-8-unable-to-locate-package-openjdk-8-jre (首先打开Linux shell,然后按照说明进行操作)
  1. Activation WSL for windows : https://www.thewindowsclub.com/how-to-run-sh-or-shell-script-file-in-windows-10 (part 1 Execute Shell Script file using WSL)
  2. Getting Ubuntu for win 10 to run Linux commands (running the .sh files), this can be achieved by going into Microsoft Store and downloading the preferred distribution of Linux. (Or open PowerShell in windows, type bash for easy info)
  3. Installing OpenJDK on the Ubuntu, following: https://askubuntu.com/questions/746413/trying-to-install-java-8-unable-to-locate-package-openjdk-8-jre (first open Linux shell, then follow the instructions)


完成这些步骤后,您应该能够在 Apache Flink 1.11.2 文件夹中打开Linux Shell,并运行 ./bin/start-cluster.sh 没问题.


After these steps you should be able to open Linux Shell in Apache Flink 1.11.2 folder and run ./bin/start-cluster.sh without any problem.