Failing this attempt.Diagnostics: [2023-12-20 11:56:29.194]Exception from container-launch.
Container id: container_1698656200903_3886_02_000001
Exit code: 13
[2023-12-20 11:56:29.196]Container exited with a non-zero exit code 13. Error file: prelaunch.err.
Last 4096 bytes of prelaunch.err :
Last 4096 bytes of stderr :
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/data01/hadoop/yarn/local/filecache/10/spark-jars.tar.gz/log4j-slf4j-impl-2.17.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/data01/hadoop/yarn/local/filecache/10/spark-jars.tar.gz/spark-streaming-kafka-0-10-assembly.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.apache.logging.slf4j.Log4jLoggerFactory]
23/12/20 11:56:27 INFO SignalUtils: Registering signal handler for TERM
23/12/20 11:56:27 INFO SignalUtils: Registering signal handler for HUP
23/12/20 11:56:27 INFO SignalUtils: Registering signal handler for INT
23/12/20 11:56:27 INFO SecurityManager: Changing view acls to: yarn,root
23/12/20 11:56:27 INFO SecurityManager: Changing modify acls to: yarn,root
23/12/20 11:56:27 INFO SecurityManager: Changing view acls groups to:
23/12/20 11:56:27 INFO SecurityManager: Changing modify acls groups to:
spark提交报这个错,主要原因是你在代码中指的的是local模式,二用spark-submit提交是指定了yarn集群模式,所以报这个错了,他找不到你的yarn集群