摘要:spark支持的常见文件格式如下: 文本,json,CSV,SequenceFiles,Protocol buffers,对象文件 1.文本 只需要使用文件路径作为参数调用SparkContext 中的textFile() 函数,就可以读取一个文本文件; scala> val lines=sc.te
阅读全文
posted @ 2017-10-27 15:11
posted @ 2017-10-27 15:11
posted @ 2017-10-18 16:05
Copyright © 2025 打杂滴
Powered by .NET 9.0 on Kubernetes