hdfs openforwrite 租约释放linux命令

 

hadoop fsck /data/files/ods/pt_date=20191223 -openforwrite | egrep -v '^\.+$' | egrep "MISSING|OPENFORWRITE" | grep -o "/[^ ]*" | sed -e "s/:$//" | xargs -i hadoop fs -rmr {};

你可能感兴趣的:(hadoop,hadoop)