参考:https://stackoverflow.com/questions/12464636/how-to-set-variables-in-hive-scripts
hive> set CURRENT_DATE='2012-09-16'; hive> select * from foo where day >= ${hiveconf:CURRENT_DATE}