Browse Source

feat:添加删除数据的脚本

zhaohaipeng 1 month ago
parent
commit
605803b493
1 changed files with 1 additions and 1 deletions
  1. 1 1
      recommend/23_delete_timer_file.sh

+ 1 - 1
recommend/23_delete_timer_file.sh

@@ -29,7 +29,7 @@ delete_hdfs_path() {
     do
         dir=$(echo $line | awk '{print $8}')
         modified_date=$(echo $line | awk '{print $6}')
-        echo "${line}"
+#        echo "${line}"
         if [[ "${modified_date}" < "${EARLY_DAYS_AGO}" ]]; then
             echo "Deleting: ${dir}"
 #            $HADOOP fs -rm -r -skipTrash ${dir}