hadoop HDFS检测文件是否存在hadoop fs -test

来源:互联网 发布:115 mac会员破解版 编辑:程序博客网 时间:2024/06/13 07:47

使用

Hadoop fs -test -e XXX

然后再判断$?。如果为0则存在