Hadoop Common
  1. Hadoop Common
  2. HADOOP-8008

Document how to change the default loglevels

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: documentation
    • Labels:

      Description

      The hadoop.root.logger defined in log4j.properties is only used by applications. The scripts (bin and daemons) always set it to HADOOP_ROOT_LOGGER or "INFO,console" so the installed log4j.properties appears to be ignored. The wiki doesn't cover this:
      http://wiki.apache.org/hadoop/HowToConfigure

      We should update the cluster setup docs to indicate how the loglevel is configured and also add a comment in log4j.properties that the hadoop.root.logger defined there is not used by Hadoop itself, that HADOOP_ROOT_LOGGER must be set. This is relevant for commands and daemons, though the latter also has daemonlog (http://hadoop.apache.org/common/docs/current/commands_manual.html#daemonlog).

      1. HADOOP-8008.txt
        1 kB
        Tomohiko Kinebuchi

        Activity

        Hide
        Tomohiko Kinebuchi added a comment -

        I become the assignee, but I cannot edit the Wiki page "HowToConfigure".
        Could I have a grant to edit?

        Show
        Tomohiko Kinebuchi added a comment - I become the assignee, but I cannot edit the Wiki page "HowToConfigure". Could I have a grant to edit?
        Hide
        Eli Collins added a comment -

        Hi Tomohiko, I gave you perms to edit the wiki.

        Thanks,
        Eli

        Show
        Eli Collins added a comment - Hi Tomohiko, I gave you perms to edit the wiki. Thanks, Eli
        Hide
        Eli Collins added a comment -

        The new docs should also cover how to enable audit logging (won't be on by default after HADOOP-8316).

        Show
        Eli Collins added a comment - The new docs should also cover how to enable audit logging (won't be on by default after HADOOP-8316 ).
        Hide
        Tomohiko Kinebuchi added a comment -

        added a patch for log4j.properties.

        diff of a Wiki page is here: http://wiki.apache.org/hadoop/HowToConfigure?action=diff&rev2=17&rev1=14

        Show
        Tomohiko Kinebuchi added a comment - added a patch for log4j.properties. diff of a Wiki page is here: http://wiki.apache.org/hadoop/HowToConfigure?action=diff&rev2=17&rev1=14

          People

          • Assignee:
            Tomohiko Kinebuchi
            Reporter:
            Eli Collins
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:

              Development