jerryshao commented on code in PR #9282:
URL: https://github.com/apache/gravitino/pull/9282#discussion_r2591338832


##########
catalogs/hadoop-common/src/main/java/org/apache/gravitino/catalog/hadoop/fs/HDFSFileSystemProvider.java:
##########
@@ -48,4 +55,29 @@ public String scheme() {
   public String name() {
     return BUILTIN_HDFS_FS_PROVIDER;
   }
+
+  /**
+   * Add additional HDFS specific configurations.
+   *
+   * @param configs Original configurations.
+   * @return Configurations with additional HDFS specific configurations.
+   */
+  private Map<String, String> additionalHDFSConfig(Map<String, String> 
configs) {
+    Map<String, String> additionalConfigs = Maps.newHashMap(configs);
+
+    // Avoid multiple retries to speed up failure in test cases.
+    // Use hard code instead of 
CommonConfigurationKeysPublic.IPC_CLIENT_CONNECT_TIMEOUT_KEY to
+    // avoid dependency on a specific Hadoop version.
+    if (!configs.containsKey(HDFS_IPC_CLIENT_CONNECT_TIMEOUT_KEY)) {
+      additionalConfigs.put(HDFS_IPC_CLIENT_CONNECT_TIMEOUT_KEY, 
DEFAULT_CONNECTION_TIMEOUT);
+    }
+
+    if (!configs.containsKey(HDFS_IPC_PING_KEY)) {
+      additionalConfigs.put(HDFS_IPC_PING_KEY, "true");

Review Comment:
   I found that you have several customized conf values here and above, you'd 
also define constants for these.



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