copy_files: Copy flat files from HDFS folder or local R project folder to...

Description Usage Arguments Value

View source: R/copy_files.R

Description

Copy flat files from HDFS folder or local R project folder to HDFS folder.

Usage

1
2
3
copy_files(hdfsUri, dirUri, destUri, user_name, copy_all = TRUE,
  fname = "", from_hdfs = TRUE, from_folder = "", newname = "",
  rm_temp_file = TRUE)

Arguments

hdfsUri,

the url of the platform

dirUri,

the path to the folder of origin

destUri,

the path to the folder of destination

user_name,

credential with writing credential

copy_all,

optionnal argument : shall all the files in origin folder be copied ?

fname,

optionnal argument : name of the unique file to copy

from_hdfs,

optionnal argument : is the file stored locally in R session ?

from_folder,

optionnal argument to upload file from local directory (with '/' at the end)

newname,

optionnal default to "", usefull when copy from HDFS : allow copied file renaming

rm_temp_file,

default to TRUE to remove local copy of the file

Value

nada, the file is copied either from HDFS (by default) or from R session to the wanted HDFS directory.


ND-open/ptools documentation built on July 9, 2019, 10:55 p.m.