This is an automated email from the ASF dual-hosted git repository.
lidongdai pushed a commit to branch dev-1.3.0
in repository https://gitbox.apache.org/repos/asf/incubator-dolphinscheduler.git
The following commit(s) were added to refs/heads/dev-1.3.0 by this push:
new 25607f8 fix download resource file that under the directory error
(#3007)
25607f8 is described below
commit 25607f8815ec2e75dccf4d07108a7bd8c418e80d
Author: lgcareer <[email protected]>
AuthorDate: Wed Jun 17 12:04:34 2020 +0800
fix download resource file that under the directory error (#3007)
* add mybatis-3 notice in the top-level notice
* fix download resource file that under the directory error
---
.../java/org/apache/dolphinscheduler/api/service/ResourcesService.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/ResourcesService.java
b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/ResourcesService.java
index 173856b..15b106f 100644
---
a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/ResourcesService.java
+++
b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/ResourcesService.java
@@ -1021,7 +1021,7 @@ public class ResourcesService extends BaseService {
String tenantCode = tenant.getTenantCode();
- String hdfsFileName = HadoopUtils.getHdfsFileName(resource.getType(),
tenantCode, resource.getAlias());
+ String hdfsFileName = HadoopUtils.getHdfsFileName(resource.getType(),
tenantCode, resource.getFullName());
String localFileName =
FileUtils.getDownloadFilename(resource.getAlias());
logger.info("resource hdfs path is {} ", hdfsFileName);