Upravit

Sdílet prostřednictvím


rx_hadoop_copy_to_local

Usage

revoscalepy.rx_hadoop_copy_to_local(source: str, dest: str)

Description

Wraps the Hadoop fs -copyToLocal command.

Arguments

source

A character string specifying file(s) to be copied in HDFS

dest

A character string specifying the destination of a copy in Local File System If source includes more than one file, dest must be a directory.

Example

from revoscalepy import rx_hadoop_copy_to_local
rx_hadoop_copy_to_local("/user/RevoShare/foo.txt", "/tmp/foo.txt")