当前位置:网站首页>DataX installation
DataX installation
2022-07-29 05:55:00 【JACK-JIE】
One 、 download tar package
github Address :https://github.com/alibaba/DataX
download tar Package address :http://datax-opensource.oss-cn-hangzhou.aliyuncs.com/datax.tar.gz
Two 、 Upload tar Unzip the package and install
Upload to server /opt/ And decompress
tar -xzvf datax.tar.gz
- 1

3、 ... and 、 Upload and unzip datax-web
link : https://pan.baidu.com/s/1B8bb_KeyIYvpbI5s3IwCjA Extraction code : 3pah
Upload the compressed package to the service directory , Here I upload to /usr/local/ Next , You can upload it to the directory you want
unzip datax-web-2.1.2.zip
- 1
Four 、 establish datax-web database
sql The files are in the following directory 
Four 、 Modify the configuration file
1. Modify database connection
modules Under the datax-admin Under the conf Under the bootstrap.properties
2. Be careful datax-executor Under the bin Under the env.properties Of PYTOHON_PATH Configuration address of , It needs to be installed with us datax The catalog is consistent 
5、 ... and 、 start-up datax-web And visit
perform datax-web-2.1.2 Under the bin Under the start-all.sh Start all modules 
visit :http:// The server IP:9527/index.html#/dashboard
6、 ... and 、 Record the problems that may be encountered in the actual development process
1. solve Oracle No, dba Permission query of users and tables failed
getSQLQueryTables Method sql Medium dba_tables It is amended as follows all_tables.
getSQLQueryTableSchema Method sql Medium dba_users It is amended as follows all_users.
- 1
- 2
Modify the specified method after downloading the source code , pack jar Post replacement datax-admin Under the lib Under the datax-web-2.1.2.jar
2. solve datax Write data to db2 database
datax There is no independent plug-in support for now db2, Need to use general RDBMS; Here is write db2, Use rdbmswriter, The corresponding directory is /datax/plugin/writer/rdbmswriter/
Modify... In this directory plugin.json, Register database driver
{
"name": "rdbmswriter",
"class": "com.alibaba.datax.plugin.reader.rdbmswriter.RdbmsWriter",
"description": "useScene: prod. mechanism: Jdbc connection using the database, execute select sql, retrieve data from the ResultSet. warn: The more you know about the database, the less problems you encounter.",
"developer": "alibaba",
"drivers":["com.ibm.db2.jcc.DB2Driver"]
}
- 1
- 2
- 3
- 4
- 5
- 6
- 7
Upload db2 Drive to libs, As shown in the figure 
job The files are all in /datax/job Catalog
Create the job Of json file 
Execute task commands
python /opt/datax/bin/datax.py /opt/datax/job/xx.json
- 1
边栏推荐
- Synchronous development with open source projects & codereview & pull request & Fork how to pull the original warehouse
- 熊市下PLATO如何通过Elephant Swap,获得溢价收益?
- 手撕ORM 框架(泛型+注解+反射)
- 与张小姐的春夏秋冬(5)
- Thinkphp6 output QR code image format to solve the conflict with debug
- 量化开发必掌握的30个知识点【什么是Level-2数据】
- Starfish OS:以现实为纽带,打造元宇宙新范式
- Refresh, swagger UI theme changes
- Elastic box flex
- 与张小姐的春夏秋冬(3)
猜你喜欢

“山东大学移动互联网开发技术教学网站建设”项目实训日志三

day02 作业之文件权限

“山东大学移动互联网开发技术教学网站建设”项目实训日志二

Go|gin quickly use swagger

Training log 7 of the project "construction of Shandong University mobile Internet development technology teaching website"

DeFi 2.0的LaaS协议,重振DeFi赛道发展的关键

一文读懂Move2Earn项目——MOVE

Crypto巨头们ALL IN元宇宙,PlatoFarm或能突围

centos7 静默安装oracle

“山东大学移动互联网开发技术教学网站建设”项目实训日志六
随机推荐
华为2020校招笔试编程题 看这篇就够了(上)
Gluster集群管理小分析
Synchronous development with open source projects & codereview & pull request & Fork how to pull the original warehouse
Crypto巨头们ALL IN元宇宙,PlatoFarm或能突围
iSCSI vs iSER vs NVMe-TCP vs NVMe-RDMA
钉钉告警脚本
centos7 静默安装oracle
My ideal job, the absolute freedom of coder farmers is the most important - the pursuit of entrepreneurship in the future
ssm整合
Reporting Services- Web Service
From starfish OS' continued deflationary consumption of SFO, the value of SFO in the long run
30 knowledge points that must be mastered in quantitative development [what is individual data]?
Gluster cluster management analysis
运动健康深入人心,MOVE PROTOCOL引领品质生活
Move protocol global health declaration, carry out the health campaign to the end
MySQL decompressed version windows installation
Markdown语法
量化开发必掌握的30个知识点【什么是分笔逐笔数据】?
“山东大学移动互联网开发技术教学网站建设”项目实训日志四
PHP write a diaper to buy the lowest price in the whole network