wangjiapengone commented on issue #15077:
URL: 
https://github.com/apache/dolphinscheduler/issues/15077#issuecomment-1780669178

   > Hi @wangjiapengone , I don't reproduce this bug, please check whether you 
can download files from HDFS in your env.
   
   Hi, I can still reproduce this bug in dev.
   
   This problem occurs when the tenant executing the task differs from the 
tenant owning the resource.
   
   For example, 
   
   The tenant of the current user is "default",
   
   I create a new file in Resource Center which called "hello.sh". The HDFS 
file path is: 
`hdfs://hdfs-cluster01/dolphinscheduler_test/default/resources/test/hello.sh`
   
![image](https://github.com/apache/dolphinscheduler/assets/23015101/b8fa0436-82e4-4c1b-bca5-4a08dae155c8)
   
   Then I create a new shell task to execute this file, 
   
![image](https://github.com/apache/dolphinscheduler/assets/23015101/3ae3aeaf-0910-41c6-96fa-503b813f960b)
   
   The task will use the system user to execute this task, and the local file 
is missing.
   
![image](https://github.com/apache/dolphinscheduler/assets/23015101/d1efd23d-5d13-4338-8575-ca8816db6e1c)
   
![image](https://github.com/apache/dolphinscheduler/assets/23015101/92bfba66-749e-4c35-8495-6b3c40b3aa07)
   
   If I look at the temporary local file, it looks like this
   
![image](https://github.com/apache/dolphinscheduler/assets/23015101/0d4cb3a5-7d30-4626-99cd-343a0daf71ba)
   
   Apparently, the local file path is undesirable. But if the executing user 
and the resource owner are the same, the problem disappears.


-- 
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.

To unsubscribe, e-mail: [email protected]

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

Reply via email to