hdfs dfs test 命令
Posted PeersLee
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了hdfs dfs test 命令相关的知识,希望对你有一定的参考价值。
test
Usage: hadoop fs -test -[defswrz] URI
Options:
-d: if the path is a directory, return 0.
-e: if the path exists, return 0.
-f: if the path is a file, return 0.
-s: if the path is not empty, return 0.
-w: if the path exists and write permission is granted, return 0.
-r: if the path exists and read permission is granted, return 0.
-z: if the file is zero length, return 0.
Example:
hadoop fs -test -e filename
以上是关于hdfs dfs test 命令的主要内容,如果未能解决你的问题,请参考以下文章