Hitachi Vantara Pentaho Community Forums
Results 1 to 4 of 4

Thread: Can I pass my parameter file name as an option with pan.sh running a transformation?

  1. #1
    Join Date
    Aug 2007
    Posts
    7

    Default Can I pass my parameter file name as an option with pan.sh running a transformation?

    Can I pass my parameter file name as an option with pan.sh to run a transformation that uses it?

    I need to specify which parameter file to use in running a transformation by pan.sh at runtime. How do I do that? I was also worrying about the -D option because it sets the system property, which may cause collisions when I run two or more such transformations at the same time.

    I am using Kettle version 2.5.1.

    Thanks,

  2. #2
    Join Date
    May 2006
    Posts
    4,882

    Default

    use it as positional argument and use get system info to get at the arguments (in 2.5 you can't all 9 positional parameters that would normally be supported).

    Regards,
    Sven

  3. #3
    Join Date
    Aug 2007
    Posts
    7

    Default Thanks for the tip

    The positional arguments would work well for me.

    Is this the syntax to run it?

    /opt/kettle/default/pan.sh -file="/opt/kettle/default/workspace/transformations/Get System Info - Command Line Argument and filter.ktr" -level=Maximal "B" > arg1.log

    where "B" is the command argument 1.


    Thanks,

  4. #4
    Join Date
    May 2006
    Posts
    4,882

    Default

    Yep......

    Sven

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.