用命令在窗户上运行的水壶

问题描述 投票:0回答:1

我使用Kettle在Windows系统上运行命令我的代码:

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中设置了test参数,但也无法运行

kettle
1个回答
0
投票

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

C:

CD \ Pentaho的\设计工具\数据集成\

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

我通常用参数包装参数:[name] = [value]子句,因为在PDI Windows中,你正在使用多平台系统,你正在运行一个Windows命令,它将落在Unix VM上(Java) VM),因此必须省略斜杠,正斜杠和其他控制字符。

我没有包含引号的唯一命令是-file。

如果您直接从CMD使用命令,则需要导航到数据集成文件夹,以便使用命令调用Pan / Kitchen。

© www.soinside.com 2019 - 2024. All rights reserved.