Pentaho Data Integration
InstallationBusiness AnalyticsCToolsData CatalogData QualityLLMs
  • Overview
    • Pentaho Data Integration ..
  • Data Integration
    • Getting Started
      • Configuring PDI UI
      • KETTLE Variables
    • Concepts & Terminolgy
      • Hello World
      • Logging
      • Error Handling
    • Data Sources
      • Flat Files
        • Text
          • Text File Input
          • Text File Output
        • Excel
          • Excel Writer
        • XML
          • Read XML
        • JSON
          • Read JSON
      • Databases
        • CRUID
          • Database Connections
          • Create DB
          • Read DB
          • Update DB
          • Insert / Update DB
          • Delete DB
        • SCDs
          • SCDs
      • Object Stores
        • MinIO
      • SMB
      • Big Data
        • Hadoop
          • Apache Hadoop
    • Enrich Data
      • Merge
        • Merge Streams
        • Merge Rows (diff)
      • Joins
        • Cross Join
        • Merge Join
        • Database Join
        • XML Join
      • Lookups
        • Database Lookups
      • Scripting
        • Formula
        • Modified JavaScript Value
        • User Defined Java Class
    • Enterprise Solution
      • Jobs
        • Job - Hello World
        • Backward Chaining
        • Parallel
      • Parameters & Variables
        • Parameters
        • Variables
      • Scalability
        • Run Configurations
        • Partition
      • Monitoring & Scheduling
        • Monitoring & Scheduling
      • Logging
        • Logging
      • Dockmaker
        • BA & DI Servers
      • Metadata Injection
        • MDI
    • Plugins
      • Hierarchical Data Type
  • Use Cases
    • Streaming Data
      • MQTT
        • Mosquitto
        • HiveMQ
      • AMQP
        • RabbitMQ
      • Kafka
        • Kafka
    • Machine Learning
      • Prerequiste Tasks
      • AutoML
      • Credit Card
    • RESTful API
    • Jenkins
    • GenAI
  • Reference
    • Page 1
Powered by GitBook
On this page
  1. Data Integration
  2. Getting Started

KETTLE Variables

The kettle.properties file contain all the global variables for KETTLE.

PreviousConfiguring PDI UINextConcepts & Terminolgy

Last updated 1 month ago

Workshop - Kettle Variables

In this workshop we'll take a look at the main configuration file - kettle.properties

  • Learn about Global variables.

  • Set variables in the kettle.properties file.


Global Variables - kettle.properties

Variables can be used throughout Pentaho Data Integration, including in transformation steps and job entries. You define variables by setting them with the Set Variable step in a transformation or by setting them in the kettle.properties file in the directory.

The way to use them is either by grabbing them using the Get Variable step or by specifying meta-data strings like:

${VARIABLE} or:

%%VARIABLE%%

Both formats can be used and even mixed, the first is a UNIX derivative, the second is derived from Microsoft Windows. Dialogs that support variable usage throughout Pentaho Data Integration are visually indicated using a blue dollar sign.

You can use + space hot key to select a variable to be inserted into the property value. Mouse over the variable icon to display the shortcut help.

  1. Select Edit -> Edit the kettle.properties file

  2. Highlight the first row and right mouse click, and select the following option.

  1. Add the following variable values.

Variable Name
Value

DIR_SAMPLES

/home/pentaho/Temp

  1. Save.

The kettle.properties can also be edited manually

  1. In a Terminal.

cd
cd /home/pentaho/.kettle
nano kettle.properties

The global variable is accessed, in transformations, by selecting Ctrl + Spacebar, wherever you see a blue diamond.


Global variables
kettle.properties
Global variable in Transformation