nohup ./carte.sh pwd/carte-config-master-8080.xml &
4、安装目录data-integration下的pwd文件夹下的
carte-config-master-8080.xml文件中配置了访问kettle的用户名,密码信息,默认账号密码为:cluster。在步骤3启动后,输入
http://127.0.0.1:8080/
可以用来看kettle作业和转换的执行结果日志。
application-local.yaml文件中需配置kettle调用的地址,端口号,用户名,密码等信息。
5、项目中遇到的问题:
5.1、项目中kettle相关的jar包通过maven下载不下来。我通过在网络上的maven仓库(
https://mvnrepository.com/)
下载下对应的jar包,然后放到本地的maven仓库中,执行命令将jar引入maven仓库中。(如果未设置仓库路径则在/Users/liwentao/.m2/repository下,Windows位于
C:\Users\用户名.m2目录下
)
进入到该jar的下载位置,打开命令行窗口,执行命令下面的命令,出现bulid success就说明成功了。
mvn install:install-file -Dfile=metastore-9.1.0.0-324.jar -DgroupId=pentaho-kettle -DartifactId=metastore -Dversion=9.1.0.0-324 -Dpackaging=jar
maven命令解释:
-Dfile:指明你当前jar包的位置;
-DgroupId, -DartifactId, -Dversion:三个参数,就是指明了存放maven仓库中的位置;
-Dpackaging :指明文件类型;
这里的jar会自动打到maven的配置文件settings.xml中配置的仓库路径中。
5.2、项目启动时报错:org.pentaho.di.core.exception.KettleException:
Unable to find plugin with ID 'Kettle'. If this is a test, make sure kettle-core tests jar is a dependency. If this is live make sure a kettle-password-encoder-plugins.xml exits in the classpath
解决办法:在项目的resources下创建名为kettle-password-encoder-plugins.xml的文件,内容为:
Kettle Password Encoder
org.pentaho.di.core.encryption.KettleTwoWayPasswordEncoder
5.3、出现各种:java.lang.NoClassDefFoundError: XXX
解决方法:缺少哪个类,就找相应的依赖引入pom文件中即可。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)