Kettle Excel import data to a database

Source: Internet
Author: User

Recent study of Big data processing, due to the needs of project development, using an easy way to import data from Excel into the database, the development of the use of kettle tools.

Kettle Tool installation is very simple, after downloading from the official website, directly extracted to the set of the drive letter can be (if you configure the Java environment variables, Path,classpath).

Double-clicking the Spoon.bat file in the Windows environment appears as:

Click on the icon to make a local file import configuration

Select the option under the Red wireframe and click OK

Follow the above actions and click OK.

Just click to close.

You can create a Data transformation project by either of the two places above.

Select the Excel input from the left input, drag to the right, and double-click the icon that appears.

Follow the steps above, select Excel to import the data, and then select the worksheet.

Then click Get sheet name

Click OK

The display of the field is then configured.

Click OK so that the Excel input configuration is configured.

Next, configure the table output (to export the data in Excel to a table in the target database, and note that the table in the database is preferably in the same field as the Excel table, so that the next data field mapping is more convenient)

Drag the table output to the right from the output on the right

Establish a connection relationship between the two (place the mouse over the Excel input, an option appears, place the mouse over the corresponding option, and then drag the mouse to the table output to appear in the Blue line)

After the data connection succeeds, select the configuration of the table that imports the data into the target table

Then select the database field and configure the field mapping

This adds the fields to the rightmost box and clicks OK.

Click OK, so the entire configuration will be over. Click to start it.

。 This allows you to view the data in the corresponding table in the database

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.