when520 opened a new issue #3650:
URL: https://github.com/apache/incubator-dolphinscheduler/issues/3650


   希望能把文件上传到本地,多种格式都尝试了,页面一直报这个错误 - **创建资源错误**
   我的配置
   
   ```
   resource.storage.type=HDFS
   
   # resource store on HDFS/S3 path, resource file will store to this hadoop 
hdfs path, self configuration, please make sure the directory exists on hdfs 
and have read write permissions。"/dolphinscheduler" is recommended
   resource.upload.path=/data/dolphinscheduler
   
   # user data local directory path, please make sure the directory exists and 
have read write permissions
   data.basedir.path=/data/dolphinscheduler
   hdfs.root.user=hdfs
   
   # if resource.storage.type=HDFS
   fs.defaultFS=file:///data/dolphinscheduler
   
   ```
   
   log error message is :
   ```
   [INFO] 2020-09-02 09:54:50.623 
org.apache.dolphinscheduler.api.controller.ResourcesController:[99] - login 
user admin, create resource, type: FILE, resource alias: asdf, desc: , file: 
-1,/
   [ERROR] 2020-09-02 09:54:50.662 
org.apache.dolphinscheduler.api.exceptions.ApiExceptionHandler:[45] - 创建资源错误
   java.lang.NullPointerException: null
           at 
org.apache.dolphinscheduler.api.service.ResourcesService.createDirecotry(ResourcesService.java:484)
           at 
org.apache.dolphinscheduler.api.service.ResourcesService.createDirectory(ResourcesService.java:148)
           at 
org.apache.dolphinscheduler.api.service.ResourcesService$$FastClassBySpringCGLIB$$cfb54838.invoke(<generated>)
           at 
org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
           at 
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:749)
           at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
           at 
org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:294)
           at 
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98)
           at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
           at 
org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)
           at 
org.apache.dolphinscheduler.api.service.ResourcesService$$EnhancerBySpringCGLIB$$2371a150.createDirectory(<generated>)
           at 
org.apache.dolphinscheduler.api.controller.ResourcesController.createDirectory(ResourcesController.java:101)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(Method.java:498)
           at 
org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:189)
           at 
org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)
           at 
org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)
           at 
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895)
   ```
   
   
   
   
   
   
   
   
   *For better global communication, please give priority to using English 
description, thx! *
   
   *Please review 
https://dolphinscheduler.apache.org/en-us/docs/development/issue.html when 
describe an issue.*
   
   **Describe the question**
   A clear and concise description of what the question is.
   
   
   **Which version of DolphinScheduler:**
    -[1.1.0-preview]
   
   **Additional context**
   Add any other context about the problem here.
   
   **Requirement or improvement**
   - Please describe about your requirements or improvement suggestions.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to