DataX的安裝
DataX的安裝
1. 可下載tar包
https://github.com/alibaba/DataX/blob/master/userGuid.md
2. 下載源碼自己編譯
git clone https://github.com/alibaba/DataX.git
打包
mvn -U clean package assembly:assembly -Dmaven.test.skip=true
遇到錯誤
[ERROR] Failed to execute goal on project otsstreamreader: Could not resolve dependencies for project com.alibaba.datax:otsstreamreader:jar:1.0.0-SNAPSHOT: Could not find artifact com.aliyun.openservices:tablestore-streamclient:jar:1.0.0-SNAPSHOT -> [Help 1]
快照版本不一致,由於ots基本不會被用到,直接把pom.xml中的<module>ots</module>去掉
也可以更改版本otsstreamreader中的默認版本為0.0.1,改為1.0.0
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:2.4:jar (default-jar) on project ocswriter: Error assembling JAR: /Users/FengZhen/Desktop/Hadoop/DataX/源碼/DataX/ocswriter/pom.xml isn‘t a file. -> [Help 1]
ocs註釋掉
繼續打包即可。
DataX的安裝