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

bin/find-hive-dependency.sh may not get correct local classpath when configured hive client is beeline

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: v1.3.0, v1.5.0
    • Fix Version/s: None
    • Component/s: Client - CLI
    • Labels:

      Description

      in bin/find-hive-dependency.sh, if configured hive client is beeline, it will use beeline to execute "set" and then to find the classpath; I noticed the result doesn't have "hive-cli.jar", this will cause error in "load hive table" action, a NoClassDefFoundError error is thrown;

      If "hive -e set" will return all the needed hive jars.

      SEVERE: Servlet.service() for servlet [kylin] in context with path [/kylin] threw exception [Handler processing failed; nested exception is java.lang.NoClassDefFoundError: org/apache/hadoop/hive/cli/CliSessionState] with root cause
      java.lang.ClassNotFoundException: org.apache.hadoop.hive.cli.CliSessionState
      	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)
      	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
      	at org.apache.kylin.rest.controller.TableController.showHiveDatabases(TableController.java:301)
      	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)
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              shaofengshi Shao Feng Shi
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: