kettle与hive建立连接教程

kettle连接hive

版本说明:kettle:pdi-ce-8.3.0.0-371.zip

          Hadoop集群:hadoop-3.3.2

          hive: hive-3.1.3

1、修改kettle的plugin.properties 文件(文件位置D:\programfile\data-integration\plugins\pentaho-big-data-plugin)

主要设置

 active.hadoop.configuration=hdp30

.

2、从Hadoop、hive上下载相关文件并替换kettle中对应的文件

sz core-site.xml hdfs-site.xml yarn-site.xml mapred-site.xml

sz hive-site.xml

要替换kettle文件的位置:D:\programfile\data-integration\plugins\pentaho-big-data-plugin\hadoop-configurations\hdp30

3、从hive的lib目录上下载以hive开头的jar包并替换kettle中对应的包

sz hive-*

要替换kettle中的包的位置:

D:\programfile\data-integration\plugins\pentaho-big-data-plugin\hadoop-configurations\hdp30\lib

说明:把hdp30中以hive开头的包删除后再替换即可;注意是要放在hdp30目录下的lib文件夹,而不是像把Oracle/MySQL驱动一样放在data-integration目录下的lib文件夹

4、验证

启动Hadoop集群及hiveserver2服务

重启ketlle                                                                                                          

如下建立db连接,恭喜测试成功!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值