Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: Reading Kettle Command Line Parameters

  1. #1
    Join Date
    Jan 2008
    Posts
    1

    Default Reading Kettle Command Line Parameters

    Using v3 and trying to figure out the syntax for a using a command line parameter.

    I have a job that calls a transformation which contains a "Get System Data" step to read in a parameter from the command line. I give it a name, "indate", and specify the type as "command line argument1". What format should this command line argument take?

    I tried the following and it doesn't seem to work:


    $KETTLE_HOME/kitchen.sh -rep:KettleUAT -job:"Sample Job" -dir:/abc -user:xyz -pass:rst -level:Basic -indate:2007-1-7


    There are a few posts regarding this subject but I couldn't find any specific examples. Any suggestions?

    Thanks,

    Greg

  2. #2
    Join Date
    Jul 2007
    Posts
    247

    Default

    Parameters are positional, not name-based. See also this thread for details: http://forums.pentaho.org/showthread.php?t=49116

    You could also edit kitchen.sh to take your parameters as variables, e.g.
    Code:
    -D<VARIABLE_NAME>=<VARIABLE_VALUE>
    See line OPT= ... for examples.

    Regards,
    Ben

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.