Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-3176

NoClassDefFoundError for Derby library on EMR 5.8

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • v2.3.0
    • None
    • Environment
    • None
    • hive 2.2.0

    Description

      org.apache.catalina.LifecycleException: Failed to initialize component [StandardServer[9005]]
      at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
      at org.apache.catalina.startup.Catalina.load(Catalina.java:643)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:682)
      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:606)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:428)
      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:606)
      at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
      at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
      Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.apache.derby.jdbc.AutoloadedDriver40
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:278)
      at java.sql.DriverManager.isDriverAllowed(DriverManager.java:463)
      at java.sql.DriverManager.isDriverAllowed(DriverManager.java:455)
      at java.sql.DriverManager.getDrivers(DriverManager.java:356)
      at org.apache.catalina.core.JreMemoryLeakPreventionListener.lifecycleEvent(JreMemoryLeakPreventionListener.java:288)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
      at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
      at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:388)
      at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:101)
      ... 14 more

       

       

       

      Exclude hive's derbyclient-10.11.1.1.jar from Kylin's classpath will solve the problem

      Attachments

        1. 0001-KYLIN-3176.patch
          0.9 kB
          peng.jianhua

        Issue Links

          Activity

            People

              peng.jianhua peng.jianhua
              peng.jianhua peng.jianhua
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: