Kettle's resource pool

Source: Internet
Author: User

In kettle, the repository of the storage of resources such as transformations or jobs is called a resource library: it is divided into a file resource library and a database repository.

A transformation or job can belong to a repository or a separate file form exists.

I. Database Resource Library

1.1 Creating a database as a database repository in MySQL

1.2 Create DATABASE Repository Tool--"Resource Library--" Connect Resource Library--"Click the Plus--" Select Create Database Repository

Because we want to use MySQL as the repository, so kettle need to connect to MySQL, that is, we need a MySQL driver package, we have to copy the driver package into the Kettle Lib directory.

Create a database connection and pass the test

Select Create or update

1.3 After creation, verify that a large number of tables are created in the database

Seeing these tables means that a database repository has been created.

1.4 Create a transform and create a DB connection to verify that the unshared DB connection can not be shared in the repository

It is possible to pass the test.

Second, the Document Resource library

Tool--"Resource Library"

Use the steps above to exit the database repository

2.1 Creating a File resource library

The same way you created the database repository above, but you chose to create a file repository.

2.2 Under the file repository, create a DB connection to verify that it can be shared within the file repository

The answer is yes.

Iii. Requirements: Exporting tables from MySQL to txt files

In the Ldp_huyu database, there is a person table as follows

3.1 Creating conversions like

The configuration in which the table is entered:

Where the text file output is configured:

3.2 Run this conversion

Final Build File

Iv. Comparison of database resource library and file resource library

Use a database to manage, easier to cross-platform and share, but not as good at versioning as the file repository, and the database needs to go to the network, network connectivity anomalies can also lead to job failure

The trouble with using a file repository is the use of cross-platform, generic, and SVN-controlled tools.

Kettle's resource pool

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.