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
Keep the hive sync settings in spark sql consistent
### Impact
Keep the hive sync settings in spark sql consistent
### Risk level (write none, low medium or high below)
none
### Contributor's checklist
- [x] 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]