Hive配置永久显示表字段名并且不显示表名

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即可生效配置

原文地址:https://www.cnblogs.com/QuestionsZhang/p/9796404.html