我使用在windows系统上运行的Kettle命令和我的代码:
C:\Users\Administrator>F:\data-integration\pan.bat /file F:\data-integration/repository/test/test.ktr /param:test=pp当我添加/param:test=pp时,有一个问题:
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/F:/data-integration/launcher/../lib/slf4j-log
4j12-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/F:/data-integration/plugins/pentaho-big-data-
plugin/lib/slf4j-log4j12-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
2019/04/28 17:44:11 - Pan - ERROR (version 8.3.0.0-211, build 8.3.0.0-211 from 2
019-03-12 03.40.41 by Administrator) : Command Line Options我已经在test.ktr中设置了测试参数,但也无法运行
发布于 2019-04-29 21:17:01
就我个人而言,我将此模板用于批处理文件
C:
cd\Pentaho\design-tools\data-integration\
栏文件:C:/foo/ Pan.bat /Your.ktr "-param:test=pp“
我通常用引号将param:name=value子句括起来,因为在PDI Windows中,您使用的是多平台系统,您运行的Windows命令将登陆Unix VM ( Java ),因此斜杠、正斜杠和其他控制字符必须省略。
我唯一不用引号括起来的命令是-file。
如果您直接从CMD使用该命令,请记住,您需要导航到您的数据集成文件夹,以便使用这些命令调用Pan / Kitchen。
https://stackoverflow.com/questions/55889076
复制相似问题