|
|
@ -245,7 +245,7 @@ public class UsersService extends BaseService { |
|
|
|
Tenant newTenant = tenantMapper.queryById(tenantId); |
|
|
|
Tenant newTenant = tenantMapper.queryById(tenantId); |
|
|
|
if (newTenant != null) { |
|
|
|
if (newTenant != null) { |
|
|
|
// if hdfs startup
|
|
|
|
// if hdfs startup
|
|
|
|
if (PropertyUtils.getResUploadStartupState()){ |
|
|
|
if (PropertyUtils.getResUploadStartupState() && oldTenant != null){ |
|
|
|
String newTenantCode = newTenant.getTenantCode(); |
|
|
|
String newTenantCode = newTenant.getTenantCode(); |
|
|
|
String oldResourcePath = HadoopUtils.getHdfsDataBasePath() + "/" + oldTenant.getTenantCode() + "/resources"; |
|
|
|
String oldResourcePath = HadoopUtils.getHdfsDataBasePath() + "/" + oldTenant.getTenantCode() + "/resources"; |
|
|
|
String oldUdfsPath = HadoopUtils.getHdfsUdfDir(oldTenant.getTenantCode()); |
|
|
|
String oldUdfsPath = HadoopUtils.getHdfsUdfDir(oldTenant.getTenantCode()); |
|
|
|