Hadoop Common
  1. Hadoop Common
  2. HADOOP-7577

TT does not start due to backwards compatibility wrt. EventCounter

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.22.0
    • Fix Version/s: 0.22.0
    • Component/s: metrics
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Between metrics1 and mertrics2 EventCounter was moved from o.a.h.log to o.a.h.metrics.jvm.
      On 0.20-security a wrapper marked with @Deprecated was added back to o.a.h.log for compatibility, the same wrapper exists on trunk, but no on 0.22.

      Without it the TT will fail to start with a ClassNotFoundException.
      Hive configuration also point to this class in the log4j.properties.

      1. HADOOP-7577.patch
        2 kB
        Joep Rottinghuis

        Activity

        Hide
        Hudson added a comment -

        Integrated in Hadoop-Common-22-branch #72 (See https://builds.apache.org/job/Hadoop-Common-22-branch/72/)
        HADOOP-7577. Add EventCounter wrapper to provide compatibility between metrics 1 and 2. Contributed by Joep Rottinghuis.

        shv : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1163891
        Files :

        • /hadoop/common/branches/branch-0.22/common/CHANGES.txt
        • /hadoop/common/branches/branch-0.22/common/src/java/org/apache/hadoop/log/EventCounter.java
        Show
        Hudson added a comment - Integrated in Hadoop-Common-22-branch #72 (See https://builds.apache.org/job/Hadoop-Common-22-branch/72/ ) HADOOP-7577 . Add EventCounter wrapper to provide compatibility between metrics 1 and 2. Contributed by Joep Rottinghuis. shv : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1163891 Files : /hadoop/common/branches/branch-0.22/common/CHANGES.txt /hadoop/common/branches/branch-0.22/common/src/java/org/apache/hadoop/log/EventCounter.java
        Hide
        Konstantin Shvachko added a comment -

        I just committed this. Thank you Joep.

        Show
        Konstantin Shvachko added a comment - I just committed this. Thank you Joep.
        Hide
        Konstantin Shvachko added a comment -

        +1 Looks good. Could you please link the respective jira that applied the change to security branch and / or trunk.

        Show
        Konstantin Shvachko added a comment - +1 Looks good. Could you please link the respective jira that applied the change to security branch and / or trunk.
        Hide
        Joep Rottinghuis added a comment -

        Does not apply to trunk as a similar file already exists there. The file on trunk is also a wrapper, but points users to the new location used after move to metrics2.

        Show
        Joep Rottinghuis added a comment - Does not apply to trunk as a similar file already exists there. The file on trunk is also a wrapper, but points users to the new location used after move to metrics2.
        Hide
        Joep Rottinghuis added a comment -

        On trunk the new location is o.a.h.log.metrics.EventCounter, while on 0.22 the location is still the old-old o.a.h.metrics.jvm

        Show
        Joep Rottinghuis added a comment - On trunk the new location is o.a.h.log.metrics.EventCounter, while on 0.22 the location is still the old-old o.a.h.metrics.jvm
        Hide
        Joep Rottinghuis added a comment -

        Error during startup:
        log4j:ERROR Could not instantiate class [org.apache.hadoop.log.EventCounter].
        host: java.lang.ClassNotFoundException: org.apache.hadoop.log.EventCounter
        host: at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        host: at java.security.AccessController.doPrivileged(Native Method)
        host: at java.net.URLClassLoader.findClass(URLClassLoader.java:188)

        Show
        Joep Rottinghuis added a comment - Error during startup: log4j:ERROR Could not instantiate class [org.apache.hadoop.log.EventCounter] . host: java.lang.ClassNotFoundException: org.apache.hadoop.log.EventCounter host: at java.net.URLClassLoader$1.run(URLClassLoader.java:200) host: at java.security.AccessController.doPrivileged(Native Method) host: at java.net.URLClassLoader.findClass(URLClassLoader.java:188)

          People

          • Assignee:
            Joep Rottinghuis
            Reporter:
            Joep Rottinghuis
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development