1. 限制
- 要求版本为Phoenix5.x及HBase2.x
- 仅支持通过Phoenix QeuryServer导入数据,因此您Phoenix必须启动QueryServer服务才能使用本插件
- 不支持清空已有表数据
- 仅支持通过phoenix创建的表,不支持原生HBase表
- 不支持带时间戳的数据导入
2. 安装Datax
详情见官方文档:https://github.com/alibaba/DataX/blob/master/userGuid.md
注意:本教程分别使用了 ”hive读“、”Phoenix5.x写“,但是安装后的”plugin“中不包含 ”Phoenix5.x写“需要的插件:hbase20xsqlwriter,所以要重新编译安装对应插件:
[root@ttt ~]# git clone https://github.com/alibaba/DataX.git
Cloning into 'DataX'...
remote: Enumerating objects: 7, done.
remote: Counting objects: 100% (7/7), done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 1657 (delta 1), reused 4 (delta 0), pack-reused 1650
Receiving objects: 100% (1657/1657), 11.55 MiB | 113.00 KiB/s, done.
Resolving del