Skip to content
This repository has been archived by the owner on Mar 7, 2022. It is now read-only.

Latest commit

 

History

History
12 lines (12 loc) · 255 Bytes

一些shell命令.md

File metadata and controls

12 lines (12 loc) · 255 Bytes
  • hadoop shell * 通配符
hadoop fs -ls "/gn_finish/*201503*"
  • hadoop shell查看文件夹下文件个数
hadoop fs -ls /gn_finish/ |grep "gn_data" | wc -l
  • hadoop shell 判断文件是否存在
hadoop fs -test -e /dir/filename