hive默认配置 .hiverc

-- 切换数据库
use database_name;

-- 优化本地查询
set hive.fetch.task.conversion=more;

-- 设置hive的计算引擎为spark
set hive.execution.engine=spark;

-- 打印表头
set hive.cli.print.header=true;
set hive.cli.print.row.to.vertical=true;
set hive.cli.print.row.to.vertical.num=1;
 
-- 显示当前数据库
set hive.cli.print.current.db=true;
原文地址:https://www.cnblogs.com/chenzechao/p/9446816.html