Skip to content

Commit 86768d7

Browse files
Resolve HDFS Authority bug
1 parent 706b32b commit 86768d7

File tree

1 file changed

+3
-1
lines changed
  • src/main/java/com/fangyuzhong/intelliJ/hadoop/core/hadoop

1 file changed

+3
-1
lines changed

src/main/java/com/fangyuzhong/intelliJ/hadoop/core/hadoop/HDFSUtil.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ public static FsAction getDirFileActionByUser(FileSystem fileSystem,String strDi
107107
}
108108
catch (IOException ex)
109109
{
110-
return null;
110+
//如果出现异常,或许是ACL权限没有配置。默认给出所有权限
111+
return FsAction.ALL;
112+
// return null;
111113
}
112114
}
113115

0 commit comments

Comments
 (0)