Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
# Read your file with the function you want as long as it supports reading from a connection
data <- read.csv(uri)

Reading non-data file

To download a zip folder or other non-data files, the method download.file is needed.

Code Block
download.file('http://namenodedns:port/webhdfs/v1/user/username/myfolder.tar.gz?op=OPEN', destfile = 'localFile.tar.gz')


Code explanation for writing a file

...