dfs.empty {rmr2} | R Documentation |
Check if an item is empty or return its size. Move an item or remove(recursively). Here item is a valid path or big.data.object
dfs.empty(fname) dfs.exists(fname) dfs.size(fname) dfs.mv(from, to) dfs.rmr(fname) dfs.ls(fname)
fname |
A valid path or |
from, to |
A valid path |
The size of a directory, for the sake of this commands, is the size of the files contained therein with the exception of hidden files starting with "." and "_". This is not well documented in Hadoop but there is a private call that implements this pattern.
For dfs.size
a number of bytes; for dfs.empty
and dfs.exists
, a logical; for dfs.ls
a data.frame
dfs.empty(mapreduce(to.dfs(1:10))) dfs.size(mapreduce(to.dfs(1:10)))