You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Joep Rottinghuis (JIRA)" <ji...@apache.org> on 2011/02/14 21:04:58 UTC

[jira] Created: (HIVE-1990) Logging fails due to moved EventCounter class in Hadoop 0.20.100

Logging fails due to moved EventCounter class in Hadoop 0.20.100
----------------------------------------------------------------

                 Key: HIVE-1990
                 URL: https://issues.apache.org/jira/browse/HIVE-1990
             Project: Hive
          Issue Type: Bug
          Components: Logging
    Affects Versions: 0.6.0
         Environment: Red Hat 2.6.18
            Reporter: Joep Rottinghuis
             Fix For: 0.6.0


When compiling Hive against Hadoop 0.20.100 logging on command line and in unit tests fails due to the EventCounter class being moved from o.a.h.metrics.jvm.EventCounter to o.a.h.log.EventCounter.
{code}
    [junit] Running org.apache.hadoop.hive.serde2.TestTCTLSeparatedProtocol 
    [junit] log4j:ERROR Could not instantiate class [org.apache.hadoop.metrics.jvm.EventCounter]. 
    [junit] java.lang.ClassNotFoundException: org.apache.hadoop.metrics.jvm.EventCounter 
    [junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:200) 
    [junit] at java.security.AccessController.doPrivileged(Native Method) 
    [junit] at java.net.URLClassLoader.findClass(URLClassLoader.java:188) 
    [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:307) 
    [junit] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) 
    [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:252) 
{code}

As a note: In order to re-produce I first applied patch as per HIVE-1264 to 0.6 branch in order to resolve jar naming issues in build.
Then I locally modified the build.properties to my locally built 0.20.100 Hadoop build:
{code}
hadoop.security.url=file:////<...>/hadoop/core/hadoop-${hadoop.version}
hadoop.security.version=${hadoop.version}
{code}

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HIVE-1990) Logging fails due to moved EventCounter class in Hadoop 0.20.100

Posted by "Joep Rottinghuis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joep Rottinghuis updated HIVE-1990:
-----------------------------------

    Attachment: hive-1990.patch

Adjust logging path to new class location.

> Logging fails due to moved EventCounter class in Hadoop 0.20.100
> ----------------------------------------------------------------
>
>                 Key: HIVE-1990
>                 URL: https://issues.apache.org/jira/browse/HIVE-1990
>             Project: Hive
>          Issue Type: Bug
>          Components: Logging
>    Affects Versions: 0.6.0
>         Environment: Red Hat 2.6.18
>            Reporter: Joep Rottinghuis
>             Fix For: 0.6.0
>
>         Attachments: hive-1990.patch
>
>
> When compiling Hive against Hadoop 0.20.100 logging on command line and in unit tests fails due to the EventCounter class being moved from o.a.h.metrics.jvm.EventCounter to o.a.h.log.EventCounter.
> {code}
>     [junit] Running org.apache.hadoop.hive.serde2.TestTCTLSeparatedProtocol 
>     [junit] log4j:ERROR Could not instantiate class [org.apache.hadoop.metrics.jvm.EventCounter]. 
>     [junit] java.lang.ClassNotFoundException: org.apache.hadoop.metrics.jvm.EventCounter 
>     [junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:200) 
>     [junit] at java.security.AccessController.doPrivileged(Native Method) 
>     [junit] at java.net.URLClassLoader.findClass(URLClassLoader.java:188) 
>     [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:307) 
>     [junit] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) 
>     [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:252) 
> {code}
> As a note: In order to re-produce I first applied patch as per HIVE-1264 to 0.6 branch in order to resolve jar naming issues in build.
> Then I locally modified the build.properties to my locally built 0.20.100 Hadoop build:
> {code}
> hadoop.security.url=file:////<...>/hadoop/core/hadoop-${hadoop.version}
> hadoop.security.version=${hadoop.version}
> {code}

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (HIVE-1990) Logging fails due to moved EventCounter class in Hadoop 0.20.100

Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carl Steinbach updated HIVE-1990:
---------------------------------

    Fix Version/s:     (was: 0.6.0)

