You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by qi...@apache.org on 2020/04/10 09:58:08 UTC

[incubator-iotdb] branch rel/0.9 updated: Fix InitializerError when recovering files on HDFS (#1019)

This is an automated email from the ASF dual-hosted git repository.

qiaojialin pushed a commit to branch rel/0.9
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git


The following commit(s) were added to refs/heads/rel/0.9 by this push:
     new aaa18d5  Fix InitializerError when recovering files on HDFS (#1019)
aaa18d5 is described below

commit aaa18d56453af68c6cbf0047b3cd39be65ec90fa
Author: Zesong Sun <sz...@mails.tsinghua.edu.cn>
AuthorDate: Fri Apr 10 17:57:59 2020 +0800

    Fix InitializerError when recovering files on HDFS (#1019)
---
 hadoop/src/main/java/org/apache/iotdb/hadoop/fileSystem/HDFSFile.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hadoop/src/main/java/org/apache/iotdb/hadoop/fileSystem/HDFSFile.java b/hadoop/src/main/java/org/apache/iotdb/hadoop/fileSystem/HDFSFile.java
index 3b23bfe..f82e024 100644
--- a/hadoop/src/main/java/org/apache/iotdb/hadoop/fileSystem/HDFSFile.java
+++ b/hadoop/src/main/java/org/apache/iotdb/hadoop/fileSystem/HDFSFile.java
@@ -130,7 +130,7 @@ public class HDFSFile extends File {
 
   @Override
   public File getParentFile() {
-    return new HDFSFile(hdfsPath.getParent().toUri());
+    return new HDFSFile(hdfsPath.getParent().getName());
   }
 
   @Override