HADOOP_CLASSPATH 设置了;
启动这个好像不需要指定程序的入口类吧




在2019年11月18日 16:34,tison<wander4...@gmail.com> 写道:
可能是你没有设置 HADOOP_CLASSPATH

参考 https://flink.apache.org/downloads.html 本页面最上部分

If you plan to use Apache Flink together with Apache Hadoop (run Flink on
YARN, connect to HDFS, connect to HBase, or use some Hadoop-based file
system connector) then select the download that bundles the matching Hadoop
version, download the optional pre-bundled Hadoop that matches your version
and place it in the lib folder of Flink, or export your HADOOP_CLASSPATH
<https://ci.apache.org/projects/flink/flink-docs-stable/ops/deployment/hadoop.html>

Best,
tison.


李军 <hold_li...@163.com> 于2019年11月18日周一 下午4:31写道:

启动命令:         ./bin/yarn-session.sh -n 2 -jm 1024 -tm 1024
报错:Error: Could not find or load main class
org.apache.flink.yarn.cli.FlinkYarnSessionCli


ResourceManager,NodeManager都已启动。

回复