fuweng11 commented on code in PR #7710:
URL: https://github.com/apache/inlong/pull/7710#discussion_r1150027034
##########
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/node/hudi/HudiDataNodeOperator.java:
##########
@@ -81,4 +83,30 @@ protected void setTargetEntity(DataNodeRequest request,
DataNodeEntity targetEnt
}
}
+ @Override
+ public Boolean testConnection(DataNodeRequest request) {
+ HudiDataNodeRequest hudiRequest = (HudiDataNodeRequest) request;
+ String metastoreUri = hudiRequest.getUrl();
+ String warehouse = hudiRequest.getWarehouse();
+ Preconditions.expectNotBlank(metastoreUri,
ErrorCodeEnum.INVALID_PARAMETER, "connection url cannot be empty");
+ HudiCatalogClient client = null;
+ try {
Review Comment:
Please use try-resource.
--
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]