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

[incubator-iotdb] branch hdfs_0.9 created (now 7efcd9f)

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

sunzesong pushed a change to branch hdfs_0.9
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git.


      at 7efcd9f  Fix InitializerError when recovering files on HDFS

This branch includes the following new commits:

     new 7efcd9f  Fix InitializerError when recovering files on HDFS

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[incubator-iotdb] 01/01: Fix InitializerError when recovering files on HDFS

Posted by su...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

sunzesong pushed a commit to branch hdfs_0.9
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git

commit 7efcd9f1e0bd86ce04d08e116f289f2bef2222fe
Author: samperson1997 <sz...@mails.tsinghua.edu.cn>
AuthorDate: Fri Apr 10 12:41:05 2020 +0800

    Fix InitializerError when recovering files on HDFS
---
 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