Spark无法直接读取HDFS文件的方法是什么?textFile如何处理
发布时间
阅读量:
阅读量
直入正题吧,ctrl+鼠标点进textFile方法。
package org.apache.spark
.........
/** * Read a text file from HDFS, a local file system (available on all nodes), or any
* Hadoop-supported file system URI, and return it as an RDD of Strings.
* @param path path to the text file on a supported file system
* @param minPartitions suggested minimum number of partitions for the resulting RDD
* @return RDD of lines of the text file
10. 从HDFS、本地文件系统(在所有节点上可用)或任何节点读取文本文件
支持hadoop的文件系统URI,并将其作为字符串的RDD返回。
* @param路径到受支持的文件系统上的文本文件的
全部评论 (0)
还没有任何评论哟~
