设置 当前库 和 表头
如果我们不设置库和表头,显示出来的效果是这样的
在hive-site.xml中设置显示库和表头,添加
<property>
<name>hive.cli.print.header</name>
<value>true</value>
</property>
<property>
<name>hive.cli.print.current.db</name>
<value>true</value>
</property>
也可以通过set 或者hive --hiveconf 设置为一次性的
set hive.cli.print.header=false;
set hive.cli.print.current.db=false;
## 或者
hive --hiveconf hive.cli.print.header=false;
hive --hive.cli.print.current.db=false;