Kettle under Linux for shell scripts to perform conversion tasks

Source: Internet
Author: User

1 Create a good conversion under Windows and place it under one of the Linux folders. such as: Put the 0816_em.ktr file under the/home/cfj/kettle/testdemo.

Note that the database user name and password may need to be changed if it is a job file such as: JOB0816_01.KJB. Remember to change the path in which it is stored, such as:

2 Edit the script file, put it in the corresponding folder, and give permission

The permissions are given in the following ways:

chmod +x./test.sh #使脚本具有执行权限
./test.sh #执行脚本

The testshell0817.sh script is as follows:

#!/bin/bash
Export Java_home=/usr/lib/jvm/java-8-oracle
Export JRE_HOME=${JAVA_HOME}/JRE
Export Classpath=.:${java_home}/lib:${jre_home}/lib
Export Path=${java_home}/bin: $PATH
/home/cfj/kettle/data-integration/pan.sh-file=/home/cfj/kettle/testdemo/0816_em.ktr

Kettle under Linux for shell scripts to perform conversion tasks

Related Article

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.