spark启动失败:requirement failed: No output operations registered, so nothing to execute

Posted zhangphil

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了spark启动失败:requirement failed: No output operations registered, so nothing to execute相关的知识,希望对你有一定的参考价值。

报错:

Exception in thread "main" java.lang.IllegalArgumentException: requirement failed: No output operations registered, so nothing to execute

 

原因:在start后,没有触发spark的流数据动作,任意一个触发DStream的动作即可解决该问题,比如JavaReceiverInputDStream的:

print()

 

 

开发者涨薪指南 48位大咖的思考法则、工作方式、逻辑体系

以上是关于spark启动失败:requirement failed: No output operations registered, so nothing to execute的主要内容,如果未能解决你的问题,请参考以下文章

spark-shell启动失败

spark-shell 启动失败,显示端口问题

elaseticsearchelaseticsearch启动报错Caused by: org.elasticsearch.transport.BindTransportException: Fai(代

Spark:作业重启和重试

Scala PartialFunction ***

Spark 作业在显示所有作业已完成然后失败后重新启动(TimeoutException: Futures timed out after [300 seconds])