Hitachi Vantara Pentaho Community Forums
Results 1 to 7 of 7

Thread: Job - parameter not considered when ran using kitchen

  1. #1

    Default Job - parameter not considered when ran using kitchen

    Hello.

    I'm having trouble running a job on a command line using kitchen.

    Very simple test, I create a job, drop a START and a WRITE TO LOG.
    My job has a parameter named TEST with a default value of "defaultvalue".

    In the WRITE TO LOG, I write the value of that parameter.

    I execute the job using the following command:
    kitchen -file:C:\Test\Test.kjb -param:TEST="NewValue"

    When the job execute, it displays "defaultvalue - This is the value of the TEST parameter"

    What is it I'm doing wrong???
    Thanks

    (PDI v7.0)

  2. #2
    Join Date
    Jun 2012
    Posts
    5,534

    Default

    Please, attach a simple demo.
    So long, and thanks for all the fish.

  3. #3

    Default

    Grrr.... keep getting an error trying to upload a file. I've tried with IE, Edge and Google Chrome, same result.

    So I've uploaded a very basic job here:
    http://www.filedropper.com/test_187

    Which I run on command prompt using :
    kitchen -file:C:\Test.kjb -param:TEST="NewValue"

  4. #4
    Join Date
    Jun 2012
    Posts
    5,534

    Default

    Windows is a bit capricious about commandline arguments.
    "-param:TEST=NewValue" will work.
    In your case -param:TEST= is one argument and NewValue is one more ...
    No problem with bash, though.

    BTW: Have you tried to upload a zip file already?
    Last edited by marabu; 02-12-2017 at 01:50 PM.
    So long, and thanks for all the fish.

  5. #5

    Default

    Yes I tried uploading a zip as well without success, got error too

    Thanks for your help, it work now with the parameters.

  6. #6
    Join Date
    Jun 2012
    Posts
    5,534

    Default

    If you tried "Basic upload", too, I'm at my wits' end.
    So long, and thanks for all the fish.

  7. #7

    Default

    Quote Originally Posted by marabu View Post
    If you tried "Basic upload", too, I'm at my wits' end.
    Yeah, tried that too, still no luck.

    No problem for now, maybe I'll switch my workstation @ home to Linux and then it will work.

    Thanks for your help anyway

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.