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

   > This is caused by the file is downloaded by bootstrap user, but the file 
will be used by tenant, if you set `sudo.enable=true`, we will set the file 
owner to tenant.
   
   Sorry, I can't catch your idea. The above problem still shows when I set 
`sudo.enable=true`. In fact, I never set `sudo.enable=false`. So, I don't think 
change file owner will solve this problem. The real problem is the downloaded 
file path.
   
   When I start a standalone server in debug mode, I can see the `fileName` 
returned by `getResourceFileName` is incorrect.
   Since `resDir` is not the prefix of `fullName`, the replacement does't work, 
`fileName` and `fullName` are the same. So the actual file downloaded is 
`hdfs:/hdfs-cluster01/dolphinscheduler_test/default/resources/test/hello.sh`
   
![image](https://github.com/apache/dolphinscheduler/assets/23015101/9555b553-5db1-48b1-b90d-240010c50b62)
   
![image](https://github.com/apache/dolphinscheduler/assets/23015101/a1a57469-d0e4-47ea-9442-89046d305756)
   
   I think the correct `fileName` should be `test/hello.sh`.
   
   Please correct me if there's any wrong with my statement. 


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