栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 前沿技术 > 大数据 > 大数据系统

flink命令行运行报错

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参数,去掉即可

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/688520.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号