feature(web): 增加独立小工具

直接通过HDFS查询时间线,有时候保留现场会直接copy一个hdfs目录,不遵循生产表的逻辑,只能通过hdfs路经查询
This commit is contained in:
2023-07-04 20:09:49 +08:00
parent 07200b890f
commit fb231805c2
5 changed files with 152 additions and 45 deletions

View File

@@ -91,6 +91,9 @@ public class TimelineService {
) throws IOException {
Configuration configuration = new Configuration();
FileSystem fileSystem = FileSystem.get(configuration);
if (!fileSystem.exists(new Path(hdfs))) {
throw new IOException(StrUtil.format("Path {} is not exists", hdfs));
}
HoodieTableMetaClient client = HoodieTableMetaClient.builder()
.setConf(configuration)
.setBasePath(hdfs)