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

时间:2019-04-27 18:22:48   收藏:0   阅读:637

 

在 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,如下所示:

技术分享图片

 

 

配置已生效

 

 

.

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

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!