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 05:49:22 UTC

[incubator-iotdb] branch jira_584 created (now d63c7b9)

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

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


      at d63c7b9  Fix InitializerError when recovering files on HDFS

This branch includes the following new commits:

     new d63c7b9  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 jira_584
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git

commit d63c7b987d8f5a44d500c6fc1b93be00aef52faf
Author: samperson1997 <sz...@mails.tsinghua.edu.cn>
AuthorDate: Fri Apr 10 13:48:56 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