Copies data from HDFS into a data frame in the local R environment. All metadata is extracted and all attributes, such as column names and data types, are restored if the data originated in an R environment. Otherwise, generic attributes like val1 and val2 are assigned.
The name of a file in HDFS. The file name can include a path that is either absolute or relative to the current path.
The symbol used to separate fields in the file. A comma (,) is the default separator.
If the HDFS file is small enough to fit into an in-memory R data frame, then you can copy the file using this function instead of the hdfs.pull
function. The hdfs.get
function can be faster, because it does not use Sqoop and thus does not have the overhead incurred by hdfs.pull
.
A data.frame
object in memory in the local R environment pointing to the exported data set, or NULL
if the operation failed