Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-3408

CDAP 3.1 explore service fails to start up on hive 0.13 (CDH 5.[2,3])

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.1.0
    • Fix Version/s: 3.2.0, 3.1.1
    • Component/s: CDAP, Explore
    • Labels:
      None
    • Release Notes:
      Fixed a problem with running the CDAP Explore Service on CDH 5.[2,3].
    • Rank:
      1|hzyy4f:

      Description

      On CDH 5.[2,3], which includes hive 0.13.1, it appears CDAP is trying to load hive14 libraries:

      1) Error injecting constructor, java.lang.NoSuchMethodError: org.apache.hive.service.cli.CLIService.<init>(Lorg/apache/hive/service/server/HiveServer2;)V
        at co.cask.cdap.explore.service.hive.Hive14ExploreService.<init>(Hive14ExploreService.java:59)
        while locating co.cask.cdap.explore.service.hive.Hive14ExploreService
        at co.cask.cdap.explore.guice.ExploreRuntimeModule$ExploreDistributedModule.providesExploreService(ExploreRuntimeModule.java:252)
        at co.cask.cdap.explore.guice.ExploreRuntimeModule$ExploreDistributedModule.providesExploreService(ExploreRuntimeModule.java:252)
        while locating co.cask.cdap.explore.service.ExploreService
          for parameter 3 at co.cask.cdap.explore.executor.ExploreExecutorService.<init>(ExploreExecutorService.java:62)
        at co.cask.cdap.explore.guice.ExploreRuntimeModule$ExploreExecutorModule.configure(ExploreRuntimeModule.java:113)
        while locating co.cask.cdap.explore.executor.ExploreExecutorService
      Caused by: java.lang.NoSuchMethodError: org.apache.hive.service.cli.CLIService.<init>(Lorg/apache/hive/service/server/HiveServer2;)V
              at co.cask.cdap.explore.service.hive.BaseHiveExploreService.createCLIService(BaseHiveExploreService.java:213)
              at co.cask.cdap.explore.service.hive.BaseHiveExploreService.<init>(BaseHiveExploreService.java:200)
              at co.cask.cdap.explore.service.hive.Hive14ExploreService.<init>(Hive14ExploreService.java:59)
              at co.cask.cdap.explore.service.hive.Hive14ExploreService$$FastClassByGuice$$96ff9b77.newInstance(<generated>)
              at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance(FastConstructor.java:40)
              at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:60)
              at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:85)
              at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
              at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:978)
              at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
              at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:974)
              at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1013)
              at co.cask.cdap.explore.guice.ExploreRuntimeModule$ExploreDistributedModule.providesExploreService(ExploreRuntimeModule.java:254)
              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 com.google.inject.internal.ProviderMethod.get(ProviderMethod.java:104)
              at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
              at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
              at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
              at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
              at com.google.inject.Scopes$1$1.get(Scopes.java:65)
              at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
              at com.google.inject.internal.ExposedKeyFactory.get(ExposedKeyFactory.java:54)
              at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38)
              at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62)
              at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:84)
              at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
              at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
              at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
              at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
              at com.google.inject.Scopes$1$1.get(Scopes.java:65)
              at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
              at com.google.inject.internal.ExposedKeyFactory.get(ExposedKeyFactory.java:54)
              at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:978)
              at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1024)
              at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:974)
              at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1013)
              at co.cask.cdap.data.runtime.main.ExploreServiceTwillRunnable.getServices(ExploreServiceTwillRunnable.java:111)
              at co.cask.cdap.common.twill.AbstractMasterTwillRunnable.initialize(AbstractMasterTwillRunnable.java:95)
              at co.cask.cdap.data.runtime.main.ExploreCustomClassLoaderTwillRunnable.initialize(ExploreCustomClassLoaderTwillRunnable.java:79)
              at org.apache.twill.internal.container.TwillContainerService.doStart(TwillContainerService.java:125)
              at org.apache.twill.internal.AbstractTwillService.startUp(AbstractTwillService.java:171)
              at com.google.common.util.concurrent.AbstractExecutionThreadService$1$1.run(AbstractExecutionThreadService.java:47)
              at java.lang.Thread.run(Thread.java:745)
      

        Attachments

          Activity

            People

            • Assignee:
              bhooshan Bhooshan Mogal
              Reporter:
              derek Derek Wood
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: