Browse Source

user hdfs path optimization

pull/2/head
qiaozhanwei 6 years ago
parent
commit
8dae10d4cd
  1. 2
      escheduler-api/src/main/java/cn/escheduler/api/service/UsersService.java

2
escheduler-api/src/main/java/cn/escheduler/api/service/UsersService.java

@ -322,7 +322,7 @@ public class UsersService extends BaseService {
if (user != null) { if (user != null) {
if (PropertyUtils.getResUploadStartupState()) { if (PropertyUtils.getResUploadStartupState()) {
String userPath = HadoopUtils.getHdfsDataBasePath() + "/" + user.getTenantCode() + "/home/" + id; String userPath = HadoopUtils.getHdfsUserDir(user.getTenantCode(),id);
if (HadoopUtils.getInstance().exists(userPath)) { if (HadoopUtils.getInstance().exists(userPath)) {
HadoopUtils.getInstance().delete(userPath, true); HadoopUtils.getInstance().delete(userPath, true);
} }

Loading…
Cancel
Save