首页 > 解决方案 > 使用命令在 Windows 上运行的水壶

问题描述

我使用在 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中设置了测试参数,但也无法运行

标签: kettle

解决方案


就个人而言,我将此模板用于批处理文件

C:

cd\Pentaho\设计工具\数据集成\

Pan.bat -file:C:/foo/bar/your.ktr "-param:test=pp"

我通常将 param:[name]=[value] 子句用引号括起来,因为在 PDI Windows 中,您正在使用多平台系统,您正在运行将登陆 Unix VM(Java VM),因此必须省略斜杠、正斜杠和其他控制字符。

我唯一没有用引号括起来的命令是 -file。

如果您直接从 CMD 使用命令,请记住您需要导航到数据集成文件夹才能使用命令调用 Pan / Kitchen。


推荐阅读