Kettle Setting variables

Source: Internet
Author: User
kettle Variable type kettle variable is divided into: 1. The environment variable is set by the set variables component, which can range from: JVM variables, job variables, parent job variables, root job variables. To refer to a variable by ${var} or%%var%% variable 2. The property file variable is set in the Kettle.property file under the. Kettle directory , and can be referenced in Kettle 3. Command-line arguments (equivalent to positional parameters) Command-line arguments are parameters that are passed in the pan when the transformation is performed, and can be used in SQL. Placeholder, also called positional parameter
Note: Either parameter can be represented in SQL with ${var} or%%var%%
Second, set the variable 1. Set the environment variable job:
To edit a set variable component:
Transformation:
Table Input:

2. Set properties file variable edit C:\Users\ user name \.kettle directory kettle.properties file, write: customernumber=124
Then restart the spoon (kettle) Conversion:
Table Input:

3. Set command-line argument variable conversions:

To obtain System information:
Table Input:







From for notes (Wiz)

Kettle Setting variables

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.