hive里面显示列名配置

当select * from xxx,不能显示列名的时候,可以到hive-site.xml里面添加

<property>
<name>hive.cli.print.current.db</name>
<value>true</value>
</property>
<property>
<name>hive.cli.print.header</name>
<value>true</value>
</property>

或者进入hive之后 

– set hive.cli.print.current.db=true;
– set hive.cli.print.header=true;

猜你喜欢

转载自blog.csdn.net/lbship/article/details/83792073