Schedulis icon indicating copy to clipboard operation
Schedulis copied to clipboard

schedulis 执行工作流失败

Open jkl0898 opened this issue 4 years ago • 8 comments

1.版本: schedulis_0.5.0

  1. 现象: 上传zip包到schedulis后执行工作流失败 ==>job 文件内容 type=command command=echo ${greet} ==>properties 文件内容 greet=HELLO schedulis!

3.exec节点报错日志如下:

image

jkl0898 avatar May 29 '20 06:05 jkl0898

./azkaban-common/src/main/java/azkaban/jobExecutor/ProcessJob.java 可能与 assignUserFileOwnership 方法写死了用root 执行有关: final int result = executeAsUser.execute("root", changeOwnershipCommand);

jkl0898 avatar May 29 '20 07:05 jkl0898

This place is fixed as root user because it is more convenient to control the rights of business users in the production environment

SelfImpr001 avatar May 29 '20 14:05 SelfImpr001

This place is fixed as root user because it is more convenient to control the rights of business users in the production environment

I deployed schedulis by user of 'dss' , which user I had give the sudo permission, but it still can't work, just as the photo show. Do I have to deploy the schedulis by root user ?

The sudo command which I added to /etc/sudoers is : dss ALL=(ALL) NOPASSWD: NOPASSWD: ALL

jkl0898 avatar Jun 01 '20 08:06 jkl0898

可能是exec-server的lib下execute-as-user文件权限有问题。通过以下命令更新权限 sudo chown root execute-as-user sudo chmod 6050 execute-as-user

wanglb8822 avatar Oct 14 '21 09:10 wanglb8822

可能是exec-server的lib下execute-as-user文件权限有问题。通过以下命令更新权限 sudo chown root execute-as-user sudo chmod 6050 execute-as-user

你好。不好意思,由于太久远, 我现在已经没有环境了。如果你有环境可以测试一下,若已无问题,可关闭此issue.

jkl0898 avatar Oct 14 '21 09:10 jkl0898

哈哈我刚部署遇到了相同的问题,是因为execute-as-user权限,我改了下,就能执行成功了。我回复下,主要是为了给以后别人部署的看看

------------------ 原始邮件 ------------------ 发件人: "WeBankFinTech/Schedulis" @.>; 发送时间: 2021年10月14日(星期四) 下午5:14 @.>; @.@.>; 主题: Re: [WeBankFinTech/Schedulis] schedulis 执行工作流失败 (#11)

可能是exec-server的lib下execute-as-user文件权限有问题。通过以下命令更新权限 sudo chown root execute-as-user sudo chmod 6050 execute-as-user

你好。不好意思,由于太久远, 我现在已经没有环境了。如果你有环境可以测试一下,若已无问题,可关闭此issue.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

wanglb8822 avatar Oct 14 '21 09:10 wanglb8822

哈哈我刚部署遇到了相同的问题,是因为execute-as-user权限,我改了下,就能执行成功了。我回复下,主要是为了给以后别人部署的看看 ------------------ 原始邮件 ------------------ 发件人: "WeBankFinTech/Schedulis" @.>; 发送时间: 2021年10月14日(星期四) 下午5:14 @.>; @.@.>; 主题: Re: [WeBankFinTech/Schedulis] schedulis 执行工作流失败 (#11) 可能是exec-server的lib下execute-as-user文件权限有问题。通过以下命令更新权限 sudo chown root execute-as-user sudo chmod 6050 execute-as-user 你好。不好意思,由于太久远, 我现在已经没有环境了。如果你有环境可以测试一下,若已无问题,可关闭此issue. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

好的 , 👍

jkl0898 avatar Oct 14 '21 09:10 jkl0898