fix(hudi-query): 修复写hdfs文件内容取值错误

This commit is contained in:
v-zhangjc9
2024-05-08 14:14:19 +08:00
parent b2e3a58d27
commit 10fae04007
3 changed files with 52 additions and 13 deletions

View File

@@ -1,6 +1,8 @@
package com.lanyuanxiaoyao.service.forest.service;
import com.dtflys.forest.annotation.BaseRequest;
import com.dtflys.forest.annotation.Body;
import com.dtflys.forest.annotation.BodyType;
import com.dtflys.forest.annotation.Get;
import com.dtflys.forest.annotation.Post;
import com.dtflys.forest.annotation.Query;
@@ -77,11 +79,11 @@ public interface HudiService {
@Get("/hdfs/read")
String read(@Query("root") String root);
@Post("/hdfs/write")
String write(@Query("root") String root, String text);
@Post(value = "/hdfs/write", contentType = "plain/text")
String write(@Query("root") String root, @Body String text);
@Post("/hdfs/write")
String write(@Query("root") String root, String text, @Query("overwrite") Boolean overwrite);
@Post(value = "/hdfs/write", contentType = "plain/text")
String write(@Query("root") String root, @Body String text, @Query("overwrite") Boolean overwrite);
@Get("/hdfs/download")
InputStream download(@Query("root") String root);