You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had searched in the issues and found no similar issues.
What happened
I deploy dolphinscheduler in distributed model follow the official website guide
The user I use to deploy is dolphinscheduler
And the tenant I choose to run the java task is default, so the command to run the shell script is start with "sudo -u default -i "
When I try to run the task, it shows no permission error, because the exec folder owner is dolphinscheduler with 755 permission
The shell script need run javac to create the Java class, but user default do not have permission to create file in the exec folder
If I want to run the Java Code task, I need to create a tenant dolphinscheduler and use this tenant to run the script.
What you expected to happen
The owner of the folder for the shell script is the same as the tenant I choose to run the process, so any tenant can run the java tasks
How to reproduce
Deploy the dolphinscheduler in distributed model and run servers with user dolphinscheduler
Create a Java Task in Java Model
Run the task with default tenant(or any other tenant else than dolphinscheduler)
Anything else
This problem happens every time when I try to run Java Model Java Task with tenants else than the tenant which running the server
Need update Directory owner(I am not sure if is possible to change the owner to other tenant when the server is deployed by dolphinscheduler, not root)
Search before asking
What happened
I deploy dolphinscheduler in distributed model follow the official website guide
![1719305345238](https://private-user-images.githubusercontent.com/12789042/342652049-e4b9ebb9-1981-4a0c-8131-f1090fdebf76.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk3MTc2MTEsIm5iZiI6MTcxOTcxNzMxMSwicGF0aCI6Ii8xMjc4OTA0Mi8zNDI2NTIwNDktZTRiOWViYjktMTk4MS00YTBjLTgxMzEtZjEwOTBmZGViZjc2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MzAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjMwVDAzMTUxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWMzZmRlZTMwOGEzYTY4OGI1MmQ5NzUyMmUwNzRlMmY1YTVhNDEzNzIxZjljMGIyNDdkZTE3NDBmY2ExNzZiZmMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.gpu5Z-g_WAxyE4zezl3hk15EZ9ny1-Dn40723OAFp2c)
The user I use to deploy is dolphinscheduler
And the tenant I choose to run the java task is default, so the command to run the shell script is start with "sudo -u default -i "
When I try to run the task, it shows no permission error, because the exec folder owner is dolphinscheduler with 755 permission
The shell script need run javac to create the Java class, but user default do not have permission to create file in the exec folder
If I want to run the Java Code task, I need to create a tenant dolphinscheduler and use this tenant to run the script.
What you expected to happen
The owner of the folder for the shell script is the same as the tenant I choose to run the process, so any tenant can run the java tasks
How to reproduce
Anything else
This problem happens every time when I try to run Java Model Java Task with tenants else than the tenant which running the server
Version
3.2.x
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: