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

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

 

 

相关文章:

  • 2022-02-01
  • 2021-08-13
  • 2022-12-23
  • 2021-10-05
  • 2021-10-19
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-21
  • 2021-10-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-12
相关资源
相似解决方案