天天看點

hive 配置查詢背景資訊顯示

hive 配置查詢背景資訊顯示

問題情況是現在我切換資料庫 還是顯示hive ,感覺體驗不好, 我可以添加一下配置實作

修改 /root/soft/hive-1.2.1/conf 的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>      
[root@zjj101 conf]# hive

Logging initialized using configuration in jar:file:/root/soft/hive-1.2.1/lib/hive-common-1.2.1.jar!/hive-log4j.properties