Hive
  1. Hive
  2. HIVE-6822

TestAvroSerdeUtils fails with -Phadoop-2

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.14.0
    • Component/s: Tests
    • Labels:
      None

      Description

      Works fine with -Phadoop-1, but with -Phadoop-2 hits the following error:

      Running org.apache.hadoop.hive.serde2.avro.TestAvroSerdeUtils
      Tests run: 10, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.603 sec <<< FAILURE! - in org.apache.hadoop.hive.serde2.avro.TestAvroSerdeUtils
      determineSchemaCanReadSchemaFromHDFS(org.apache.hadoop.hive.serde2.avro.TestAvroSerdeUtils)  Time elapsed: 0.688 sec  <<< ERROR!
      java.lang.NoClassDefFoundError: com/sun/jersey/spi/container/servlet/ServletContainer
      	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
      	at org.apache.hadoop.http.HttpServer2.addJerseyResourcePackage(HttpServer2.java:564)
      	at org.apache.hadoop.hdfs.server.namenode.NameNodeHttpServer.initWebHdfs(NameNodeHttpServer.java:84)
      	at org.apache.hadoop.hdfs.server.namenode.NameNodeHttpServer.start(NameNodeHttpServer.java:121)
      	at org.apache.hadoop.hdfs.server.namenode.NameNode.startHttpServer(NameNode.java:601)
      	at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:500)
      	at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:658)
      	at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:643)
      	at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1259)
      	at org.apache.hadoop.hdfs.MiniDFSCluster.createNameNode(MiniDFSCluster.java:914)
      	at org.apache.hadoop.hdfs.MiniDFSCluster.createNameNodesAndSetConf(MiniDFSCluster.java:805)
      	at org.apache.hadoop.hdfs.MiniDFSCluster.initMiniDFSCluster(MiniDFSCluster.java:663)
      	at org.apache.hadoop.hdfs.MiniDFSCluster.<init>(MiniDFSCluster.java:603)
      	at org.apache.hadoop.hdfs.MiniDFSCluster.<init>(MiniDFSCluster.java:474)
      	at org.apache.hadoop.hive.serde2.avro.TestAvroSerdeUtils.determineSchemaCanReadSchemaFromHDFS(TestAvroSerdeUtils.java:189)
      

        Issue Links

          Activity

          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Patch Available Patch Available
          1m 57s 1 Jason Dere 03/Apr/14 01:52
          Patch Available Patch Available Resolved Resolved
          5d 21h 49m 1 Ashutosh Chauhan 08/Apr/14 23:42
          Resolved Resolved Closed Closed
          218d 21h 1 Thejas M Nair 13/Nov/14 19:42
          Thejas M Nair made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Hide
          Thejas M Nair added a comment -

          This has been fixed in 0.14 release. Please open new jira if you see any issues.

          Show
          Thejas M Nair added a comment - This has been fixed in 0.14 release. Please open new jira if you see any issues.
          Ashutosh Chauhan made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Fix Version/s 0.14.0 [ 12326450 ]
          Resolution Fixed [ 1 ]
          Hide
          Ashutosh Chauhan added a comment -

          Committed to trunk.

          Show
          Ashutosh Chauhan added a comment - Committed to trunk.
          Hide
          Ashutosh Chauhan added a comment -

          +1

          Show
          Ashutosh Chauhan added a comment - +1
          Hide
          Thejas M Nair added a comment -

          FYI sample8,transform_ppr1,transform_ppr2,union_ppr failures are caused by a bad commit, created HIVE-6838 to address it.

          Show
          Thejas M Nair added a comment - FYI sample8,transform_ppr1,transform_ppr2,union_ppr failures are caused by a bad commit, created HIVE-6838 to address it.
          Hide
          Hive QA added a comment -

          Overall: -1 at least one tests failed

          Here are the results of testing the latest attachment:
          https://issues.apache.org/jira/secure/attachment/12638386/HIVE-6822.1.patch

          ERROR: -1 due to 5 failed/errored test(s), 5547 tests executed
          Failed tests:

          org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_sample8
          org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_transform_ppr1
          org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_transform_ppr2
          org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_union_ppr
          org.apache.hadoop.hive.ql.processors.TestCommandProcessorFactory.testAvailableCommands
          

          Test results: http://bigtop01.cloudera.org:8080/job/PreCommit-HIVE-Build/2102/testReport
          Console output: http://bigtop01.cloudera.org:8080/job/PreCommit-HIVE-Build/2102/console

          Messages:

          Executing org.apache.hive.ptest.execution.PrepPhase
          Executing org.apache.hive.ptest.execution.ExecutionPhase
          Executing org.apache.hive.ptest.execution.ReportingPhase
          Tests exited with: TestsFailedException: 5 tests failed
          

          This message is automatically generated.

          ATTACHMENT ID: 12638386

          Show
          Hive QA added a comment - Overall : -1 at least one tests failed Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12638386/HIVE-6822.1.patch ERROR: -1 due to 5 failed/errored test(s), 5547 tests executed Failed tests: org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_sample8 org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_transform_ppr1 org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_transform_ppr2 org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_union_ppr org.apache.hadoop.hive.ql.processors.TestCommandProcessorFactory.testAvailableCommands Test results: http://bigtop01.cloudera.org:8080/job/PreCommit-HIVE-Build/2102/testReport Console output: http://bigtop01.cloudera.org:8080/job/PreCommit-HIVE-Build/2102/console Messages: Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase Tests exited with: TestsFailedException: 5 tests failed This message is automatically generated. ATTACHMENT ID: 12638386
          Jason Dere made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Jason Dere made changes -
          Attachment HIVE-6822.1.patch [ 12638386 ]
          Hide
          Jason Dere added a comment -

          Attaching patch, add test dependency on jersey-servlet.

          Show
          Jason Dere added a comment - Attaching patch, add test dependency on jersey-servlet.
          Jason Dere made changes -
          Field Original Value New Value
          Link This issue is related to HIVE-6588 [ HIVE-6588 ]
          Jason Dere created issue -

            People

            • Assignee:
              Jason Dere
              Reporter:
              Jason Dere
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development