码迷,mamicode.com
首页 > 数据库 > 详细

Hive 配置显示表头和数据库信息

时间:2019-04-27 18:17:27      阅读:344      评论:0      收藏:0      [点我收藏+]

标签:col   out   site   bsp   img   name   进入   whether   配置   

 

在 conf/hive-site.xml 中添加如下配置

    <property>
        <name>hive.cli.print.header</name>
        <value>true</value>
        <description>Whether to print the names of the columns in query output.</description>
    </property>
    <property>
        <name>hive.cli.print.current.db</name>
        <value>true</value>
        <description>Whether to include the current database in the Hive prompt.</description>
    </property>

 

重新进入Hive,如下所示:

技术图片

 

 

配置已生效

 

 

.

Hive 配置显示表头和数据库信息

标签:col   out   site   bsp   img   name   进入   whether   配置   

原文地址:https://www.cnblogs.com/jonban/p/10779595.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!