> Logging fails due to moved EventCounter class in Hadoop 0.20.100
> ----------------------------------------------------------------
>
>                 Key: HIVE-1990
>                 URL: https://issues.apache.org/jira/browse/HIVE-1990
>             Project: Hive
>          Issue Type: Bug
>          Components: Logging
>    Affects Versions: 0.6.0
>         Environment: Red Hat 2.6.18
>            Reporter: Joep Rottinghuis
>         Attachments: hive-1990.patch
>
>
> When compiling Hive against Hadoop 0.20.100 logging on command line and in unit tests fails due to the EventCounter class being moved from o.a.h.metrics.jvm.EventCounter to o.a.h.log.EventCounter.
> {code}
>     [junit] Running org.apache.hadoop.hive.serde2.TestTCTLSeparatedProtocol 
>     [junit] log4j:ERROR Could not instantiate class [org.apache.hadoop.metrics.jvm.EventCounter]. 
>     [junit] java.lang.ClassNotFoundException: org.apache.hadoop.metrics.jvm.EventCounter 
>     [junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:200) 
>     [junit] at java.security.AccessController.doPrivileged(Native Method) 
>     [junit] at java.net.URLClassLoader.findClass(URLClassLoader.java:188) 
>     [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:307) 
>     [junit] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) 
>     [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:252) 
> {code}
> As a note: In order to re-produce I first applied patch as per HIVE-1264 to 0.6 branch in order to resolve jar naming issues in build.
> Then I locally modified the build.properties to my locally built 0.20.100 Hadoop build:
> {code}
> hadoop.security.url=file:////<...>/hadoop/core/hadoop-${hadoop.version}
> hadoop.security.version=${hadoop.version}
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Commented: (HIVE-1990) Logging fails due to moved EventCounter class in Hadoop 0.20.100

Posted by "Joep Rottinghuis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12994941#comment-12994941 ] 

Joep Rottinghuis commented on HIVE-1990:
----------------------------------------

Good point Ashutosh. This change does not seem to break unit tests, but would indeed break when running with Hadoop 0.17, 0.18, 0.29, or plain 0.20.

I see three options:
1) Leave this as a standalone for who wants to run against 0.20.100. In those cases it is unlikely that they'll ever run against the other shimmed in versions anyway. Your cluster is more likely to be either one of the other.

2) File a bug against Hadoop 0.20.100 to see if there is apetite to move Metrics back to o.a.h.metrics.jvm

3) Build in more sophistication into the build to be able to pick one config file or the other, depending on the version of Hadoop.

(options are in increasing level of effort).



> Logging fails due to moved EventCounter class in Hadoop 0.20.100
> ----------------------------------------------------------------
>
>                 Key: HIVE-1990
>                 URL: https://issues.apache.org/jira/browse/HIVE-1990
>             Project: Hive
>          Issue Type: Bug
>          Components: Logging
>    Affects Versions: 0.6.0
>         Environment: Red Hat 2.6.18
>            Reporter: Joep Rottinghuis
>             Fix For: 0.6.0
>
>         Attachments: hive-1990.patch
>
>
> When compiling Hive against Hadoop 0.20.100 logging on command line and in unit tests fails due to the EventCounter class being moved from o.a.h.metrics.jvm.EventCounter to o.a.h.log.EventCounter.
> {code}
>     [junit] Running org.apache.hadoop.hive.serde2.TestTCTLSeparatedProtocol 
>     [junit] log4j:ERROR Could not instantiate class [org.apache.hadoop.metrics.jvm.EventCounter]. 
>     [junit] java.lang.ClassNotFoundException: org.apache.hadoop.metrics.jvm.EventCounter 
>     [junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:200) 
>     [junit] at java.security.AccessController.doPrivileged(Native Method) 
>     [junit] at java.net.URLClassLoader.findClass(URLClassLoader.java:188) 
>     [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:307) 
>     [junit] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) 
>     [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:252) 
> {code}
> As a note: In order to re-produce I first applied patch as per HIVE-1264 to 0.6 branch in order to resolve jar naming issues in build.
> Then I locally modified the build.properties to my locally built 0.20.100 Hadoop build:
> {code}
> hadoop.security.url=file:////<...>/hadoop/core/hadoop-${hadoop.version}
> hadoop.security.version=${hadoop.version}
> {code}

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-1990) Logging fails due to moved EventCounter class in Hadoop 0.20.100

