2017-08-26 34 views
0

需要使用Kitchen在Windows上使用命名參數(「InputDate」)運行Kettle作業的幫助。如何讓廚房命名參數在Windows上工作?

這在Linux的偉大工程:

kitchen.sh -file:ingest.kjb -param:InputDate=2017-07-10

但我不能在Windows上得到這個工作。我已經嘗試了Cygwin64以及Windows中的命令提示符。無論哪種情況,作業都不能接收參數。

我相信連字符等號在Windows中有問題。因此,根據Kettle文檔,您可以用'/'替換' - ',並且可以用':'替換'='。

但在命名參數的情況下,它不可能取代等號,因爲這並不在命令行工作/param:InputDate:2017-07-10

我已經嘗試了所有的以下

  • /param:InputDate:2017-07-10
  • /param:InputDate 2017-07-10
  • /param:InputDate=2017-07-10
  • -param:InputDate 2017-07-10
  • -param:InputDate=2017-07-10

一個非此即彼得到這個錯誤:

2017/08/25 17:17:08 - Kitchen - ERROR (version 7.1.0.0-12, build 1 from 2017-05-16 17.18.02 by buildguy) : Command Line Options 

或得到此異常:

Caused by: java.lang.RuntimeException: Central Log Store is not initialized!!! 

什麼是Windows中的命名參數傳遞給廚房的正確方法?

回答

1

對於Windows CMD以下語法應該工作:

kitchen.bat /file:ingest.kjb "/param:InputDate=2017-07-10" 
+0

感謝那些CMD下工作,從而回答了這個問題。但我想Cygwin不受支持,因爲仍然有異常。 – swdev

相關問題