Commit d35048e7 by WangJinfeng

调整挂载分区

parent 92af9928
......@@ -25,6 +25,8 @@ check_await "${INPUT_PATH}/_SUCCESS"
OUTPUT="${DMP_INSTALL_LIST}/${year}/${month}/${day}/${business}"
mount_partition "dmp_install_list" "dt='$LOG_TIME', business='$business'" "$OUTPUT"
expire_date=$(date +%Y%m%d -d "-4 day $LOG_TIME")
expire_date_path=$(date +"%Y/%m/%d" -d "-4 day ${LOG_TIME}")
EXPIRE_OUTPUT_PATH="${DMP_INSTALL_LIST}/${expire_date_path}/${business}"
......@@ -45,7 +47,5 @@ if [[ $? -ne 0 ]];then
exit 255
fi
mount_partition "dmp_install_list" "dt='$LOG_TIME', business='$business'" "$OUTPUT"
# 删除过期的分区及删除对应路径
unmount_partition "dmp_install_list" "dt='${expire_date}', business='${business}'" "${EXPIRE_OUTPUT_PATH}"
\ No newline at end of file
......@@ -25,6 +25,8 @@ check_await "${INPUT_PATH}/_SUCCESS"
OUTPUT="${DMP_INSTALL_LIST}/${year}/${month}/${day}/${business}"
mount_partition "dmp_install_list" "dt='$LOG_TIME', business='$business'" "$OUTPUT"
expire_date=$(date +%Y%m%d -d "-4 day $LOG_TIME")
expire_date_path=$(date +"%Y/%m/%d" -d "-4 day ${LOG_TIME}")
EXPIRE_OUTPUT_PATH="${DMP_INSTALL_LIST}/${expire_date_path}/${business}"
......@@ -45,7 +47,5 @@ if [[ $? -ne 0 ]];then
exit 255
fi
mount_partition "dmp_install_list" "dt='$LOG_TIME', business='$business'" "$OUTPUT"
# 删除过期的分区及删除对应路径
unmount_partition "dmp_install_list" "dt='${expire_date}', business='${business}'" "${EXPIRE_OUTPUT_PATH}"
\ No newline at end of file
......@@ -23,6 +23,8 @@ check_await "${INPUT_PATH}/_SUCCESS"
OUTPUT="${DMP_INSTALL_LIST}/${year}/${month}/${day}/${business}"
mount_partition "dmp_install_list" "dt='$LOG_TIME', business='$business'" "$OUTPUT"
expire_date=$(date +%Y%m%d -d "-4 day $LOG_TIME")
expire_date_path=$(date +"%Y/%m/%d" -d "-4 day ${LOG_TIME}")
EXPIRE_OUTPUT_PATH="${DMP_INSTALL_LIST}/${expire_date_path}/${business}"
......@@ -39,7 +41,5 @@ if [[ $? -ne 0 ]];then
exit 255
fi
mount_partition "dmp_install_list" "dt='$LOG_TIME', business='$business'" "$OUTPUT"
# 删除过期的分区及删除对应路径
unmount_partition "dmp_install_list" "dt='${expire_date}', business='${business}'" "${EXPIRE_OUTPUT_PATH}"
\ No newline at end of file
......@@ -23,6 +23,8 @@ check_await "${INPUT_PATH}/_SUCCESS"
OUTPUT="${DMP_INSTALL_LIST}/${year}/${month}/${day}/${business}"
mount_partition "dmp_install_list" "dt='$LOG_TIME', business='$business'" "$OUTPUT"
expire_date=$(date +%Y%m%d -d "-4 day $LOG_TIME")
expire_date_path=$(date +"%Y/%m/%d" -d "-4 day ${LOG_TIME}")
EXPIRE_OUTPUT_PATH="${DMP_INSTALL_LIST}/${expire_date_path}/${business}"
......@@ -39,7 +41,5 @@ if [[ $? -ne 0 ]];then
exit 255
fi
mount_partition "dmp_install_list" "dt='$LOG_TIME', business='$business'" "$OUTPUT"
# 删除过期的分区及删除对应路径
unmount_partition "dmp_install_list" "dt='${expire_date}', business='${business}'" "${EXPIRE_OUTPUT_PATH}"
\ No newline at end of file
......@@ -23,6 +23,8 @@ check_await "${INPUT_PATH}/_SUCCESS"
OUTPUT="${DMP_INSTALL_LIST}/${year}/${month}/${day}/${business}"
mount_partition "dmp_install_list" "dt='$LOG_TIME', business='$business'" "$OUTPUT"
expire_date=$(date +%Y%m%d -d "-4 day $LOG_TIME")
expire_date_path=$(date +"%Y/%m/%d" -d "-4 day ${LOG_TIME}")
EXPIRE_OUTPUT_PATH="${DMP_INSTALL_LIST}/${expire_date_path}/${business}"
......@@ -40,7 +42,5 @@ if [[ $? -ne 0 ]];then
exit 255
fi
mount_partition "dmp_install_list" "dt='$LOG_TIME', business='$business'" "$OUTPUT"
# 删除过期的分区及删除对应路径
unmount_partition "dmp_install_list" "dt='${expire_date}', business='${business}'" "${EXPIRE_OUTPUT_PATH}"
\ No newline at end of file
......@@ -20,6 +20,8 @@ sleep 60
OUTPUT="${DMP_INSTALL_LIST}/${year}/${month}/${day}/${business}"
mount_partition "dmp_install_list" "dt='$LOG_TIME', business='$business'" "$OUTPUT"
expire_date=$(date +%Y%m%d -d "-4 day $LOG_TIME")
expire_date_path=$(date +"%Y/%m/%d" -d "-4 day ${LOG_TIME}")
EXPIRE_OUTPUT_PATH="${DMP_INSTALL_LIST}/${expire_date_path}/${business}"
......@@ -37,7 +39,5 @@ if [[ $? -ne 0 ]];then
exit 255
fi
mount_partition "dmp_install_list" "dt='$LOG_TIME', business='$business'" "$OUTPUT"
# 删除过期的分区及删除对应路径
unmount_partition "dmp_install_list" "dt='${expire_date}', business='${business}'" "${EXPIRE_OUTPUT_PATH}"
\ No newline at end of file
......@@ -23,6 +23,8 @@ check_await "${INPUT_PATH}/_SUCCESS"
OUTPUT="${DMP_INSTALL_LIST}/${year}/${month}/${day}/${business}"
mount_partition "dmp_install_list" "dt='$LOG_TIME', business='$business'" "$OUTPUT"
expire_date=$(date +%Y%m%d -d "-4 day $LOG_TIME")
expire_date_path=$(date +"%Y/%m/%d" -d "-4 day ${LOG_TIME}")
EXPIRE_OUTPUT_PATH="${DMP_INSTALL_LIST}/${expire_date_path}/${business}"
......@@ -40,7 +42,5 @@ if [[ $? -ne 0 ]];then
exit 255
fi
mount_partition "dmp_install_list" "dt='$LOG_TIME', business='$business'" "$OUTPUT"
# 删除过期的分区及删除对应路径
unmount_partition "dmp_install_list" "dt='${expire_date}', business='${business}'" "${EXPIRE_OUTPUT_PATH}"
\ No newline at end of file
......@@ -23,6 +23,8 @@ check_await "${INPUT_PATH}/_SUCCESS"
OUTPUT="${DMP_INSTALL_LIST}/${year}/${month}/${day}/${business}"
mount_partition "dmp_install_list" "dt='$LOG_TIME', business='$business'" "$OUTPUT"
expire_date=$(date +%Y%m%d -d "-4 day $LOG_TIME")
expire_date_path=$(date +"%Y/%m/%d" -d "-4 day ${LOG_TIME}")
EXPIRE_OUTPUT_PATH="${DMP_INSTALL_LIST}/${expire_date_path}/${business}"
......@@ -40,7 +42,5 @@ if [[ $? -ne 0 ]];then
exit 255
fi
mount_partition "dmp_install_list" "dt='$LOG_TIME', business='$business'" "$OUTPUT"
# 删除过期的分区及删除对应路径
unmount_partition "dmp_install_list" "dt='${expire_date}', business='${business}'" "${EXPIRE_OUTPUT_PATH}"
\ No newline at end of file
......@@ -24,6 +24,8 @@ check_await "${INPUT_PATH}/_SUCCESS"
OUTPUT="${DMP_INSTALL_LIST}/${year}/${month}/${day}/${business}"
mount_partition "dmp_install_list" "dt='$LOG_TIME', business='$business'" "$OUTPUT"
expire_date=$(date +%Y%m%d -d "-4 day $LOG_TIME")
expire_date_path=$(date +"%Y/%m/%d" -d "-4 day ${LOG_TIME}")
EXPIRE_OUTPUT_PATH="${DMP_INSTALL_LIST}/${expire_date_path}/${business}"
......@@ -41,7 +43,5 @@ if [[ $? -ne 0 ]];then
exit 255
fi
mount_partition "dmp_install_list" "dt='$LOG_TIME', business='$business'" "$OUTPUT"
# 删除过期的分区及删除对应路径
unmount_partition "dmp_install_list" "dt='${expire_date}', business='${business}'" "${EXPIRE_OUTPUT_PATH}"
\ No newline at end of file
......@@ -25,6 +25,8 @@ check_await "${INPUT_PATH}/_SUCCESS"
OUTPUT="${DMP_INSTALL_LIST}/${year}/${month}/${day}/${business}"
mount_partition "dmp_install_list" "dt='$LOG_TIME', business='$business'" "$OUTPUT"
expire_date=$(date +%Y%m%d -d "-4 day $LOG_TIME")
expire_date_path=$(date +"%Y/%m/%d" -d "-4 day ${LOG_TIME}")
EXPIRE_OUTPUT_PATH="${DMP_INSTALL_LIST}/${expire_date_path}/${business}"
......@@ -42,7 +44,5 @@ if [[ $? -ne 0 ]];then
exit 255
fi
mount_partition "dmp_install_list" "dt='$LOG_TIME', business='$business'" "$OUTPUT"
# 删除过期的分区及删除对应路径
unmount_partition "dmp_install_list" "dt='${expire_date}', business='${business}'" "${EXPIRE_OUTPUT_PATH}"
\ No newline at end of file
......@@ -24,6 +24,8 @@ check_await "${INPUT_PATH}/_SUCCESS"
OUTPUT="${DMP_INSTALL_LIST}/${year}/${month}/${day}/${business}"
mount_partition "dmp_install_list" "dt='$LOG_TIME', business='$business'" "$OUTPUT"
expire_date=$(date +%Y%m%d -d "-4 day $LOG_TIME")
expire_date_path=$(date +"%Y/%m/%d" -d "-4 day ${LOG_TIME}")
EXPIRE_OUTPUT_PATH="${DMP_INSTALL_LIST}/${expire_date_path}/${business}"
......@@ -41,7 +43,5 @@ if [[ $? -ne 0 ]];then
exit 255
fi
mount_partition "dmp_install_list" "dt='$LOG_TIME', business='$business'" "$OUTPUT"
# 删除过期的分区及删除对应路径
unmount_partition "dmp_install_list" "dt='${expire_date}', business='${business}'" "${EXPIRE_OUTPUT_PATH}"
\ No newline at end of file
......@@ -17,6 +17,8 @@ check_await ${INPUT}/_SUCCESS
OUTPUT="${DMP_INSTALL_LIST}/${date_path}/${BUSINESS}"
mount_partition "dmp_install_list" "dt='$LOG_TIME', business='$business'" "$OUTPUT"
expire_date=$(date +%Y%m%d -d "-4 day $LOG_TIME")
expire_date_path=$(date +"%Y/%m/%d" -d "-4 day ${LOG_TIME}")
EXPIRE_OUTPUT_PATH="${DMP_INSTALL_LIST}/${expire_date_path}/${BUSINESS}"
......@@ -34,7 +36,5 @@ if [[ $? -ne 0 ]];then
exit 255
fi
mount_partition "dmp_install_list" "dt='$LOG_TIME', business='$BUSINESS'" "$OUTPUT"
# 删除过期的分区及删除对应路径
unmount_partition "dmp_install_list" "dt='${expire_date}', business='${BUSINESS}'" "${EXPIRE_OUTPUT_PATH}"
\ No newline at end of file
......@@ -45,6 +45,8 @@ BUSINESS="day"
OUTPUT_PATH="${DMP_INSTALL_LIST}/${date_path}/${BUSINESS}"
mount_partition "dmp_install_list" "dt='$date', business='$BUSINESS'" "$OUTPUT_PATH"
expire_date=$(date +%Y%m%d -d "-4 day $LOG_TIME")
expire_date_path=$(date +"%Y/%m/%d" -d "-4 day ${LOG_TIME}")
EXPIRE_OUTPUT_PATH="${DMP_INSTALL_LIST}/${expire_date_path}/${BUSINESS}"
......@@ -67,7 +69,5 @@ if [[ $? -ne 0 ]]; then
exit 255
fi
mount_partition "dmp_install_list" "dt='${date}', business='${BUSINESS}'" "$OUTPUT_PATH"
# 删除过期的分区及删除对应路径
unmount_partition "dmp_install_list" "dt='${expire_date}', business='${BUSINESS}'" "${EXPIRE_OUTPUT_PATH}"
\ No newline at end of file
......@@ -43,6 +43,8 @@ BUSINESS="14days"
OUTPUT_PATH="${DMP_INSTALL_LIST}/${date_path}/${BUSINESS}"
mount_partition "dmp_install_list" "dt='$date', business='$BUSINESS'" "$OUTPUT_PATH"
expire_date=$(date +%Y%m%d -d "-4 day $LOG_TIME")
expire_date_path=$(date +"%Y/%m/%d" -d "-4 day ${LOG_TIME}")
EXPIRE_OUTPUT_PATH="${DMP_INSTALL_LIST}/${expire_date_path}/${BUSINESS}"
......@@ -67,7 +69,5 @@ if [[ $? -ne 0 ]]; then
exit 255
fi
mount_partition "dmp_install_list" "dt='${date}', business='${BUSINESS}'" "$OUTPUT_PATH"
# 删除过期的分区及删除对应路径
unmount_partition "dmp_install_list" "dt='${expire_date}', business='${BUSINESS}'" "${EXPIRE_OUTPUT_PATH}"
\ No newline at end of file
......@@ -25,6 +25,8 @@ check_await ${ALL_INSTALL_LIST_PATH}/_SUCCESS
OUTPUT_PATH="${DMP_INSTALL_LIST}/${date_path}/${BUSINESS}"
mount_partition "dmp_install_list" "dt='${date}', business='${BUSINESS}'" "$OUTPUT_PATH"
expire_date=$(date +%Y%m%d -d "-4 day $LOG_TIME")
expire_date_path=$(date +"%Y/%m/%d" -d "-4 day ${LOG_TIME}")
EXPIRE_OUTPUT_PATH="${DMP_INSTALL_LIST}/${expire_date_path}/${BUSINESS}"
......@@ -48,7 +50,5 @@ if [[ $? -ne 0 ]]; then
exit 255
fi
mount_partition "dmp_install_list" "dt='${date}', business='${BUSINESS}'" "$OUTPUT_PATH"
# 删除过期的分区及删除对应路径
unmount_partition "dmp_install_list" "dt='${expire_date}', business='${BUSINESS}'" "${EXPIRE_OUTPUT_PATH}"
\ No newline at end of file
......@@ -19,6 +19,8 @@ check_await "${INPUT_PATH}/_SUCCESS"
OUTPUT="${DMP_INSTALL_LIST}/${year}/${month}/${day}/${business}"
mount_partition "dmp_install_list" "dt='$LOG_TIME', business='$business'" "$OUTPUT"
expire_date=$(date +%Y%m%d -d "-4 day $LOG_TIME")
expire_date_path=$(date +"%Y/%m/%d" -d "-4 day ${LOG_TIME}")
EXPIRE_OUTPUT_PATH="${DMP_INSTALL_LIST}/${expire_date_path}/${business}"
......@@ -36,7 +38,5 @@ if [[ $? -ne 0 ]];then
exit 255
fi
mount_partition "dmp_install_list" "dt='$LOG_TIME', business='$business'" "$OUTPUT"
# 删除过期的分区及删除对应路径
unmount_partition "dmp_install_list" "dt='${expire_date}', business='${business}'" "${EXPIRE_OUTPUT_PATH}"
\ No newline at end of file
......@@ -961,6 +961,8 @@ installListJob() {
OUTPUT="${DMP_INSTALL_LIST}/${date_path}/${business}"
mount_partition "dmp_install_list" "dt='$LOG_TIME', business='$business'" "$OUTPUT"
expire_date=$(date +%Y%m%d -d "-4 day $LOG_TIME")
expire_date_path=$(date +"%Y/%m/%d" -d "-4 day ${LOG_TIME}")
EXPIRE_OUTPUT_PATH="${DMP_INSTALL_LIST}/${expire_date_path}/${business}"
......@@ -977,8 +979,6 @@ installListJob() {
exit 255
fi
mount_partition "dmp_install_list" "dt='$LOG_TIME', business='$business'" "$OUTPUT"
# 删除过期的分区及删除对应路径
unmount_partition "dmp_install_list" "dt='${expire_date}', business='${business}'" "${EXPIRE_OUTPUT_PATH}"
}
......
......@@ -24,6 +24,8 @@ check_await "${INPUT_PATH}/_SUCCESS"
OUTPUT="${DMP_INSTALL_LIST}/${year}/${month}/${day}/${business}"
mount_partition "dmp_install_list" "dt='$LOG_TIME', business='$business'" "$OUTPUT"
expire_date=$(date +%Y%m%d -d "-4 day $LOG_TIME")
expire_date_path=$(date +"%Y/%m/%d" -d "-4 day ${LOG_TIME}")
EXPIRE_OUTPUT_PATH="${DMP_INSTALL_LIST}/${expire_date_path}/${business}"
......@@ -43,7 +45,5 @@ if [[ $? -ne 0 ]];then
exit 255
fi
mount_partition "dmp_install_list" "dt='$LOG_TIME', business='$business'" "$OUTPUT"
# 删除过期的分区及删除对应路径
unmount_partition "dmp_install_list" "dt='${expire_date}', business='${business}'" "${EXPIRE_OUTPUT_PATH}"
\ No newline at end of file
......@@ -25,6 +25,8 @@ sleep 20
OUTPUT="${DMP_INSTALL_LIST}/${year}/${month}/${day}/${business}"
mount_partition "dmp_install_list" "dt='$LOG_TIME', business='$business'" "$OUTPUT"
expire_date=$(date +%Y%m%d -d "-4 day $LOG_TIME")
expire_date_path=$(date +"%Y/%m/%d" -d "-4 day ${LOG_TIME}")
EXPIRE_OUTPUT_PATH="${DMP_INSTALL_LIST}/${expire_date_path}/${business}"
......@@ -46,7 +48,5 @@ if [[ $? -ne 0 ]];then
exit 255
fi
mount_partition "dmp_install_list" "dt='$LOG_TIME', business='$business'" "$OUTPUT"
# 删除过期的分区及删除对应路径
unmount_partition "dmp_install_list" "dt='${expire_date}', business='${business}'" "${EXPIRE_OUTPUT_PATH}"
\ No newline at end of file
......@@ -24,6 +24,8 @@ check_await "${INPUT_PATH}/_SUCCESS"
OUTPUT="${DMP_INSTALL_LIST}/${year}/${month}/${day}/${business}"
mount_partition "dmp_install_list" "dt='$LOG_TIME', business='$business'" "$OUTPUT"
expire_date=$(date +%Y%m%d -d "-4 day $LOG_TIME")
expire_date_path=$(date +"%Y/%m/%d" -d "-4 day ${LOG_TIME}")
EXPIRE_OUTPUT_PATH="${DMP_INSTALL_LIST}/${expire_date_path}/${business}"
......@@ -41,7 +43,5 @@ if [[ $? -ne 0 ]];then
exit 255
fi
mount_partition "dmp_install_list" "dt='$LOG_TIME', business='$business'" "$OUTPUT"
# 删除过期的分区及删除对应路径
unmount_partition "dmp_install_list" "dt='${expire_date}', business='${business}'" "${EXPIRE_OUTPUT_PATH}"
\ No newline at end of file
......@@ -24,6 +24,8 @@ check_await "${INPUT_PATH}/_SUCCESS"
OUTPUT="${DMP_INSTALL_LIST}/${year}/${month}/${day}/${business}"
mount_partition "dmp_install_list" "dt='$LOG_TIME', business='$business'" "$OUTPUT"
expire_date=$(date +%Y%m%d -d "-4 day $LOG_TIME")
expire_date_path=$(date +"%Y/%m/%d" -d "-4 day ${LOG_TIME}")
EXPIRE_OUTPUT_PATH="${DMP_INSTALL_LIST}/${expire_date_path}/${business}"
......@@ -42,7 +44,5 @@ if [[ $? -ne 0 ]];then
exit 255
fi
mount_partition "dmp_install_list" "dt='$LOG_TIME', business='$business'" "$OUTPUT"
# 删除过期的分区及删除对应路径
unmount_partition "dmp_install_list" "dt='${expire_date}', business='${business}'" "${EXPIRE_OUTPUT_PATH}"
\ No newline at end of file
......@@ -19,6 +19,8 @@ check_await "${INPUT_PATH}/_SUCCESS"
OUTPUT="${DMP_INSTALL_LIST}/${date_path}/${business}"
mount_partition "dmp_install_list" "dt='$LOG_TIME', business='$business'" "$OUTPUT"
expire_date=$(date +%Y%m%d -d "-4 day $LOG_TIME")
expire_date_path=$(date +"%Y/%m/%d" -d "-4 day ${LOG_TIME}")
EXPIRE_OUTPUT_PATH="${DMP_INSTALL_LIST}/${expire_date_path}/${business}"
......@@ -36,7 +38,5 @@ if [[ $? -ne 0 ]];then
exit 255
fi
mount_partition "dmp_install_list" "dt='$LOG_TIME', business='$business'" "$OUTPUT"
# 删除过期的分区及删除对应路径
unmount_partition "dmp_install_list" "dt='${expire_date}', business='${business}'" "${EXPIRE_OUTPUT_PATH}"
\ No newline at end of file
......@@ -24,6 +24,8 @@ check_await "${INPUT_PATH}/_SUCCESS"
OUTPUT="${DMP_INSTALL_LIST}/${year}/${month}/${day}/${business}"
mount_partition "dmp_install_list" "dt='$LOG_TIME', business='$business'" "$OUTPUT"
expire_date=$(date +%Y%m%d -d "-4 day $LOG_TIME")
expire_date_path=$(date +"%Y/%m/%d" -d "-4 day ${LOG_TIME}")
EXPIRE_OUTPUT_PATH="${DMP_INSTALL_LIST}/${expire_date_path}/${business}"
......@@ -41,7 +43,5 @@ if [[ $? -ne 0 ]];then
exit 255
fi
mount_partition "dmp_install_list" "dt='$LOG_TIME', business='$business'" "$OUTPUT"
# 删除过期的分区及删除对应路径
unmount_partition "dmp_install_list" "dt='${expire_date}', business='${business}'" "${EXPIRE_OUTPUT_PATH}"
\ No newline at end of file
......@@ -24,6 +24,8 @@ check_await "${INPUT_PATH}/_SUCCESS"
OUTPUT="${DMP_INSTALL_LIST}/${year}/${month}/${day}/${business}"
mount_partition "dmp_install_list" "dt='$LOG_TIME', business='$business'" "$OUTPUT"
expire_date=$(date +%Y%m%d -d "-4 day $LOG_TIME")
expire_date_path=$(date +"%Y/%m/%d" -d "-4 day ${LOG_TIME}")
EXPIRE_OUTPUT_PATH="${DMP_INSTALL_LIST}/${expire_date_path}/${business}"
......@@ -41,7 +43,5 @@ if [[ $? -ne 0 ]];then
exit 255
fi
mount_partition "dmp_install_list" "dt='$LOG_TIME', business='$business'" "$OUTPUT"
# 删除过期的分区及删除对应路径
unmount_partition "dmp_install_list" "dt='${expire_date}', business='${business}'" "${EXPIRE_OUTPUT_PATH}"
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment