首页 > 其他分享 >dolphinscheduler 租户不存在问题 记录

dolphinscheduler 租户不存在问题 记录

时间:2024-05-23 10:53:26浏览次数:15  
标签:记录 租户 dolphinscheduler 用户 admin linux test 20240522

ds

1、 创建租户(在数据库中) test-20240522 , 此时 linux 服务上并未 创建目录和用户 test-20240522
2、 在配置好工作流,真正执行的时候 ,在创建linux /home 文件夹下创建相应 用户目录和和登录用户 test-20240522

case1:

1、如果删除服务器上 userdel -r test-20240522 删除 test-20240522 这个租户
2、在用户管理admin =》选择租户 test-20240522 =》
3、任务流定义选择 default 租户,这时候会发现 linux 服务器上 test-20240522 目录和用户又有了!!!

-- 得出结论 ,如果都是任务流定义过程中 都是用 default组,default租户 的话,会使用当前用户绑定的租户,即 test-20240522

case2:

1、在用户管理admin =》选择租户 test
2、任务流定义选择 test-20240522 租户,这时候会发现 linux 服务器上 test-20240522 目录和用户又有了!!!

-- 得出结论 ,如果都是任务流定义过程中 选择某个租户 test-20240522 的话,work工作时 会使用配置中选中租户,即 test-20240522


实际报错

INF0] 2024-05-2214:15:23.153
-End initialize task
+0800 org.apache.dolphinscheduler.common.utils.0SUtils:[33] [workflowInstance
[workflowInstance-12][TaskInstance-13]- create linux os user: zdy
zdy
Set task status to Taske
-12]lTaskInstance-13]  execute cmd; sudo useradd -g admin
ERFDR) 2824-5-2 14:15:23.235 -000 r,pache.lphinschedler.comontis.0s:327)  fwnstance- 2aknstance3) - ryr   t m t te "s/
org.apache.dolphinscheduler.common.shellAbstractShellsExitodeExceptin: Sorry, user admin is not allowed to execute /sbin/useradd g adain zdy' as rmot on nodem

分析

默认ds 使用 admin用户的,
而在多租户使用过程中,ds是需要去linux服务器上创建某个用户的,但是 admin 这个用户在linux 中并没有 创建用户的权限 ,所以对他进行了权限调整

默认权限

cat /etc/sudoers

这样修改后,ds在执行的时候 会使用 sudo useradd -g admin 用户名 创建租户 这时候就会成功了

参考 https://blog.51cto.com/dsjprs/5190001

标签:记录,租户,dolphinscheduler,用户,admin,linux,test,20240522
From: https://www.cnblogs.com/iullor/p/18207888

相关文章

  • uniapp中使用mqtt.js的踩坑记录
    最近在uniapp的vue3.0版本中使用mqtt.js库时遇到了一些坑,经过亲身踩坑,现在把实际能够实现在uniapp的app端能够使用mqtt.js的方法步骤记录如下:一、安装首先安装mqtt.js,建议使用较为稳定的3.0.0版本:[email protected]二、引入mqtt.jsimportmqttfrom'mqtt/dist/mqtt.......
  • Wpf UI框架 MaterialDesign 的使用记录
    近期公司有桌面客户端的开发需求,并且对样式和界面反馈有一定的要求,对比各种开源UI框架后确认使用MaterialDesign。1、引入框架MaterialDesignThemes,注意下对应的版本号,我用的2.6.0的。原因嘛视频教程就是这个版本。  2、App.xaml中引用样式文件注释下面的可以先不用加,后面......
  • 记录一个按列内容拆分Excel文件的小方法
    importtkinterastkimportosimporttkinter.filedialogimporttkinter.simpledialogimportpandasaspdimporttkinter.messageboximporttkinter.ttkimporttracebackglobalcolumn,sheet_origlobalcombox_2#按内容分类defsplit_by_group():#获取需......
  • 记录一个批量压缩文件夹的方法
    importosimportzipfilefromtkinterimportfiledialogclassZipDir:"""ZipFile()用于创建1个zip文件对象,示例中的三个参数分别表示:filename:压缩成的zip包的路径(含压缩包名称);例如:xxx.zipmode:可选r,w,a,代表不同的打开文件的方式;r只读;w重写;a添加......
  • 记录一个按文档长度分割Excel文件的方法
    importtkinterastkimportpandasaspdimporttkinter.filedialogimportosimporttracebackwindows=tk.Tk()####按长度拆分——自定义函数##拆分函数defdivision_by_length(iterable,length):iterable_len=len(iterable)start=0while1:......
  • 记录一个批量拆分数据粘贴到各个表里的小脚本
    importosimporttkinterastkimporttkinter.filedialogfromtkinterimportttkimporttkinter.messageboxfromtkinterimportscrolledtextimportxlwingsasxwfrompandasimportExcelFilefrompandasimportread_excelglobaldf_total,cbox_sheet_ori,cbo......
  • 记录一个多对多数据匹配,但是效率不高
    importitertoolsimportosimportpandasaspddefget_result(hope,list_input,used):""":paramhope:#期望相加所得参数:paramlist_input:#所有数值:paramused:#已使用过列表,起始数据为空......
  • 记录一次Xlwings操作excel替换内容
    importosimporttkinter.filedialogimportxlwingsasxwclassSubstitute:path=tkinter.filedialog.askdirectory(title='!!!!!!!!!!!!!!!!!请选择excel存放路径')#修改此处替换文本,前为原文本,后为新文本,最后一组后面不需要逗号dict1={'购销合同':'买卖合同','货物运输合......
  • JOISC 2024 记录
    感觉我太滞后了Day1T1Fish3我们可以做的操作是单点加\(D\)和后缀加\(1\),考虑把这个操作放在差分数组上,则操作变成了:单点加\(1\)。\(i\)处加\(D\),\(i+1\)处\(-D\)。需要最小化第二种操作的使用次数,发现只有对于所有差分数组中的负数是不得不用第二种操作的,而对于......
  • 深度学习吴恩达学习记录 133-140
    目标定位:对于图像上的目标,如果进行识别后还需要将其在图上进行框出,我们就要多训练几个数据,一个就是识别目标的中心点,另外一个就是我设置圈出的长与宽可以记为bx,by,bh,bw;根据训练出的模型在图像检测上预测出这四个点的位置,当物体出现的时候就可以根据这个数据进行定位。当然要做......