LiemLin opened a new issue #882: [BUG] The tenant problems URL: https://github.com/apache/incubator-dolphinscheduler/issues/882 *For better global communication, please give priority to using English description, thx! * **Describe the bug** The shell script executes with the tenant code, causing the task to fail **To Reproduce** Steps to reproduce the behavior, for example: 1. Define a workflow in which the shell task performs datax data synchronization 2. Look at the instance log and find failure error messages,"python: can't open file '/data/datax/bin/datax.py': [Errno 13] Permission denied" 3. The analysis found that tenants created on the operating system use the tenant code, not the tenant name 4. Analysis of the source code reveals that the system users are indeed created using the tenant code, and the commands executed using the tenant code,It's not unreasonable. private void buildProcess(String commandFile) throws IOException { //init process builder ProcessBuilder processBuilder = new ProcessBuilder(); // setting up a working directory processBuilder.directory(new File(taskDir)); // merge error information to standard output stream processBuilder.redirectErrorStream(true); // setting up user to run commands processBuilder.command("sudo", "-u", tenantCode, commandType(), commandFile); process = processBuilder.start(); // print command printCommand(processBuilder); } **Expected behavior** A clear and concise description of what you expected to happen. **Screenshots** If applicable, add screenshots to help explain your problem. **Which version of Easy Scheduler:** -[1.0.5] **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] With regards, Apache Git Services
