Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: Simple Setting of an variable

  1. #1
    Join Date
    Jul 2007
    Posts
    27

    Default Simple Setting of an variable

    Hello Forum,

    The task is to collect information from several log-files and to store it, after control, transformation etc, in a warehouse.

    The basic path to the log files I would like to store in an Environmental Variable.

    I would like to do it at the beginning of the main job "DoAll" which calls the transformation "Create variables". The variable, let's say "PATH_TO_LOGS" should be visible all over the application.

    How can I do that?? Is the element "Set Variable" the right one? I cannot see that it is possible to assign a value direct to
    "PATH_TO_LOGS".


    In a second step I would like to store the path in a text file. The goal is to be inpendent from the real script.
    Does Kettle support this, or do I have to make my own workaround for it?


    Greetings from Germany

    wfr

  2. #2
    Join Date
    Nov 1999
    Posts
    9,729

    Default

    I don't think Kettle variables are passed down to shell scripts, but I could be wrong.

    However, you can use the variables you define as arguments for your shell script.

    Matt

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

    Default

    In v3 they are passed down as real variables (to scripts)

    Regards,
    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.