当前位置:网站首页>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
边栏推荐
- MySQL decompressed version windows installation
- MOVE PROTOCOL全球健康宣言,将健康运动进行到底
- 极致通缩和永动机模型,将推动 PlatoFarm 爆发
- “山东大学移动互联网开发技术教学网站建设”项目实训日志四
- Reporting Services- Web Service
- 数组的基础使用--遍历循环数组求出数组最大值,最小值以及最大值下标,最小值下标
- Starfish OS: create a new paradigm of the meta universe with reality as the link
- How to survive in the bear market of encryption market?
- SQL repair duplicate data
- Some opportunities for young people in rural brand building
猜你喜欢

The bear market is slow, and bit.store provides stable stacking products to help you get through the bull and bear market

C# 连接 SharepointOnline WebService

How to PR an open source composer project

Sports health is deeply rooted in the hearts of the people, and move protocol leads quality life

ReportingService WebService Form身份验证

超简单集成HMS ML Kit 人脸检测实现可爱贴纸

Common prompt pop-up box of uniapp
![30 knowledge points that must be mastered in quantitative development [what is individual data]?](/img/13/9e5e44b371d79136e30dd86927ff3a.png)
30 knowledge points that must be mastered in quantitative development [what is individual data]?

马斯克推崇的柏拉图式元宇宙,PlatoFarm早已验证出答案

Huawei 2020 school recruitment written test programming questions read this article is enough (Part 2)
随机推荐
赓续新征程,共驭智存储
Move protocol global health declaration, carry out the health campaign to the end
The LAAS protocol of defi 2.0 is the key to revitalizing the development of defi track
XDFS&中国日报社在线协同编辑平台典型案例
ssm整合
day02作业之进程管理
XDFS&空天院HPC集群典型案例
Starfish OS:以现实为纽带,打造元宇宙新范式
超简单集成HMS ML Kit 实现parental control
asyncawait和promise的区别
与张小姐的春夏秋冬(5)
Simple optimization of interesting apps for deep learning (suitable for novices)
并发编程学习笔记 之 工具类Semaphore(信号量)
Training log 4 of the project "construction of Shandong University mobile Internet development technology teaching website"
我的理想工作,码农的绝对自由支配才是最重要的——未来创业的追求
Android Studio 实现登录注册-源代码 (连接MySql数据库)
Reporting Services- Web Service
“山东大学移动互联网开发技术教学网站建设”项目实训日志四
闪贷Dapp的调研及实现
微信小程序源码获取(附工具的下载)