查了网上资料,无外乎如下:
在CMD中切换到pdi的路径: D:\data-integration, 然后输入命令:
D:\data-integration>Pan.bat /file:"D:\data-integration\pdi_job\test.ktr"
可是系统不断提示如下:
WARNING: Using java from path
DEBUG: _PENTAHO_JAVA_HOME=
DEBUG: _PENTAHO_JAVA=java.exe
D:\data-integration
The system cannot find the path specified.
The system cannot find the path specified.
GOTO was unexpected at this time.
以为是命令参数错了,修改为:Pan.bat /file="D:\data-integration\pdi_job\test.ktr"
或者:Pan.bat /file=D:\data-integration\pdi_job\test.ktr
依然报错。
后来按照之前跑kitchen的经验,创建如下bat文件,却能正常跑了。
========================
D:
cd "\data-integration"
call pan.bat /file:D:\data-integration\pdi_job\test.ktr
exit
=========================