一、clean之后直接package
The program‘s entry point class ‘com.atguigu.wcBase.Workcount‘ was not found in the jar file.
需要在clean之后build,再package
二、standalone
启动Flink集群 start-cluster
前提打开nc -lk 9999
提交job
flink run -c com.atguigu.wcBase.StreamWorkcount /opt/module/flink-1.11.3/learning-1.0-SNAPSHOT.jar --host localhost --port 9999
查看job
flink list
取消job
flink cancel jobId
三、yarn,启动yarn集群
1.启动yarn-session:yarn-session.sh -n 2 -s 2 -jm 1024 -tm 1024 -nm test -d
error:org.apache.flink.client.program.ProgramInvocationException: Job failed
java.net.ConnectException: Connection refused
原因:9999端口被占,重启下nc -lk 9999
原文:https://www.cnblogs.com/fi0108/p/14771159.html