#!/bin/sh home=$(cd `dirname $0`;cd ..; pwd) .${home}/bin/common.sh hdfs dfs -mkdir -p {fsimage_detail_hdfs_path} hdfs dfs -rm -r ${fsimage_detail_hdfs_path}} hadoop jar ${lib_home}/ops-fsimage-detail-2.0-release.jar \ com.djt.fsimage.detail.mrdetail.FsImageLogMR \ -Dmapreduce.job.queuename=${yarn_queue_offline} \ -DinputPath=${fsimage_org_hdfs_path} \ -DoutputPath=${fsimage_detail_hdfs_path} \ -Dday=${day} \ -DreduceCount=20 if [ "${hive_on}" == 'true' ] then hive -e "alter table xunshan.dwd_fsimage_detail add partition (day=${day},cluster='${cluster}') location '${fsimage_detail_hdfs_path}}'"
hive.query.string
hive.current.database