Browse Source

determine if the file exists in hdfs when read file

pull/2/head
lgcareer 5 years ago
parent
commit
996dace03d
  1. 2
      escheduler-api/src/main/java/cn/escheduler/api/service/ResourcesService.java

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

@ -525,7 +525,7 @@ public class ResourcesService extends BaseService {
result.setData(map);
}else{
logger.error("read file {} not exist in hdfs", hdfsFileName);
putMsg(result, Status.RESOURCE_FILE_NOT_EXIST);
putMsg(result, Status.RESOURCE_FILE_NOT_EXIST,hdfsFileName);
}
} catch (Exception e) {

Loading…
Cancel
Save