1.datax同步多表
摘要:#!/bin/bash. /etc/profile # 读库的变量r_ip="192.168.1.6"r_port="3306"r_username="root"r_password="123456" # 写入库的变量w_ip="192.168.1.4"w_port="61920"w_usernam
阅读全文
6.Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000794500000, 576716800, 0)
摘要:这个问题引起的原因是:服务器上物理内存太小,大部分都是应为程序太多,内存吃紧,而给jvm分配的内存太大(java程序启动需要的内存,linux不能给),最好调整java程序jvm内存吧(测试环境下) 如果使用命令行执行job.json 可以在后面加上限制,如: pyhon /home/workspa
阅读全文
5.运行项目连接Mysql时出现警告Establishing SSL connection without server‘s identity verification is not recommende
摘要:jdbc:mysql://localhost:3306/testdb?useSSL=false 添加上述加粗部分,即可解决该警告,标红参数前面为你数据库连接URL,如果有多个参数记得用&连接,例如 jdbc:mysql://localhost:3306/testdb?characterEncodin
阅读全文
2.datax条件python3.6安装
摘要:一.安装python3.6.1 1.安装依赖环境(必须安装否则会出现python3编译器中不能使用退格键和方向键) yum install readline-devel gcc make patch gdbm-devel openssl-devel sqlite-devel readline-dev
阅读全文
3.datax-web搭建
摘要:1.路径 mkdir /home/datax-web cd /home/datax-web 2.下载 https://github.com/WeiYe-Jing/datax-web https://pan.baidu.com/s/13yoqhGpD00I82K4lOYtQhg 密码:cpsk 3.解
阅读全文
8.crontab+datax定时执行同步任务
摘要:# 添加定时任务crontab -e#每天23点50分执行sh脚本50 23 * * * /opt/datax/sync_gym_course_add.sh#每隔30分钟执行sh脚本*/30 * * * * /opt/datax/sync_gym_course_add.sh #查看crontab日志
阅读全文