2018年5月25日

摘要: 在linux文件系统中,我们可以使用下面shell脚本判断: if [ ! -f "$file" ];then echo "文件不存在" fi 同样hadoop内置了提供了判断某个文件是否存在的命令 hadoop fs -test -d 判断<path>是否是目录 -e 判断<path>是否存在 - 阅读全文

posted @ 2018-05-25 10:23 Brown羊羊 阅读(6909) 评论(0) 推荐(0)