`

hadoop fs命令详解链接

阅读更多

 

 

 

http://hadoop.apache.org/docs/r1.0.4/cn/hdfs_shell.html#test

 

 

eg:

 

test

使用方法:hadoop fs -test -[ezd] URI

选项:
-e 检查文件是否存在。如果存在则返回0。
-z 检查文件是否是0字节。如果是则返回0。 
-d 如果路径是个目录,则返回1,否则返回0。

示例:

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics