ERROR StreamingContext: Error starting the context, marking it as stopped

ERROR StreamingContext: Error starting the context, marking it as stopped
java.lang.IllegalArgumentException: 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

原因 DStream只有Transformations操作而没有OutputOperations操作

解决方案

对DStream进行任意的OutputOperations操作就可以了

比如 : ssc.print()

你可能感兴趣的:(ERROR StreamingContext: Error starting the context, marking it as stopped)