1.使用外部工具连接到Linux(notpad++)
2.找到hive安装目录并且找到hive-site.xml文件
注:如果没有文件 自行创建,同时区别的xml复制一个头过来
3.找到想要的配置
查找:print
4.将以下的配置添加到hive-site.xml文件中
是否在Hive提示符中包含当前数据库
<property>
<name>hive.cli.print.current.db</name>
<value>false</value>
<description>Whether to include the current database in the Hive prompt.</description>
</property>
是否在查询输出中打印列的名称
<property>
<name>hive.cli.print.header</name>
<value>false</value>
<description>Whether to print the names of the columns in query output.</description>
</property>