Output Operations on DStreams

Posted 天之涯0204

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Output Operations on DStreams相关的知识,希望对你有一定的参考价值。

print():打印DStream中的前10行数据

saveAsTextFiles(prefix, [suffix]):保存成文本文件到prefix指定的目录下,后缀为suffix

saveAsObjectFiles(prefix, [suffix]) :保存DStream数据为 SequenceFiles 或者 serialized Java objects

saveAsHadoopFiles(prefix, [suffix]) :保存文件到hadoop上

foreachRDD(func):遍历DStream中的RDD

以上是关于Output Operations on DStreams的主要内容,如果未能解决你的问题,请参考以下文章

Output Operations on DStreams

[java][spark streamming]java.lang.IllegalArgumentException: requirement failed: No output operations

1065 Operations On Grids

System Operations on AWS - Lab 7 - CloudFormation

System Operations on AWS - Lab 4W - Monitoring (Windows)

System Operations on AWS - Lab 1W - Creating EC2 (Windows)