|
|
|
@ -250,7 +250,7 @@ public class UsersService extends BaseService {
|
|
|
|
|
String oldResourcePath = HadoopUtils.getHdfsDataBasePath() + "/" + oldTenant.getTenantCode() + "/resources"; |
|
|
|
|
String oldUdfsPath = HadoopUtils.getHdfsUdfDir(oldTenant.getTenantCode()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (HadoopUtils.getInstance().exists(oldResourcePath)){ |
|
|
|
|
String newResourcePath = HadoopUtils.getHdfsDataBasePath() + "/" + newTenantCode + "/resources"; |
|
|
|
|
String newUdfsPath = HadoopUtils.getHdfsUdfDir(newTenantCode); |
|
|
|
|
|
|
|
|
@ -273,7 +273,7 @@ public class UsersService extends BaseService {
|
|
|
|
|
//Delete the user from the old tenant directory
|
|
|
|
|
String oldUserPath = HadoopUtils.getHdfsDataBasePath() + "/" + oldTenant.getTenantCode() + "/home/" + userId; |
|
|
|
|
HadoopUtils.getInstance().delete(oldUserPath, true); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//create user in the new tenant directory
|
|
|
|
|
String newUserPath = HadoopUtils.getHdfsDataBasePath() + "/" + newTenant.getTenantCode() + "/home/" + user.getId(); |
|
|
|
|