[fix](multi-catalog) Fix properties check in S3Storage and add hive socket timeout config (#18420)
Co-authored-by: jinzhe <jinzhe@selectdb.com>
This commit is contained in:
@ -103,7 +103,7 @@ public class S3Storage extends BlobStorage {
|
||||
S3Properties.convertToStdProperties(caseInsensitiveProperties);
|
||||
}
|
||||
try {
|
||||
S3Properties.requiredS3Properties(properties);
|
||||
S3Properties.requiredS3Properties(caseInsensitiveProperties);
|
||||
} catch (DdlException e) {
|
||||
throw new IllegalArgumentException(e);
|
||||
}
|
||||
|
||||
@ -163,6 +163,8 @@ public class HMSExternalCatalog extends ExternalCatalog {
|
||||
for (Map.Entry<String, String> kv : catalogProperty.getHadoopProperties().entrySet()) {
|
||||
hiveConf.set(kv.getKey(), kv.getValue());
|
||||
}
|
||||
hiveConf.set(HiveConf.ConfVars.METASTORE_CLIENT_SOCKET_TIMEOUT.name(),
|
||||
String.valueOf(Config.hive_metastore_client_timeout_second));
|
||||
String authentication = catalogProperty.getOrDefault(
|
||||
HdfsResource.HADOOP_SECURITY_AUTHENTICATION, "");
|
||||
if (AuthType.KERBEROS.getDesc().equals(authentication)) {
|
||||
|
||||
Reference in New Issue
Block a user