[ https://issues.apache.org/jira/browse/HIVE-3416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13444430#comment-13444430 ]
Zhenxiao Luo commented on HIVE-3416: ------------------------------------ Review request submitted at: https://reviews.facebook.net/D5025 As stated in the previous comment, dependencies are added in shims/ivy.xml, so that they are included in test.classpath. They are also added in serde/ivy.xml, so that we have the note that serde has these dependencies. > Fix TestAvroSerdeUtils.determineSchemaCanReadSchemaFromHDFS when running Hive > on hadoop23 > ----------------------------------------------------------------------------------------- > > Key: HIVE-3416 > URL: https://issues.apache.org/jira/browse/HIVE-3416 > Project: Hive > Issue Type: Bug > Affects Versions: 0.9.0 > Reporter: Zhenxiao Luo > Assignee: Zhenxiao Luo > Attachments: HIVE-3416.1.patch.txt > > > TestAvroSerdeUtils determinSchemaCanReadSchemaFromHDFS is failing when > running hive on hadoop23: > $ant very-clean package -Dhadoop.version=0.23.1 -Dhadoop-0.23.version=0.23.1 > -Dhadoop.mr.rev=23 > $ant test -Dhadoop.version=0.23.1 -Dhadoop-0.23.version=0.23.1 > -Dhadoop.mr.rev=23 -Dtestcase=TestAvroSerdeUtils > <testcase classname="org.apache.hadoop.hive.serde2.avro.TestAvroSerdeUtils" > name="determineSchemaCanReadSchemaFromHDFS" time="0.21"> > <error message="org/apache/hadoop/net/StaticMapping" > type="java.lang.NoClassDefFoundError">java.lang.NoClassDefFoundError: > org/apache/hadoop/net/StaticMapping > at > org.apache.hadoop.hdfs.MiniDFSCluster.initMiniDFSCluster(MiniDFSCluster.java:534) > at > org.apache.hadoop.hdfs.MiniDFSCluster.<init>(MiniDFSCluster.java:489) > at > org.apache.hadoop.hdfs.MiniDFSCluster.<init>(MiniDFSCluster.java:360) > at > org.apache.hadoop.hive.serde2.avro.TestAvroSerdeUtils.determineSchemaCanReadSchemaFromHDFS(TestAvroSerdeUtils.java:187) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:616) > at > org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) > at > org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) > at > org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) > at > org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) > at > org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79) > at > org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71) > at > org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49) > at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) > at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) > at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) > at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) > at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) > at org.junit.runners.ParentRunner.run(ParentRunner.java:236) > at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:39) > at > org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420) > at > org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911) > at > org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768) > Caused by: java.lang.ClassNotFoundException: > org.apache.hadoop.net.StaticMapping > at java.net.URLClassLoader$1.run(URLClassLoader.java:217) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:205) > at java.lang.ClassLoader.loadClass(ClassLoader.java:321) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) > at java.lang.ClassLoader.loadClass(ClassLoader.java:266) > ... 25 more > </error> > </testcase> -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira