1 配置文件 hive/conf下hive-site.xml
/mnt/software/hive-1.1.0-cdh5.7.0/conf
2 添加配置項
<!--不顯示表名-->
<property>
<name>hive.resultset.use.unique.column.names</name>
<value>false</value>
</property>
<!--顯示字段名-->
<property>
<name>hive.cli.print.header</name>
<value>true</value>
</property>
重新啟動hive即可生效配置