Converts an HDFS path name to an R dfs.id object.
A string or text expression that resolves to an HDFS file name.
Set to TRUE if the file need not exist, or set to FALSE to ensure that the file does exist.
TRUE if the string matches an HDFS file name, or NULL if a file by that name is not found
This example creates a dfs.id object for /user/oracle/demo:
R> hdfs.id('/user/oracle/demo')
[1] "user/oracle/demo"
attr(,"dfs.id")
[1] TRUE
The next example creates a dfs.id object named id for a nonexistent directory named /user/oracle/newdemo, after first failing:
R> id<-hdfs.id('/user/oracle/newdemo') DBG: 16:11:38 [ER] "/user/oracle/newdemo" is not found R> id<-hdfs.id('/user/oracle/newdemo', force=T) R> id [1] "user/oracle/newdemo" attr(,"dfs.id") [1] TRUE