Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] [dolphinscheduler-task-java] Cannot Compile java task due to the exec folder owner permission issue #16210

Open
3 tasks done
lanxing2 opened this issue Jun 25, 2024 · 1 comment
Assignees
Labels
backend bug Something isn't working

Comments

@lanxing2
Copy link
Contributor

Search before asking

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

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

  1. Deploy the dolphinscheduler in distributed model and run servers with user dolphinscheduler
  2. Create a Java Task in Java Model
  3. 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

Version

3.2.x

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@lanxing2 lanxing2 added bug Something isn't working Waiting for reply Waiting for reply labels Jun 25, 2024
@SbloodyS SbloodyS added backend and removed Waiting for reply Waiting for reply labels Jun 25, 2024
@lanxing2
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants