# PDI-tutorials **Repository Path**: techcave/pdi-tutorials ## Basic Information - **Project Name**: PDI-tutorials - **Description**: PDI 学习例子 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2020-12-25 - **Last Updated**: 2023-02-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # PDI-tutorials PDI 原水壶 Kettle,这里是我学习和练习 PDI 的一些记录。 * [Gitee 仓库](https://gitee.com/techcave/pdi-tutorials) * [github 仓库](https://github.com/5imx3g/PDI-tutorials) 官网:https://www.hitachivantara.com/en-hk/products/data-management-analytics/pentaho-platform/pentaho-data-integration.html 社区版下载地址:https://sourceforge.net/projects/pentaho/ ## Tutorials_1 一个简单的例子将数据从 Table_1 保存到 Table_2。 * [练习1 B站](https://b23.tv/SJPOp9) * [练习1 西瓜视频](https://v.ixigua.com/JpFBvas/) ## Tutorials_2 加载 Excel 文件,保存到另外一个 Excel 文件和数据库表Table_2中。 * [练习2 B站](https://www.bilibili.com/video/BV1Tp4y1B7Be/) * [练习2 西瓜视频](https://www.ixigua.com/i6911320394481795584/) ## Tutorials_3 加载 Json 文件,保存到另外一个 Json 文件和数据库表Table_2中。 * [练习3 B站](https://www.bilibili.com/video/BV1Ky4y1U7iG/) * [练习3 西瓜视频](https://www.ixigua.com/i6911857625093112320/) ## Tutorials_4 REST接口的访问:通过访问新浪热刺接口,将热点新闻保存到数据库中。 * [练习4 B站](https://www.bilibili.com/video/BV12K4y157U2) * [练习4 西瓜视频](https://www.ixigua.com/i6915605345972781568/) ## Tutorials_5 JavaScript 脚本:在 PDI 中使用 JavaScript 脚本处理数据。 * [练习5 B站](https://www.bilibili.com/video/BV1xX4y1K7WF) * [练习5 西瓜视频](https://www.ixigua.com/i6916878986651894287/) ## Tutorials_6 Java Code 脚本:在 PDI 中使用 Java Code 脚本处理数据。 * [练习6 B站](https://www.bilibili.com/video/BV1Wt4y1z7nH/) * [练习6 西瓜视频](https://www.bilibili.com/video/BV1Wt4y1z7nH/) ## Tutorials_7 任务处理:在 PDI 中通过任务执行转换。 * [练习7 B站](https://www.bilibili.com/video/BV1D5411n7nw/) * [练习7 西瓜视频](https://www.ixigua.com/i6917614317328466432/) ## Tutorials_8 任务处理:在 PDI 中通过任务执行转换。 * [练习8 B站](https://www.bilibili.com/video/BV1A5411H78J/) * [练习8 西瓜视频](https://www.ixigua.com/i6918010742113305088/) ## Tutorials_9 参数应用:在 PDI 中如何使用参数。 * [练习9 B站](https://www.bilibili.com/video/BV17N411d7uN/) * [练习9 西瓜视频](https://www.ixigua.com/i6918389926182519296/) ## Tutorials_10 并行运行: 每个步骤都是并行运行的 * [练习10 B站](https://www.bilibili.com/video/BV1nz4y1S7aB/) * [练习10 西瓜视频](https://www.ixigua.com/i6921331203853255183/) ## Tutorials_11 同步执行:如何同步执行转换 * [练习11 B站](https://www.bilibili.com/video/BV16r4y1K7h2//) * [练习11 西瓜视频](https://www.bilibili.com/video/BV1Zt4y1q79K/) ## Tutorials_12 二次开发: 二次开发环境搭建 * [练习12 B站](https://www.bilibili.com/video/BV1Zt4y1q79K/) * [练习12 西瓜视频](https://www.ixigua.com/i6922975172697784832/) 先手动将开发库添加到本地仓库: ``` mvn install:install-file -Dfile=kettle-core-9.1.0.0-324.jar -DgroupId=pentaho-kettle -DartifactId=kettle-core -Dversion=9.1.0.0-324 -Dpackaging=jar mvn install:install-file -Dfile=kettle-engine-9.1.0.0-324.jar -DgroupId=pentaho-kettle -DartifactId=kettle-engine -Dversion=9.1.0.0-324 -Dpackaging=jar mvn install:install-file -Dfile=kettle-ui-swt-9.1.0.0-324.jar -DgroupId=pentaho-kettle -DartifactId=kettle-ui-swt -Dversion=9.1.0.0-324 -Dpackaging=jar mvn install:install-file -Dfile=kettle-dbdialog-9.1.0.0-324.jar -DgroupId=pentaho-kettle -DartifactId=kettle-dbdialog -Dversion=9.1.0.0-324 -Dpackaging=jar mvn install:install-file -Dfile=metastore-9.1.0.0-324.jar -DgroupId=pentaho-kettle -DartifactId=kettle-metastore -Dversion=9.1.0.0-324 -Dpackaging=jar mvn install:install-file -Dfile=kettle-log4j-core-9.1.0.0-324.jar -DgroupId=pentaho-kettle -DartifactId=kettle-log4j-core -Dversion=9.1.0.0-324 -Dpackaging=jar mvn install:install-file -Dfile=pentaho-encryption-support-9.1.0.0-324.jar -DgroupId=pentaho-kettle -DartifactId=kettle-encryption-support -Dversion=9.1.0.0-324 -Dpackaging=jar mvn install:install-file -Dfile=commons-lang-2.6.jar -DgroupId=org.apache.commons -DartifactId=org.apache.commons.lang -Dversion=2.6 -Dpackaging=jar ``` pom.xml 文件参考: ``` 4.0.0 org.springframework.boot spring-boot-starter-parent 2.3.4.RELEASE com.khidi sync 0.1 sync Demo project for Spring Boot 1.8 9.1.0.0-324 true spring-milestones Spring Milestones https://repo.spring.io/milestone false jcenter-snapshots jcenter http://oss.jfrog.org/artifactory/oss-snapshot-local/ org.springframework.boot spring-boot-starter org.springframework.boot spring-boot-starter-logging org.springframework.boot spring-boot-starter-jersey pentaho-kettle kettle-core ${pdi.version} pentaho-kettle kettle-engine ${pdi.version} pentaho-kettle kettle-ui-swt ${pdi.version} pentaho-kettle kettle-dbdialog ${pdi.version} pentaho-kettle kettle-metastore ${pdi.version} pentaho-kettle kettle-log4j-core ${pdi.version} pentaho-kettle kettle-encryption-support ${pdi.version} log4j log4j 1.2.17 org.apache.commons commons-lang3 3.11 commons-lang commons-lang 2.6 org.apache.commons commons-vfs2 2.6.0 org.apache.commons commons-collections4 4.4 commons-collections commons-collections 3.2.2 com.google.guava guava 29.0-jre commons-io commons-io 2.8.0 commons-codec commons-codec 1.15 javax.xml.ws jaxws-api 2.3.1 com.sun.jersey.contribs jersey-apache-client4 1.19.4 org.scannotation scannotation 1.0.3 com.googlecode.json-simple json-simple 1.1.1 org.eclipse.birt.runtime.3_7_1 org.mozilla.javascript 1.7.2 com.sun.mail javax.mail 1.6.2 org.apache.poi poi 3.17 mysql mysql-connector-java 5.1.49 mysql mysql-connector-java 8.0.22 com.oracle ojdbc6 12.1.0.1-atlassian-hosted com.microsoft.sqlserver mssql-jdbc com.github.ulisesbocchio jasypt-spring-boot-starter 3.0.3 org.springframework.boot spring-boot-starter-test test org.junit.vintage junit-vintage-engine org.springframework.boot spring-boot-maven-plugin com.github.ulisesbocchio jasypt-maven-plugin 3.0.3 ``` > 二次开发参考: > * https://help.pentaho.com/Documentation/8.2/Developer_Center/PDI/Embed > * https://wiki.pentaho.com/pages/viewpage.action?pageId=13175504 > * https://jaxenter.com/run-pdi-based-etl-java-154655.html