首页 > 其他 > 详细

hive命令查询数据不显示表头解决办法

时间:2019-07-02 20:20:25      阅读:352      评论:0      收藏:0      [点我收藏+]

在hive命令行中查询数据如下:

技术分享图片

表头未显示出来

解决办法:

修改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命令查询数据不显示表头解决办法

原文:https://www.cnblogs.com/dcx-1993/p/11122482.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!