hive command to query the data does not display the header solution

In the hive the command line to query the data as follows:

Header is not shown

Solution:

Modify hive installation package conf / hive-site.xml profile:

<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>

 Again query is as follows:

 

 

Guess you like

Origin www.cnblogs.com/dcx-1993/p/11122482.html