Uploaded image for project: 'Hadoop Distributed Data Store'
  1. Hadoop Distributed Data Store
  2. HDDS-2217

Remove log4j and audit configuration from the docker-config files

    XMLWordPrintableJSON

    Details

    • Target Version/s:

      Description

      Log4j configuration lines are added to the docker-config under hadoop-ozone/dist/src/main/compose/...

      Mainly to make it easier to reconfigure the log level of any components.

      As we already have a "ozone insight" tool which can help us to modify the log level at runtime we don't need these lines any more.

      
      LOG4J.PROPERTIES_log4j.rootLogger=INFO, stdout
      LOG4J.PROPERTIES_log4j.appender.stdout=org.apache.log4j.ConsoleAppender
      LOG4J.PROPERTIES_log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
      LOG4J.PROPERTIES_log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
      LOG4J.PROPERTIES_log4j.logger.org.apache.hadoop.util.NativeCodeLoader=ERROR
      LOG4J.PROPERTIES_log4j.logger.org.apache.ratis.conf.ConfUtils=WARN
      LOG4J.PROPERTIES_log4j.logger.org.apache.hadoop.security.ShellBasedUnixGroupsMapping=ERROR
      LOG4J.PROPERTIES_log4j.logger.org.apache.ratis.grpc.client.GrpcClientProtocolClient=WARN
      LOG4J.PROPERTIES_log4j.logger.http.requests.s3gateway=INFO,s3gatewayrequestlog
      LOG4J.PROPERTIES_log4j.appender.s3gatewayrequestlog=org.apache.hadoop.http.HttpRequestLogAppender
      LOG4J.PROPERTIES_log4j.appender.s3gatewayrequestlog.Filename=/tmp/jetty-s3gateway-yyyy_mm_dd.log
      LOG4J.PROPERTIES_log4j.appender.s3gatewayrequestlog.RetainDays=3 

      We can remove them together with the audit log entries as we already have a default log4j.propertes / audit log4j2 config.

      After the remove the clusters should be tested: Ozone CLI should not print and confusing log messages (such as NativeLib is missing or anything else). AFAIK they are already turned off in the etc/hadoop/etc log4j.properties.

       

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                chris.teoh@gmail.com Chris Teoh
                Reporter:
                elek Marton Elek
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 4h 10m
                  4h 10m