Kettle 从oracle导入hhbase配置
Hbase output配置
一:Configure connection配置
1:找到hbase的主节点作为hadoop cluster的链接地址
2:从hbase主节点中获取对应的hbase-site.xml数据。用来配置URL to hbase-site.xml
[注意]:这里windows下地址需要在路径前面加 file:///
3:url to hbase-defaulst.xml地址格式同上即可
4:Hbase table name 和 Mapping name的获取需要去配置Create/Edit Mappings页面标签
以上的配置如图1所示:
图1
二:Create/Edit Mappings配置
1:点击 get table names按钮获取hbase中表名
2:获取对应的表名后,需要自定义一个MAPPING
3:然后点击Get incoming fields获取对应的字段【这里需要注意,对获取的字段需要设置对应的rowkey信息,列表头上有Key。选择那个为key,就将对应的字段选择Y,并且需要给对应的类型Type】
4:完成后点击savaMapping保存对应的mappding信息
5:这时候可以点Configure Connection选项卡,点击获取get table name ,然后在去获取对应的get mappings for the speci