当前位置:网站首页>datax安装
datax安装
2022-07-29 05:20:00 【JACK-JIE】
一、下载tar包
github地址:https://github.com/alibaba/DataX
下载tar包地址:http://datax-opensource.oss-cn-hangzhou.aliyuncs.com/datax.tar.gz
二、上传tar包解压并安装
上传至服务器/opt/下并解压
tar -xzvf datax.tar.gz
- 1
三、上传解压datax-web
链接: https://pan.baidu.com/s/1B8bb_KeyIYvpbI5s3IwCjA 提取码: 3pah
上传压缩包至服务目录,这里我上传到/usr/local/下,具体可根据自身希望上传到哪个目录就行
unzip datax-web-2.1.2.zip
- 1
四、创建datax-web数据库
sql文件在以下目录
四、修改配置文件
1.修改数据库连接
modules下的datax-admin下的conf下的bootstrap.properties
2.注意datax-executor下的bin下的env.properties的PYTOHON_PATH的配置地址,需与我们安装的datax目录一致
五、启动datax-web及访问
执行datax-web-2.1.2下的bin下的start-all.sh启动所有模块
访问:http://服务器IP:9527/index.html#/dashboard
六、记录实际开发过程中可能会遇到的问题
1.解决Oracle没有dba权限查询用户和表失败问题
getSQLQueryTables方法sql中的dba_tables修改为all_tables。
getSQLQueryTableSchema方法sql中的dba_users修改为all_users。
- 1
- 2
通过下载源码后修改指定方法,打包jar后替换datax-admin下的lib下的datax-web-2.1.2.jar
2.解决datax写数据至db2数据库
datax暂时没有独立插件支持db2,需要使用通用RDBMS;这里是写入db2,使用rdbmswriter,对应目录为/datax/plugin/writer/rdbmswriter/
修改该目录下的plugin.json,注册数据库驱动
{
"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
上传db2驱动到该目录下的libs,如图所示
job文件都放在/datax/job目录
创建需要执行的job的json文件
执行任务命令
python /opt/datax/bin/datax.py /opt/datax/job/xx.json
- 1
边栏推荐
- 裸金属云FASS高性能弹性块存储解决方案
- Move protocol global health declaration, carry out the health campaign to the end
- Read and understand move2earn project - move
- 量化开发必掌握的30个知识点【什么是Level-2数据】
- Fantom (FTM) 价格将在未来几天飙升 20%
- 一文读懂Move2Earn项目——MOVE
- Fantom (FTM) surged 45% before the FOMC meeting
- “山东大学移动互联网开发技术教学网站建设”项目实训日志二
- The LAAS protocol of defi 2.0 is the key to revitalizing the development of defi track
- DeFi 2.0的LaaS协议,重振DeFi赛道发展的关键
猜你喜欢
DAY4:MySQL 数据库的建立及简单实用
如何零代码制作深度学习的趣味app(适合新手)
The completely decentralized programming mode does not need servers or IP, just like a aimless network extending everywhere
Fantom (FTM) prices will soar by 20% in the next few days
闪贷Dapp的调研及实现
全闪分布式,如何深度性能POC?
The bear market is slow, and bit.store provides stable stacking products to help you get through the bull and bear market
Reporting Services- Web Service
Madonna "hellent" bought $1.3 million NFT boring ape, which is now considered too expensive
Common prompt pop-up box of uniapp
随机推荐
SQL修复重复数据
Okaleido tiger logged into binance NFT on July 27, and has achieved good results in the first round
Get the number of daffodils
突破硬件瓶颈(一):Intel体系架构的发展与瓶颈挖掘
Display effect of uniapp page title
Wapiti是什么以及使用教程
Madonna "hellent" bought $1.3 million NFT boring ape, which is now considered too expensive
“山东大学移动互联网开发技术教学网站建设”项目实训日志二
The bear market is slow, and bit.store provides stable stacking products to help you get through the bull and bear market
CMD window under Windows connects to MySQL and operates the table
Plato Farm有望通过Elephant Swap,进一步向外拓展生态
Power BI Report Server 自定义身份验证
Day14: upload labs customs clearance tutorial
The completely decentralized programming mode does not need servers or IP, just like a aimless network extending everywhere
Win10 compiles ffmpeg (including ffplay)
sql-server 数据表的简单操作
nmap是什么以及使用教程
北京宝德&TaoCloud共建信创之路
裸金属云FASS高性能弹性块存储解决方案
Gluster集群管理小分析