Hadoop Common
  1. Hadoop Common
  2. HADOOP-7984

Add hadoop --loglevel option to change log level

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.0
    • Component/s: scripts
    • Labels:
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      It would be helpful if bin/hadoop had --loglevel option to change the log level. Currently users need to set an env variable or prefix the command (eg "HADOOP_ROOT_LOGGER=DEBUG,console hadoop distcp") which isn't very user friendly.

      1. HADOOP-7984-branch-2.3.patch
        17 kB
        Akira AJISAKA
      2. HADOOP-7984.5.patch
        17 kB
        Akira AJISAKA
      3. HADOOP-7984-branch-2.2.patch
        17 kB
        Akira AJISAKA
      4. HADOOP-7984.4.patch
        17 kB
        Akira AJISAKA
      5. HADOOP-7984-branch-2.patch
        13 kB
        Akira AJISAKA
      6. HADOOP-7984.3.patch
        16 kB
        Akira AJISAKA
      7. HADOOP-7984.patch
        17 kB
        Akira AJISAKA
      8. HADOOP-7984.patch
        4 kB
        Allen Wittenauer

        Issue Links

          Activity

          Eli Collins created issue -
          Eli Collins made changes -
          Field Original Value New Value
          Description It would be helpful if bin/hadoop have verbose and debug flags. Currently users need to set an env variable or prefix the command (eg "HADOOP_ROOT_LOGGER=DEBUG,console hadoop distcp") which isn't very user friendly. We currently log INFO by default. How about we only log ERROR and WARN by default, then -verbose triggers INFO and -debug triggers DEBUG? It would be helpful if bin/hadoop had verbose and debug flags. Currently users need to set an env variable or prefix the command (eg "HADOOP_ROOT_LOGGER=DEBUG,console hadoop distcp") which isn't very user friendly. We currently log INFO by default. How about we only log ERROR and WARN by default, then -verbose triggers INFO and -debug triggers DEBUG?
          Arun C Murthy made changes -
          Target Version/s 0.23.1 [ 12318884 ] 0.23.2 [ 12319855 ]
          Robert Joseph Evans made changes -
          Target Version/s 0.23.2 [ 12319855 ] 2.0.0, 3.0.0 [ 12320352, 12320357 ]
          Allen Wittenauer made changes -
          Assignee Allen Wittenauer [ aw ]
          Allen Wittenauer made changes -
          Link This issue is related to HADOOP-11010 [ HADOOP-11010 ]
          Allen Wittenauer made changes -
          Attachment HADOOP-7984.patch [ 12668894 ]
          Allen Wittenauer made changes -
          Hadoop Flags Incompatible change [ 10342 ]
          Allen Wittenauer made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Allen Wittenauer made changes -
          Issue Type Improvement [ 4 ] New Feature [ 2 ]
          Allen Wittenauer made changes -
          Attachment HADOOP-7984.patch [ 12668894 ]
          Allen Wittenauer made changes -
          Attachment HADOOP-7984.patch [ 12668901 ]
          Allen Wittenauer made changes -
          Link This issue is related to HADOOP-11010 [ HADOOP-11010 ]
          Allen Wittenauer made changes -
          Attachment HADOOP-7984.patch [ 12668901 ]
          Allen Wittenauer made changes -
          Attachment HADOOP-7984.patch [ 12668904 ]
          Allen Wittenauer made changes -
          Status Patch Available [ 10002 ] Open [ 1 ]
          Allen Wittenauer made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Allen Wittenauer made changes -
          Assignee Allen Wittenauer [ aw ]
          Akira AJISAKA made changes -
          Assignee Akira AJISAKA [ ajisakaa ]
          Akira AJISAKA made changes -
          Attachment HADOOP-7984.patch [ 12670934 ]
          Akira AJISAKA made changes -
          Attachment HADOOP-7984.3.patch [ 12671185 ]
          Attachment HADOOP-7984-branch-2.patch [ 12671186 ]
          Akira AJISAKA made changes -
          Hadoop Flags Incompatible change [ 10342 ]
          Summary Add hadoop command verbose and debug options Add hadoop --loglevel option to change log level
          Target Version/s 2.0.0-alpha, 3.0.0 [ 12320352, 12320357 ] 3.0.0, 2.6.0 [ 12320357, 12327179 ]
          Description It would be helpful if bin/hadoop had verbose and debug flags. Currently users need to set an env variable or prefix the command (eg "HADOOP_ROOT_LOGGER=DEBUG,console hadoop distcp") which isn't very user friendly. We currently log INFO by default. How about we only log ERROR and WARN by default, then -verbose triggers INFO and -debug triggers DEBUG? It would be helpful if bin/hadoop had --loglevel option to change the log level. Currently users need to set an env variable or prefix the command (eg "HADOOP_ROOT_LOGGER=DEBUG,console hadoop distcp") which isn't very user friendly.
          Akira AJISAKA made changes -
          Link This issue relates to HADOOP-11134 [ HADOOP-11134 ]
          Akira AJISAKA made changes -
          Attachment HADOOP-7984.4.patch [ 12672612 ]
          Allen Wittenauer made changes -
          Link This issue is required by HDFS-4427 [ HDFS-4427 ]
          Allen Wittenauer made changes -
          Status Patch Available [ 10002 ] Open [ 1 ]
          Allen Wittenauer made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Akira AJISAKA made changes -
          Attachment HADOOP-7984-branch-2.2.patch [ 12674696 ]
          Akira AJISAKA made changes -
          Attachment HADOOP-7984.5.patch [ 12681195 ]
          Akira AJISAKA made changes -
          Attachment HADOOP-7984-branch-2.3.patch [ 12681196 ]
          Akira AJISAKA made changes -
          Target Version/s 3.0.0, 2.6.0 [ 12320357, 12327179 ] 3.0.0, 2.7.0 [ 12320357, 12327583 ]
          Chris Nauroth made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Hadoop Flags Reviewed [ 10343 ]
          Fix Version/s 2.7.0 [ 12327583 ]
          Resolution Fixed [ 1 ]
          Vinod Kumar Vavilapalli made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Akira AJISAKA
              Reporter:
              Eli Collins
            • Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development