- Pentaho Data Integration Quick Start Guide
- María Carina Roldán
- 289字
- 2021-07-16 17:59:10
Understanding the Kettle home directory
When you run Spoon for the first time, a folder named .kettle is created in your home directory by default. This folder is referred to as the Kettle home directory.
The folder contains several configuration files, mainly created and updated by the different PDI tools. Among these files, there is the kettle.properties file.
The purpose of the kettle.properties file – created along with the .kettle folder, the first time you run Spoon – is to contain variable definitions with a broad scope: Java Virtual Machine. Therefore, it's the perfect place to define general settings; some examples are as follows:
- Database connection settings: host, database name, and so on
- SMTP settings: SMTP server, port, and so on
- Common input and output folders
- Directory to send log files to
Before continuing, let's add some variables to the file. Suppose that you have two folders, named C:/PDI/INPUT and C:/PDI/OUTPUT, which you will use for storing files. The objective will be to add two variables, named INPUT_FOLDER and OUTPUT_FOLDER, containing those values:
- Locate the Kettle home directory. If you work in Windows, the folder could be C:\Documents and Settings\<your_name> or C:\Users\<your_name>, depending on which Windows version you have. If you work in Linux (or similar) or macOS, the folder will most likely be /home/<your_name>/.
- Edit the kettle.properties file. You will see that it only contains commented sample lines.
- You can safely remove the contents of the file and define your own variables by typing the following lines:
INPUT_FOLDER=C:/PDI/INPUT
OUTPUT_FOLDER=C:/PDI/OUTPUT
Save the file and restart Spoon, so that it can recognize the variables defined in the file. We will learn how to use these variables in Chapter 2, Getting Familiar with Spoon.
- 帶團(tuán)隊(duì):有效將下屬變鐵桿的管理術(shù)
- MCT教練式變革模式:中國企業(yè)持續(xù)成長之道
- 成為老板的第一步:想TA所想!(全15冊)
- 全球頂級企業(yè)通用的10種人力資源管理方法
- 薪酬管理實(shí)務(wù)手冊
- 麥肯錫決斷力:停止無效努力的“三速”法則
- 未來公司的挑戰(zhàn):管理者必須回答的5大問題
- 硅谷帝國
- HR薪酬管理整體解決方案:共享價(jià)值分配新規(guī)則
- 從獨(dú)占性到合法性:集群企業(yè)知識資產(chǎn)治理
- 不可不學(xué)的管理學(xué)32定律
- 九段HR:中國企業(yè)人力資源管理一本通
- 品牌異化:高績效品牌的差異化戰(zhàn)略
- 要領(lǐng):斯坦福校長領(lǐng)導(dǎo)十得
- 企業(yè)家:經(jīng)濟(jì)增長的國王(張維迎企業(yè)理論四書)