附加配置相关

1.显示头部信息,hive-site.xml

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

2.运行日志配置

  • hive的log默认存放在/tmp/root/hive.log目录下(当前用户名下)
  • 修改log存放到指定目录,修改hive-log4j.properties
hive.log.dir=/..../hive/logs

3.参数的配置形式

  • 配置文件配置
  • 命令行参数方式
 ./hive   -hiveconf param=value;
  • 查看(修改)参数配置
hive> set param(=value);
原文地址:https://www.cnblogs.com/zqzhen/p/12901645.html