Posted by "Joep Rottinghuis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13087003#comment-13087003 ] 

Joep Rottinghuis commented on HIVE-1990:
----------------------------------------

With this patch we've been able to run Hive successfully in production against Hadoop 0.20-security for a while. I'll have to see if the same change is needed to make Hive run against Hadoop 0.22 as well.

> Logging fails due to moved EventCounter class in Hadoop 0.20.100
> ----------------------------------------------------------------
>
>                 Key: HIVE-1990
>                 URL: https://issues.apache.org/jira/browse/HIVE-1990
>             Project: Hive
>          Issue Type: Bug
>          Components: Logging
>    Affects Versions: 0.6.0
>         Environment: Red Hat 2.6.18
>            Reporter: Joep Rottinghuis
>         Attachments: hive-1990.patch
>
>
> When compiling Hive against Hadoop 0.20.100 logging on command line and in unit tests fails due to the EventCounter class being moved from o.a.h.metrics.jvm.EventCounter to o.a.h.log.EventCounter.
> {code}
>     [junit] Running org.apache.hadoop.hive.serde2.TestTCTLSeparatedProtocol 
>     [junit] log4j:ERROR Could not instantiate class [org.apache.hadoop.metrics.jvm.EventCounter]. 
>     [junit] java.lang.ClassNotFoundException: org.apache.hadoop.metrics.jvm.EventCounter 
>     [junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:200) 
>     [junit] at java.security.AccessController.doPrivileged(Native Method) 
>     [junit] at java.net.URLClassLoader.findClass(URLClassLoader.java:188) 
>     [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:307) 
>     [junit] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) 
>     [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:252) 
> {code}
> As a note: In order to re-produce I first applied patch as per HIVE-1264 to 0.6 branch in order to resolve jar naming issues in build.
> Then I locally modified the build.properties to my locally built 0.20.100 Hadoop build:
> {code}
> hadoop.security.url=file:////<...>/hadoop/core/hadoop-${hadoop.version}
> hadoop.security.version=${hadoop.version}
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HIVE-1990) Logging fails due to moved EventCounter class in Hadoop 0.20.100

Posted by "Joep Rottinghuis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12994516#comment-12994516 ] 

Joep Rottinghuis commented on HIVE-1990:
----------------------------------------

For Hadoop 0.20.100 see HADOOP-7108

> Logging fails due to moved EventCounter class in Hadoop 0.20.100
> ----------------------------------------------------------------
>
>                 Key: HIVE-1990
>                 URL: https://issues.apache.org/jira/browse/HIVE-1990
>             Project: Hive
>          Issue Type: Bug
>          Components: Logging
>    Affects Versions: 0.6.0
>         Environment: Red Hat 2.6.18
>            Reporter: Joep Rottinghuis
>             Fix For: 0.6.0
>
>         Attachments: hive-1990.patch
>
>
> When compiling Hive against Hadoop 0.20.100 logging on command line and in unit tests fails due to the EventCounter class being moved from o.a.h.metrics.jvm.EventCounter to o.a.h.log.EventCounter.
> {code}
>     [junit] Running org.apache.hadoop.hive.serde2.TestTCTLSeparatedProtocol 
>     [junit] log4j:ERROR Could not instantiate class [org.apache.hadoop.metrics.jvm.EventCounter]. 
>     [junit] java.lang.ClassNotFoundException: org.apache.hadoop.metrics.jvm.EventCounter 
>     [junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:200) 
>     [junit] at java.security.AccessController.doPrivileged(Native Method) 
>     [junit] at java.net.URLClassLoader.findClass(URLClassLoader.java:188) 
>     [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:307) 
>     [junit] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) 
>     [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:252) 
> {code}
> As a note: In order to re-produce I first applied patch as per HIVE-1264 to 0.6 branch in order to resolve jar naming issues in build.
> Then I locally modified the build.properties to my locally built 0.20.100 Hadoop build:
> {code}
> hadoop.security.url=file:////<...>/hadoop/core/hadoop-${hadoop.version}
> hadoop.security.version=${hadoop.version}
> {code}

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HIVE-1990) Logging fails due to moved EventCounter class in Hadoop 0.20.100

Posted by "Ashutosh Chauhan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12995094#comment-12995094 ] 

