热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

Ambari调整日志级别:HowtoenabledebuglogginginAmbariServerandAmbariAgent?

PURPOSEWhentroubleshootingAmbariissues,itmaybenecessarytoenabledebugloggingi
PURPOSE

When troubleshooting Ambari issues, it may be necessary to enable debug logging in the Ambari Server log /var/log/ambari-server/.

PROCEDURE

To enable debug logging in Ambari server follow the following steps:
 

1. Open the relevant configuration file in a UNIX text editor:

  • Ambari Server Log Configuration: /etc/ambari-server/conf/log4j.properties

2. Locate the entry "log4j.rootLogger":

[root@hawq20 conf]# grep rootLogger /etc/ambari-server/conf/log4j.properties
log4j.rootLogger=INFO,file
[root@hawq20 conf]# 

3. Replace "INFO" with "DEBUG":

[root@hawq20 conf]# grep rootLogger /etc/ambari-server/conf/log4j.properties
log4j.rootLogger=DEBUG,file
[root@hawq20 conf]#

4. Save the configuration file and close it.


5. Restart the Ambari server:

ambari-server restart

Note:

  1. The Ambari server logging level will only change on one host and will not affect other hosts in the cluster.
  2. The debug logging can be very verbose, available disk space should be checked before enabling debug logging and debug logging should be disabled as soon as troubleshooting is complete. 

 

 

PURPOSE

When troubleshooting Ambari issues, it may be necessary to enable debug logging in the Ambari Agent log /var/log/ambari-agent/.

 

[root@hawq20 conf]#
 

4. Save the configuration file and close it.

5. Restart Ambari agent:

ambari-agent restart
 

NOTE: Ambari agent logging level will only change on one host and will not affect the other hosts in the cluster.


推荐阅读
author-avatar
antefigure850_495
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有