Hive:运行日志信息配置

Hive运行日志信息配置

1.Hive的log默认存放路径:/tmp/atguigu/hive.log(当前用户名下)

2.修改hive的log存放路径:到/opt/module/hive/logs
① 修改conf目录下hive-log4j2.properties.template文件名称为hive-log4j2.properties
[atguigu@hadoop102 hive]$ mv conf/hive-log4j2.properties.template conf/hive-log4j2.properties

② 在hive-log4j.properties文件中修改log存放位置
[atguigu@hadoop102 hive]$ vim conf/hive-log4j2.properties
property.hive.log.dir=/opt/module/hive/logs

3)再次启动hive,观察目录/opt/module/hive/logs下是否产生日志

猜你喜欢

转载自blog.csdn.net/weixin_45427648/article/details/131839013