Ashutosh Chauhan commented on HIVE-1990:
----------------------------------------

This is kind of tricky. It has been stated that Hive trunk currently supports only 20 and 20-secure (someone can correct me here if its not correct). Since there was no official apache release for hadoop-0.20 yet, Hive relied on 0.20.3-CDH3-SNAPSHOT for security integration which didn't have this issue. But, now with official Apache release knocking on door (0.20.100) we should probably switch over to that and then we need to commit this fix. 

> Logging fails due to moved EventCounter class in Hadoop 0.20.100
> ----------------------------------------------------------------
>
>                 Key: HIVE-1990
>                 URL: https://issues.apache.org/jira/browse/HIVE-1990
>             Project: Hive
>          Issue Type: Bug
>          Components: Logging
>    Affects Versions: 0.6.0
>         Environment: Red Hat 2.6.18
>            Reporter: Joep Rottinghuis
>             Fix For: 0.6.0
>
>         Attachments: hive-1990.patch
>
>
> When compiling Hive against Hadoop 0.20.100 logging on command line and in unit tests fails due to the EventCounter class being moved from o.a.h.metrics.jvm.EventCounter to o.a.h.log.EventCounter.
> {code}
>     [junit] Running org.apache.hadoop.hive.serde2.TestTCTLSeparatedProtocol 
>     [junit] log4j:ERROR Could not instantiate class [org.apache.hadoop.metrics.jvm.EventCounter]. 
>     [junit] java.lang.ClassNotFoundException: org.apache.hadoop.metrics.jvm.EventCounter 
>     [junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:200) 
>     [junit] at java.security.AccessController.doPrivileged(Native Method) 
>     [junit] at java.net.URLClassLoader.findClass(URLClassLoader.java:188) 
>     [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:307) 
>     [junit] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) 
>     [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:252) 
> {code}
> As a note: In order to re-produce I first applied patch as per HIVE-1264 to 0.6 branch in order to resolve jar naming issues in build.
> Then I locally modified the build.properties to my locally built 0.20.100 Hadoop build:
> {code}
> hadoop.security.url=file:////<...>/hadoop/core/hadoop-${hadoop.version}
> hadoop.security.version=${hadoop.version}
> {code}

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (HIVE-1990) Logging fails due to moved EventCounter class in Hadoop 0.20.100

Posted by "Ashutosh Chauhan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12994728#comment-12994728 ] 

Ashutosh Chauhan commented on HIVE-1990:
----------------------------------------

Joep,

This will fix your problem with 0.20.100, but won't it result in exact same problem on other hadoop versions?

> Logging fails due to moved EventCounter class in Hadoop 0.20.100
> ----------------------------------------------------------------
>
>                 Key: HIVE-1990
>                 URL: https://issues.apache.org/jira/browse/HIVE-1990
>             Project: Hive
>          Issue Type: Bug
>          Components: Logging
>    Affects Versions: 0.6.0
>         Environment: Red Hat 2.6.18
>            Reporter: Joep Rottinghuis
>             Fix For: 0.6.0
>
>         Attachments: hive-1990.patch
>
>
> When compiling Hive against Hadoop 0.20.100 logging on command line and in unit tests fails due to the EventCounter class being moved from o.a.h.metrics.jvm.EventCounter to o.a.h.log.EventCounter.
> {code}
>     [junit] Running org.apache.hadoop.hive.serde2.TestTCTLSeparatedProtocol 
>     [junit] log4j:ERROR Could not instantiate class [org.apache.hadoop.metrics.jvm.EventCounter]. 
>     [junit] java.lang.ClassNotFoundException: org.apache.hadoop.metrics.jvm.EventCounter 
>     [junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:200) 
>     [junit] at java.security.AccessController.doPrivileged(Native Method) 
>     [junit] at java.net.URLClassLoader.findClass(URLClassLoader.java:188) 
>     [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:307) 
>     [junit] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) 
>     [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:252) 
> {code}
> As a note: In order to re-produce I first applied patch as per HIVE-1264 to 0.6 branch in order to resolve jar naming issues in build.
> Then I locally modified the build.properties to my locally built 0.20.100 Hadoop build:
> {code}
> hadoop.security.url=file:////<...>/hadoop/core/hadoop-${hadoop.version}
> hadoop.security.version=${hadoop.version}
> {code}

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (HIVE-1990) Logging fails due to moved EventCounter class in Hadoop 0.20.100

