From 63d301e1d52fe1c5bc0ca674f768be69a98bfd4f Mon Sep 17 00:00:00 2001 From: zeekling Date: Sat, 13 Apr 2024 23:52:20 +0800 Subject: [PATCH] =?UTF-8?q?FSDirectory=E8=AF=A6=E8=A7=A3:=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hdfs/FSDirectory详解.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/hdfs/FSDirectory详解.md b/hdfs/FSDirectory详解.md index f931704..1190654 100644 --- a/hdfs/FSDirectory详解.md +++ b/hdfs/FSDirectory详解.md @@ -96,3 +96,16 @@ fsd.updateCount(iip, context.quotaDelta(), false); - 删除EditLog。 - 调用incrDeletedFileCount更新metrics信息。 +### 创建文件 + +**接口** + +```java +HdfsFileStatus startFile(String src, PermissionStatus permissions, + String holder, String clientMachine, EnumSet flag, + boolean createParent, short replication, long blockSize, + CryptoProtocolVersion[] supportedVersions, String ecPolicyName, + String storagePolicy, boolean logRetryCache) throws IOException { +} +``` +