报错:Error starting the context, marking it as stopped
java.lang.IllegalArgumentException: requirement failed: No output operations registered, so nothing to execute

原因是DStream只有Transformations操作而没有OutputOperations操作
解决:对DStream进行任意的OutputOperations操作就可以了
比如 : sc.print()
评论 抢沙发