java.lang.IllegalArgumentException: requirement failed: No output operations registered, so nothi...

Spark Streaming 报错
java.lang.IllegalArgumentException: requirement failed: No output operations registered, so nothing to execute
原因是没有触发Output Operation,在Spark Streaming中,Output Operation和RDD的Action相同,如果不触发Output Operation,就不会计算,会报错。
可以在最后添加Output Operation,比如print(),打印控制台。

你可能感兴趣的:(java.lang.IllegalArgumentException: requirement failed: No output operations registered, so nothi...)