Browse Source

determine if the file exists in hdfs when read file

pull/2/head
lgcareer 6 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); result.setData(map);
}else{ }else{
logger.error("read file {} not exist in hdfs", hdfsFileName); 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) { } catch (Exception e) {

Loading…
Cancel
Save