新增Nacos Namespace配置,删除更新至HDFS时Flush操作

This commit is contained in:
unknown
2022-12-16 16:52:33 +08:00
parent 78435d54ea
commit 7c201a8a3f
5 changed files with 10 additions and 7 deletions

View File

@@ -59,7 +59,7 @@ public class HdfsUtils {
public static void uploadFileByBytes(String filePath,byte[] bytes) throws IOException {
try (FSDataOutputStream fsDataOutputStream = fileSystem.create(new Path(filePath), true)) {
fsDataOutputStream.write(bytes);
fsDataOutputStream.flush();
// fsDataOutputStream.flush();
} catch (RuntimeException e) {
logger.error("Uploading files to the HDFS is abnormal. Message is :" + e.getMessage());
} catch (IOException e) {