spoon一些实际应用
目前使用的版本是version 9.2 帮助信息 Pentaho Data integration这个名字真不好记,就叫他spoon吧。
1. 如果要在windows的下执行shell脚本,免去拷贝到linux下测试的麻烦,可以这样做。
在你的testjob作业下
加入shell脚本组件(组件名称testshell)-右击编辑作业入口,如果你的脚本放在作业同目录下
在脚本文件名:${Internal.Entry.Current.Directory}/test.sh
在工作路径:${Internal.Entry.Current.Directory}
然后,你修改spoon.bat
在set OPT后面加入新的一行
set KETTLE_SHELL_INTERPRETER="E:\Program Files\Git\bin\bash.exe"
Git\bin\bash.exe 是你在安装windows的git版本的时候安装的实际目录
在你执行的时候, 你会看到bash的界面短暂的跳出来,执行完毕之后又会关闭,日志如下
2025/04/27 11:03:07 - testshell - Running on platform : Windows 10
2025/04/27 11:03:07 - testshell - Executing command : cmd.exe /C "D:\yourjobdir\test.sh"
2025/04/27 11:03:21 - testjob - 完成作业项[testshell] (结果=[true])
浙公网安备 33010602011771号