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

If Hive version is not supported, CDAP master silently dies

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.1
    • Fix Version/s: 4.2.0, 4.1.2
    • Component/s: Explore
    • Labels:
      None
    • Rank:
      1|i001c7:

      Description

      If the Hive version is not supported, the CDAP master will die quietly unless debug logging is on. The log looks like:

      2017-05-11 19:36:41,727 - INFO  [main:c.c.c.c.i.URLConnections@36] - Turning off default caching in URLConnection
      2017-05-11 19:36:41,914 - WARN  [main:c.c.c.c.c.Configuration@624] - log.retention.duration.days is deprecated. Instead, use log.pipeline.cdap.file.retention.duration.days
      2017-05-11 19:36:41,915 - WARN  [main:c.c.c.c.c.Configuration@624] - kafka.log.dir is deprecated. Instead, use kafka.server.log.dirs
      2017-05-11 19:36:42,293 - WARN  [main:o.a.h.u.NativeCodeLoader@62] - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
      2017-05-11 19:36:43,779 - DEBUG [main:c.c.c.c.l.c.UncaughtExceptionHandler@33] - Uncaught exception in thread Thread[main,5,main]
      java.lang.reflect.InvocationTargetException: null
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_75]
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_75]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_75]
              at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_75]
              at co.cask.cdap.data.runtime.main.MasterServiceMain.main(MasterServiceMain.java:207) ~[na:na]
      Caused by: java.lang.RuntimeException: Hive distribution not supported. Set the configuration 'explore.enabled' to false to start up without Explore.
              at co.cask.cdap.explore.service.ExploreServiceUtils.checkHiveSupport(ExploreServiceUtils.java:171) ~[na:na]
              at co.cask.cdap.explore.service.ExploreServiceUtils.checkHiveSupport(ExploreServiceUtils.java:127) ~[na:na]
              at co.cask.cdap.data.runtime.main.MasterServiceMain.checkExploreRequirements(MasterServiceMain.java:460) ~[na:na]
              at co.cask.cdap.data.runtime.main.MasterServiceMain.init(MasterServiceMain.java:256) ~[na:na]
              at co.cask.cdap.common.runtime.DaemonMain.doMain(DaemonMain.java:38) ~[na:na]
              ... 5 common frames omitted
      

        Attachments

          Activity

            People

            • Assignee:
              mao Chengfeng Mao
              Reporter:
              ashau Albert Shau
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: