feat(web): 增加HDFS文件管理器
在页面直接查看HDFS文件和目录,还可以查看和下载
This commit is contained in:
@@ -4,10 +4,12 @@ import com.dtflys.forest.annotation.BaseRequest;
|
||||
import com.dtflys.forest.annotation.Get;
|
||||
import com.dtflys.forest.annotation.Query;
|
||||
import com.lanyuanxiaoyao.service.configuration.entity.PageResponse;
|
||||
import com.lanyuanxiaoyao.service.configuration.entity.hudi.HPath;
|
||||
import com.lanyuanxiaoyao.service.configuration.entity.hudi.HudiCleanerPlan;
|
||||
import com.lanyuanxiaoyao.service.configuration.entity.hudi.HudiCompactionPlan;
|
||||
import com.lanyuanxiaoyao.service.configuration.entity.hudi.HudiInstant;
|
||||
import com.lanyuanxiaoyao.service.configuration.entity.hudi.HudiRollbackPlan;
|
||||
import java.io.InputStream;
|
||||
import java.util.Map;
|
||||
import org.eclipse.collections.api.list.ImmutableList;
|
||||
import org.eclipse.collections.api.map.ImmutableMap;
|
||||
@@ -64,4 +66,16 @@ public interface HudiService {
|
||||
|
||||
@Get("/hdfs/exists_path")
|
||||
Boolean existsPath(@Query("hdfs") String hdfs);
|
||||
|
||||
@Get("/hdfs/get")
|
||||
HPath get(@Query("root") String root);
|
||||
|
||||
@Get("/hdfs/list")
|
||||
ImmutableList<HPath> list(@Query("root") String root);
|
||||
|
||||
@Get("/hdfs/read")
|
||||
String read(@Query("root") String root);
|
||||
|
||||
@Get("/hdfs/download")
|
||||
InputStream download(@Query("root") String root);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user