njnu-seafish opened a new issue, #17823:
URL: https://github.com/apache/dolphinscheduler/issues/17823

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   A NoClassDefFoundError exception occurred while testing the connection to 
HiveServer2.
   
   <img width="953" height="409" alt="Image" 
src="https://github.com/user-attachments/assets/c72d899c-433b-4b09-b550-f504645de588";
 />
   
   > 2025-12-24 21:14:30.276 ERROR [qtp430740434-23] 
o.a.d.a.e.ApiExceptionHandler:[47] - Meet an unknown exception: 
   org.springframework.web.util.NestedServletException: Handler dispatch 
failed; nested exception is java.lang.NoClassDefFoundError: 
org/apache/hadoop/hive/thrift/TFilterTransport
     at 
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1087)
     at 
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:965)
     at 
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
     at 
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)
   ......
     Caused by: java.lang.NoClassDefFoundError: 
org/apache/hadoop/hive/thrift/TFilterTransport
     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:493)
     at java.net.URLClassLoader.access$100(URLClassLoader.java:75)
     at java.net.URLClassLoader$1.run(URLClassLoader.java:389)
     at java.net.URLClassLoader$1.run(URLClassLoader.java:383)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
     at 
org.apache.hive.jdbc.HiveConnection.createBinaryTransport(HiveConnection.java:601)
     at 
org.apache.hive.jdbc.HiveConnection.openTransport(HiveConnection.java:341)
     at org.apache.hive.jdbc.HiveConnection.<init>(HiveConnection.java:228)
     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)
     at 
org.apache.dolphinscheduler.plugin.datasource.hive.param.HiveDataSourceProcessor.getConnection(HiveDataSourceProcessor.java:146)
   
   ### What you expected to happen
   
   The connection to HiveServer2 can be tested successfully.
   
   ### How to reproduce
   
   When creating a Hive data source, click "Test Connection".
   
   <img width="953" height="409" alt="Image" 
src="https://github.com/user-attachments/assets/6a4673cd-de40-4628-a0c7-eb198919dba4";
 />
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   dev
   
   ### Are you willing to submit PR?
   
   - [x] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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