-- 显示前 7 个分区
hive -e "set hive.cli.print.header=false;show partitions XXX.XXX;" | head-10
-- 显示后 9 个分区
hive -e "set hive.cli.print.header=false;show partitions XXX.XXX;" | tail -10
-- hiveconf
hive --hiveconf hive.cli.print.current.db=true --hiveconf hive.cli.print.header=true