在 conf/hive-site.xml 中添加以下配置spa
<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>
從新進入Hive,以下所示:3d
配置已生效code
.xml