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

 

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

 

 

配置已生效

 

 

.

posted @ 2019-04-27 18:04  诚信天下  阅读(2238)  评论(0编辑  收藏  举报