Posted by "Ashutosh Chauhan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13044115#comment-13044115 ] 

Ashutosh Chauhan commented on HIVE-1990:
----------------------------------------

One potential solution is to use shims mechanism to specify different logging settings for different hadoop versions.

> Logging fails due to moved EventCounter class in Hadoop 0.20.100
> ----------------------------------------------------------------
>
>                 Key: HIVE-1990
>                 URL: https://issues.apache.org/jira/browse/HIVE-1990
>             Project: Hive
>          Issue Type: Bug
>          Components: Logging
>    Affects Versions: 0.6.0
>         Environment: Red Hat 2.6.18
>            Reporter: Joep Rottinghuis
>         Attachments: hive-1990.patch
>
>
> When compiling Hive against Hadoop 0.20.100 logging on command line and in unit tests fails due to the EventCounter class being moved from o.a.h.metrics.jvm.EventCounter to o.a.h.log.EventCounter.
> {code}
>     [junit] Running org.apache.hadoop.hive.serde2.TestTCTLSeparatedProtocol 
>     [junit] log4j:ERROR Could not instantiate class [org.apache.hadoop.metrics.jvm.EventCounter]. 
>     [junit] java.lang.ClassNotFoundException: org.apache.hadoop.metrics.jvm.EventCounter 
>     [junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:200) 
>     [junit] at java.security.AccessController.doPrivileged(Native Method) 
>     [junit] at java.net.URLClassLoader.findClass(URLClassLoader.java:188) 
>     [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:307) 
>     [junit] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) 
>     [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:252) 
> {code}
> As a note: In order to re-produce I first applied patch as per HIVE-1264 to 0.6 branch in order to resolve jar naming issues in build.
> Then I locally modified the build.properties to my locally built 0.20.100 Hadoop build:
> {code}
> hadoop.security.url=file:////<...>/hadoop/core/hadoop-${hadoop.version}
> hadoop.security.version=${hadoop.version}
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Commented: (HIVE-1990) Logging fails due to moved EventCounter class in Hadoop 0.20.100

Posted by "Ashutosh Chauhan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12995095#comment-12995095 ] 

Ashutosh Chauhan commented on HIVE-1990:
----------------------------------------

I meant no official apache release for hadoop-0.20-secure yet.

> Logging fails due to moved EventCounter class in Hadoop 0.20.100
> ----------------------------------------------------------------
>
>                 Key: HIVE-1990
>                 URL: https://issues.apache.org/jira/browse/HIVE-1990
>             Project: Hive
>          Issue Type: Bug
>          Components: Logging
>    Affects Versions: 0.6.0
>         Environment: Red Hat 2.6.18
>            Reporter: Joep Rottinghuis
>             Fix For: 0.6.0
>
>         Attachments: hive-1990.patch
>
>
> When compiling Hive against Hadoop 0.20.100 logging on command line and in unit tests fails due to the EventCounter class being moved from o.a.h.metrics.jvm.EventCounter to o.a.h.log.EventCounter.
> {code}
>     [junit] Running org.apache.hadoop.hive.serde2.TestTCTLSeparatedProtocol 
>     [junit] log4j:ERROR Could not instantiate class [org.apache.hadoop.metrics.jvm.EventCounter]. 
>     [junit] java.lang.ClassNotFoundException: org.apache.hadoop.metrics.jvm.EventCounter 
>     [junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:200) 
>     [junit] at java.security.AccessController.doPrivileged(Native Method) 
>     [junit] at java.net.URLClassLoader.findClass(URLClassLoader.java:188) 
>     [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:307) 
>     [junit] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) 
>     [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:252) 
> {code}
> As a note: In order to re-produce I first applied patch as per HIVE-1264 to 0.6 branch in order to resolve jar naming issues in build.
> Then I locally modified the build.properties to my locally built 0.20.100 Hadoop build:
> {code}
> hadoop.security.url=file:////<...>/hadoop/core/hadoop-${hadoop.version}
> hadoop.security.version=${hadoop.version}
> {code}

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira