Description Usage Arguments Details Value Author(s) Examples
HDFS creates a new HDFS connection that can be used
to read files from HDFS.
1 |
path |
path of the file in HDFS |
mode |
mode to use for auto-open |
fs |
optional, FileSystem object |
buffer |
buffer size to use for pre-loading the data |
HDFS creates a connection that can be used for reading files
from HDFS (currently write is unimplemented). The connection can be
opened either for text reading "r" or for binary reads
"rb".
The buffer parameter specifies the size (in bytes) of the
buffer used to read the data.
HDFS connection
Simon Urbanek
1 2 3 4 5 6 | ## Not run:
f <- HDFS("/projects/foo/bar", "r")
d <- read.table(f, stringsAsFactors=FALSE)
close(f)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.