From 704311d1ca07c9613f4fbac9309557870a951994 Mon Sep 17 00:00:00 2001 From: wxp Date: Tue, 16 Dec 2025 16:35:32 +0800 Subject: [PATCH 1/2] support ViewFsPlugin --- .../apache/fluss/fs/hdfs/ViewFsPlugin.java | 36 +++++++++++++++++++ .../org.apache.fluss.fs.FileSystemPlugin | 1 + 2 files changed, 37 insertions(+) create mode 100644 fluss-filesystems/fluss-fs-hdfs/src/main/java/org/apache/fluss/fs/hdfs/ViewFsPlugin.java diff --git a/fluss-filesystems/fluss-fs-hdfs/src/main/java/org/apache/fluss/fs/hdfs/ViewFsPlugin.java b/fluss-filesystems/fluss-fs-hdfs/src/main/java/org/apache/fluss/fs/hdfs/ViewFsPlugin.java new file mode 100644 index 0000000000..495e04f703 --- /dev/null +++ b/fluss-filesystems/fluss-fs-hdfs/src/main/java/org/apache/fluss/fs/hdfs/ViewFsPlugin.java @@ -0,0 +1,36 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.fluss.fs.hdfs; + +/* This file is based on source code of Apache Flink Project (https://flink.apache.org/), licensed by the Apache + * Software Foundation (ASF) under the Apache License, Version 2.0. See the NOTICE file distributed with this work for + * additional information regarding copyright ownership. */ + +/** + * A file system plugin for ViewFs . + */ +public class ViewFsPlugin extends HdfsPlugin { + + public static final String SCHEME = "viewfs"; + + @Override + public String getScheme() { + return SCHEME; + } + +} diff --git a/fluss-filesystems/fluss-fs-hdfs/src/main/resources/META-INF/services/org.apache.fluss.fs.FileSystemPlugin b/fluss-filesystems/fluss-fs-hdfs/src/main/resources/META-INF/services/org.apache.fluss.fs.FileSystemPlugin index b1bf22a1ff..24f9926db2 100644 --- a/fluss-filesystems/fluss-fs-hdfs/src/main/resources/META-INF/services/org.apache.fluss.fs.FileSystemPlugin +++ b/fluss-filesystems/fluss-fs-hdfs/src/main/resources/META-INF/services/org.apache.fluss.fs.FileSystemPlugin @@ -15,3 +15,4 @@ # limitations under the License. org.apache.fluss.fs.hdfs.HdfsPlugin +org.apache.fluss.fs.hdfs.ViewFsPlugin From c337f5ce36799e56e6e58b692a5ec7fbc9cb78a8 Mon Sep 17 00:00:00 2001 From: wxp Date: Tue, 30 Dec 2025 17:09:47 +0800 Subject: [PATCH 2/2] update --- .../main/java/org/apache/fluss/fs/hdfs/ViewFsPlugin.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/fluss-filesystems/fluss-fs-hdfs/src/main/java/org/apache/fluss/fs/hdfs/ViewFsPlugin.java b/fluss-filesystems/fluss-fs-hdfs/src/main/java/org/apache/fluss/fs/hdfs/ViewFsPlugin.java index 495e04f703..7f24ec920b 100644 --- a/fluss-filesystems/fluss-fs-hdfs/src/main/java/org/apache/fluss/fs/hdfs/ViewFsPlugin.java +++ b/fluss-filesystems/fluss-fs-hdfs/src/main/java/org/apache/fluss/fs/hdfs/ViewFsPlugin.java @@ -17,20 +17,14 @@ package org.apache.fluss.fs.hdfs; -/* This file is based on source code of Apache Flink Project (https://flink.apache.org/), licensed by the Apache - * Software Foundation (ASF) under the Apache License, Version 2.0. See the NOTICE file distributed with this work for - * additional information regarding copyright ownership. */ - /** * A file system plugin for ViewFs . */ public class ViewFsPlugin extends HdfsPlugin { - public static final String SCHEME = "viewfs"; - @Override public String getScheme() { - return SCHEME; + return "viewfs"; } }