docker/datax/README.md
2022-04-18 11:21:20 +08:00

24 lines
706 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 构建 datax 镜像
## 导入文件
- [下载 datax.tar.gz](https://github.com/alibaba/DataX)
## 定制
- 删除自带的 mysql-connector-java-5换成 mysql-connector-java-8
- 启动脚本换成 shell弃用原来的 python 脚本
## 外挂目录和文件
- /opt/datax/log: job 日志目录
- /opt/datax/log_perf: 性能日志目录
- /opt/datax/job: job 文件目录
## 引入环境变量
- JAVA_OPTS: jdk 参数,默认 "-Xms1g -Xmx1g"
- TIMEOUT: 每个任务的超时时间,默认 "10m"(10 分钟)
- MAX_PROCS: 最大并行任务数量,默认 1即串行
## 案例
- [Demo/SingleProc/](Demo/SingleProc/): 每次执行单个 job
- [Demo/MultiProc/](Demo/MultiProc/): 并行多个 job