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

Stop using HiveConf.ConfVars.defaultValue, to support Hive >0.13

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.0
    • Fix Version/s: 3.1.0
    • Component/s: None
    • Labels:
      None
    • Rank:
      1|hzyutr:

      Description

      cdap-master explore service fails to start due to

      2015-06-18T19:15:38,934Z ERROR o.a.t.i.ServiceMain [alvin-hdp-2242-21780-1001.dev.continuuity.net] [main] ServiceMain:doMain(ServiceMain.java:97) - Exception when starting service TwillContainerService [FAILED].
      java.lang.NoSuchFieldError: defaultVal
              at co.cask.cdap.explore.guice.ExploreRuntimeModule$ExploreDistributedModule.configure(ExploreRuntimeModule.java:233)
              at com.google.inject.PrivateModule.configure(PrivateModule.java:97)
              at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
              at com.google.inject.util.Modules$2.configure(Modules.java:114)
              at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
              at com.google.inject.spi.Elements.getElements(Elements.java:101)
              at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:133)
              at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103)
              at com.google.inject.Guice.createInjector(Guice.java:95)
              at com.google.inject.Guice.createInjector(Guice.java:72)
              at com.google.inject.Guice.createInjector(Guice.java:62)
              at co.cask.cdap.data.runtime.main.ExploreServiceTwillRunnable.doInit(ExploreServiceTwillRunnable.java:78)
              at co.cask.cdap.common.twill.AbstractMasterTwillRunnable.initialize(AbstractMasterTwillRunnable.java:92)
              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)
      

      This is because the field in HiveConf.ConfVars called "defaultValue" in 0.13 was renamed to "defaultStrVal" in 0.14, and ExploreRuntimeModule depends on it, so we get the NoSuchFieldError exception.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alvin Alvin Wang
                Reporter:
                alvin Alvin Wang
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: