|
|
@ -600,6 +600,11 @@ public class ResourcesServiceImpl extends BaseServiceImpl implements ResourcesSe |
|
|
|
org.apache.dolphinscheduler.api.utils.FileUtils.copyFile(file, localFilename); |
|
|
|
org.apache.dolphinscheduler.api.utils.FileUtils.copyFile(file, localFilename); |
|
|
|
HadoopUtils.getInstance().copyLocalToHdfs(localFilename, hdfsFilename, true, true); |
|
|
|
HadoopUtils.getInstance().copyLocalToHdfs(localFilename, hdfsFilename, true, true); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
FileUtils.deleteFile(localFilename); |
|
|
|
|
|
|
|
} catch (IOException ex) { |
|
|
|
|
|
|
|
logger.error("delete local tmp file:{} error", localFilename, ex); |
|
|
|
|
|
|
|
} |
|
|
|
logger.error(e.getMessage(), e); |
|
|
|
logger.error(e.getMessage(), e); |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|