write_file.webhdfs: Create and Write to a File on HDFS

Description Usage Arguments Value References

View source: R/write_file.R

Description

Create and Write to a File on HDFS

Usage

1
2
3
4
## S3 method for class 'webhdfs'
write_file(fs, targetPath, srcPath, sizeWarn = 1e+08,
  append = FALSE, overwrite = FALSE, blocksize = NULL,
  replication = NULL, permission = 755, buffersize = NULL, ...)

Arguments

fs

HDFS FileSystem object

targetPath

a character vector that contains the path of file to write

srcPath

path of the file whose content will be written

sizeWarn

raise warning if file size exceeds threshold. Use NULL to suppress warning

append

to a file if TRUE

overwrite

a file if TRUE and file already exists

blocksize

hdfs blocksize for the file

replication

factor for the file

permission

of the file as in octal mask

buffersize

used in transferring data

...

additional arguments passed to curl_webhdfs

Value

TRUE if successful, FALSE otherwise

References

WebHDFS HDFSFileSystem


saurfang/rwebhdfs documentation built on May 29, 2019, 3:20 p.m.