#!/bin/bash
###################################
# code review [email protected] 20170504
# System Name : 大数据智慧分析平台
# Author : heguoxiu
# Description : 浏览器使用情况
##################################
#引用公共变量配置文件
source /parse/opt/shell/public/public_time.cfg
#赋值hive目标表到变量
v_name="fact_bi_browser_t"
echo "###开始计算${v_name}: `date +"%Y-%m-%d %H:%M:%S"`"
sudo -u hive hive -hivevar year=${year} -hivevar month=${month} -hivevar day=${day} -hivevar v_fm_tm=${v_fm_tm} -hivevar v_to_tm=${v_to_tm} -f "${parse_path}/p_${v_name}.sql" &&
echo "###计算结束${v_name}: `date +"%Y-%m-%d %H:%M:%S"`"
sh "${export_path}"/export_${v_name}_job.sh &
原文地址:https://www.cnblogs.com/heguoxiu/p/10120627.html
时间: 2024-10-01 20:44:08