yuqi1129 commented on code in PR #5244:
URL: https://github.com/apache/gravitino/pull/5244#discussion_r1820855639
##########
bundles/aliyun-bundle/src/main/java/org/apache/gravitino/oss/fs/OSSFileSystemProvider.java:
##########
@@ -18,23 +18,41 @@
*/
package org.apache.gravitino.oss.fs;
+import com.google.common.collect.ImmutableMap;
import java.io.IOException;
import java.util.Map;
import org.apache.gravitino.catalog.hadoop.fs.FileSystemProvider;
+import org.apache.gravitino.storage.OSSProperties;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.fs.aliyun.oss.AliyunOSSFileSystem;
+import org.apache.hadoop.fs.aliyun.oss.Constants;
public class OSSFileSystemProvider implements FileSystemProvider {
+
+ private static final String OSS_FILESYSTEM_IMPL = "fs.oss.impl";
+
+ public static final Map<String, String> GRAVITINO_KEY_TO_OSS_HADOOP_KEY =
Review Comment:
This value will be used in GravitinoVirtualFileSystemOSSIT test and others
are similar.
##########
clients/filesystem-hadoop3/src/main/java/org/apache/gravitino/filesystem/hadoop/GravitinoVirtualFileSystem.java:
##########
@@ -385,13 +383,14 @@ private FilesetContextPair getFilesetContext(Path
virtualPath, FilesetDataOperat
scheme,
str -> {
try {
- Map<String, String> maps = getConfigMap(getConf());
FileSystemProvider provider =
fileSystemProvidersMap.get(scheme);
if (provider == null) {
throw new GravitinoRuntimeException(
"Unsupported file system scheme: %s for %s.",
scheme,
GravitinoVirtualFileSystemConfiguration.GVFS_SCHEME);
}
+
+ Map<String, String> maps = getConfigMap(getConf());
Review Comment:
They are the same as those in Gravitino server side.
--
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]