|
|
@ -317,9 +317,9 @@ public class TaskExecuteThread implements Runnable, Delayed { |
|
|
|
// query the tenant code of the resource according to the name of the resource
|
|
|
|
// query the tenant code of the resource according to the name of the resource
|
|
|
|
String fullName = fileDownload.getLeft(); |
|
|
|
String fullName = fileDownload.getLeft(); |
|
|
|
String tenantCode = fileDownload.getRight(); |
|
|
|
String tenantCode = fileDownload.getRight(); |
|
|
|
String resHdfsPath = storageOperate.getResourceFileName(tenantCode, fullName); |
|
|
|
String resPath = storageOperate.getResourceFileName(tenantCode, fullName); |
|
|
|
logger.info("get resource file from hdfs :{}", resHdfsPath); |
|
|
|
logger.info("get resource file from path:{}", resPath); |
|
|
|
storageOperate.download(tenantCode, resHdfsPath, execLocalPath + File.separator + fullName, false, true); |
|
|
|
storageOperate.download(tenantCode, resPath, execLocalPath + File.separator + fullName, false, true); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
logger.error(e.getMessage(), e); |
|
|
|
logger.error(e.getMessage(), e); |
|
|
|
throw new ServiceException(e.getMessage()); |
|
|
|
throw new ServiceException(e.getMessage()); |
|
|
|