In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
1. Key performance indicators chart:
2. Configure automatic cutting and rotation of running logs
Modify conf/log4j.properties
Zookeeper.log.file=zookeeper.log-run log file name
If you cut the log on a daily basis, add a line:
Log4j.appender.ROLLINGFILE=org.apache.log4j.DailyRollingFileAppender
And annotate log4j.appender.ROLLINGFILE.MaxFileSize=10MB
If you cut the log by fixed size:
Log4j.appender.ROLLINGFILE=org.apache.log4j.RollingFileAppender-add the line
Log4j.appender.ROLLINGFILE.MaxFileSize=100MB
Log4j.appender.ROLLINGFILE.MaxBackupIndex=100-- Open the comment. Leave 1 file by default if you do not open the comment
Modify bin/zkEnv.sh, comment italic lines, add blue font lines
If ["x$ {ZOO_LOG_DIR}" = "x"]
Then
-- ZOO_LOG_DIR=.
ZOO_LOG_DIR= "/ app/zookeeper-3.4.12/logs"-this directory does not need to be created in advance
Fi
If ["x$ {ZOO_LOG4J_PROP}" = "x"]
Then
-ZOO_LOG4J_PROP= "INFO,CONSOLE"
ZOO_LOG4J_PROP= "INFO,ROLLINGFILE"
Fi
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.