flink命令行运行报错
作者:互联网
报错信息
/root/bigdata/flink-1.10.2/bin/flink run -m yarn-cluster -yn 2 -yjm 1024 -ytm 1024 /root/jar/bdss-1.0-SNAPSHOT.jar -c sssj.Myredis
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/root/bigdata/flink-1.10.2/lib/slf4j-log4j12-1.7.15.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/root/bigdata/hadoop-2.7.7/share/hadoop/common/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
Could not build the program from JAR file.
Use the help option (-h or --help) to get help on the command.
解决方法
使用Flink版本1.10.1
启动命令
flink run -m yarn-cluster -yd -ynm DTSLauncher -yjm 1024m -ytm 2048m -yn 3 -ys 1 -c com.br.dts.stream.launcher.DTSLauncher /data/module/br-dts/dts-launcher-task/launcher/br-dts-1.0-SNAPSHOT.jar
报错原因:flink1.10.1不支持-yn参数,去掉即可
标签:flink,jar,slf4j,SLF4J,报错,命令行,dts,org 来源: https://blog.csdn.net/qq_45626867/article/details/122153403