timothy65535 commented on issue #1131:
URL: 
https://github.com/apache/incubator-kyuubi/issues/1131#issuecomment-943076807


   Met two kinds exception, may we need two dependencies.
   
   ```
   <dependency>
       <groupId>org.apache.hive</groupId>
       <artifactId>hive-jdbc</artifactId>
       <version>${hive.jdbc.version}</version>
       <scope>test</scope>
       <exclusions>
           <exclusion>
               <groupId>*</groupId>
               <artifactId>*</artifactId>
           </exclusion>
       </exclusions>
   </dependency>
   
   <dependency>
       <groupId>org.apache.hive</groupId>
       <artifactId>hive-service</artifactId>
       <version>${hive.jdbc.version}</version>
       <scope>test</scope>
       <exclusions>
           <exclusion>
               <groupId>*</groupId>
               <artifactId>*</artifactId>
           </exclusion>
       </exclusions>
   </dependency>
   
   
   A needed class was not found. This could be due to an error in your runpath. 
Missing class: org/apache/hive/jdbc/HiveConnection
   java.lang.NoClassDefFoundError: org/apache/hive/jdbc/HiveConnection
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
        at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
   
   A needed class was not found. This could be due to an error in your runpath. 
Missing class: org/apache/hive/service/cli/HiveSQLException
   java.lang.NoClassDefFoundError: org/apache/hive/service/cli/HiveSQLException
        at org.apache.hive.jdbc.HiveConnection.<init>(HiveConnection.java:141)
        at org.apache.hive.jdbc.HiveDriver.connect(HiveDriver.java:107)
        at java.sql.DriverManager.getConnection(DriverManager.java:664)
        at java.sql.DriverManager.getConnection(DriverManager.java:247)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to