dongkelun opened a new pull request, #6448:
URL: https://github.com/apache/hudi/pull/6448

   By default, an error will be reported when synchronizing hive. When using 
SQL, it is troublesome to fill in the JDBC URL parameter every time
   
   ```java
   
   Caused by: org.apache.hudi.hive.HoodieHiveSyncException: Cannot create hive 
connection jdbc:hive2://localhost:10000/
           at 
org.apache.hudi.hive.ddl.JDBCExecutor.createHiveConnection(JDBCExecutor.java:107)
           at org.apache.hudi.hive.ddl.JDBCExecutor.<init>(JDBCExecutor.java:59)
           at 
org.apache.hudi.hive.HoodieHiveSyncClient.<init>(HoodieHiveSyncClient.java:91)
           ... 48 more
   Caused by: java.sql.SQLException: Could not open client transport with JDBC 
Uri: jdbc:hive2://localhost:10000: java.net.ConnectException: Connection 
refused (Connection refused)
           at 
org.apache.hive.jdbc.HiveConnection.openTransport(HiveConnection.java:234)
           at 
org.apache.hive.jdbc.HiveConnection.<init>(HiveConnection.java:178)
           at org.apache.hive.jdbc.HiveDriver.connect(HiveDriver.java:105)
           at java.sql.DriverManager.getConnection(DriverManager.java:664)
           at java.sql.DriverManager.getConnection(DriverManager.java:247)
           at 
org.apache.hudi.hive.ddl.JDBCExecutor.createHiveConnection(JDBCExecutor.java:104)
           ... 50 more
   Caused by: org.apache.thrift.transport.TTransportException: 
java.net.ConnectException: Connection refused (Connection 
   ```
   
   ### Change Logs
   
   _Describe context and summary for this change. Highlight if any code was 
copied._
   
   ### Impact
   
   _Describe any public API or user-facing feature change or any performance 
impact._
   
   **Risk level: none | low | medium | high**
   
   _Choose one. If medium or high, explain what verification was done to 
mitigate the risks._
   
   ### Contributor's checklist
   
   - [ ] Read through [contributor's 
guide](https://hudi.apache.org/contribute/how-to-contribute)
   - [ ] Change Logs and Impact were stated clearly
   - [ ] Adequate tests were added if applicable
   - [ ] CI passed
   


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