Uploaded image for project: 'Chukwa'
  1. Chukwa
  2. CHUKWA-28

Add late initialization to the chukwa log4j appender

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      With the current Chukwa log4j implementation, if you define a static log4j configuration the appender is initialized at creation time.

      This may cause some problems for example with Hadoop Audit log or Metrics context, if the log4j properties are statically defined then a userX running an hadoop command will trigger a permission denied exception since the appender will try to initialize itself and therefore try to create a file under userX ownership for each appender even if not data is going to be written to it.

      The goal is to delay this initialization until the first message is actually written to that log so this kind of issue could easily be avoided.

        Attachments

        1. CHUKWA-28.patch
          7 kB
          Jerome Boulon
        2. HADOOP-5058.patch
          7 kB
          Jerome Boulon
        3. HADOOP-5058-2.patch
          7 kB
          Jerome Boulon

          Issue Links

            Activity

              People

              • Assignee:
                jboulon Jerome Boulon
                Reporter:
                jboulon Jerome Boulon
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: