在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>
再次查询如下所示: