当前位置:网站首页>ETL tool (data synchronization) II
ETL tool (data synchronization) II
2022-07-25 23:09:00 【Invincible ODA】
kettle After using and mastering , Also need to master linux The strategy of regular execution under
One 、kettle It feels convenient to use
although kettle Bring your own scheduling task . But the premise is to keep kettle open . And the job is running . Not suitable for remote server installation windows client , Only for learning
stay linux install kettle And scheduling is a better method
Two 、 Use steps
1、 take kettle Folder data-integration Unzip to linux Server establish /kettle/ Directory storage program
2、 Establish directory storage kettle file
mkdir /data/kettle/kettle_job // Store operation documents
mkdir /data/kettle/kettle_transition // Storage conversion
mkdir /data/kettle/kettle_sh // Store the execution script
mkdir /data/kettle/kettle_log // Storage execution kettle Generate log Will be taken from windows Configure the generated .ktr and .kjb The programs are placed in transition Catalog and job Catalog
3、 Write execution scripts
/data/kettle/kettle_sh/start.sh
#!/bin/bash
# perform job Program
cd /data/kettle/data-integration
export JAVA_HOME=/usr/local/jdk1.8.0_201/
export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$PATH:$JAVA_HOME/bin
./kitchen.sh -file=/data/kettle/kettle_job/testjob.kjb >>/data/kettle/kettle_log/ceshi_$(date +%Y%m%d).log
notes :( because crond It's a daemon , It does not belong to any user , Although before root The user has configured java environment variable , however crond I can't find java command , therefore , When crond perform kettle When the task , Need dynamic settings java environment variable , Otherwise, manual execution will occur .sh That's all right. , discharge crontb There is no effect after execution )
preservation start.sh, Execute the command granting permission
chmod +x start.shTest whether the script can execute normally
sh -x start.sh4、 Set up crontab Scheduled tasks
# crontab -e*/1 * * * * /data/kettle/kettle_sh/ceshi.sh // Execute every minute ceshi.sh
# systemctl restart crond
# systemctl enable crondEffective completion
3、 ... and 、ETL kettle Learning path
2、
边栏推荐
- Network Security Learning (XII) OSI and TCP
- 技术美术百人计划学习笔记(2)--向量
- QT add mouse event to control
- Enabling partners, how can Amazon cloud technology "get on the horse and get a ride"?
- Tencent map API request source is not authorized, this request source domain name
- 每周推荐短视频:需要协同的智能设备越来越多,给物联网开发提出更大挑战?
- CSV generated by PHP cannot completely display the number with leading 0
- Custom MVC principle
- Details of notification (status bar notification)
- Code shoe set precision barrage
猜你喜欢

Analysis of the influence of ESM direction finding error on positioning error

How painful is it to write unit tests?

【接口性能优化】索引失效的原因以及如何进行SQL优化

PHP JSON variable array problem
![[interface performance optimization] reasons for index failure and how to optimize SQL](/img/b9/64058c823c4497ac36bfb62a101816.jpg)
[interface performance optimization] reasons for index failure and how to optimize SQL

Expression of directional signal -- complex exponential signal

serialization and deserialization

Extended configuration of static routing in the second experiment

DHCP first static experiment
![[paper notes] a meta reinforcement learning algorithm for causal discovery](/img/03/84462b38551c41173f7a9734cb0e99.png)
[paper notes] a meta reinforcement learning algorithm for causal discovery
随机推荐
【论文笔记】基于在线预测和规划的机器人动态跟踪抓取方法
Servlet overview
CTS test method "suggestions collection"
Network Security Learning (XII) OSI and TCP
Oracle query statement summary
Summary of common PHP functions
码蹄集 精准弹幕
PHP binary array is sorted by a field in it
Simulink学习笔记(三)——Simulink自动代码生成(二)「建议收藏」
PHP wechat scan code, follow official account and authorize login source code
2021-09-30
Deploy flash based websites using Google cloud
Expression of directional signal -- complex exponential signal
Panzer_ Jack's personal blog founding day
[PTA] 7-24 minimum fraction (15 points)
[PTA] 7-19 check face value (15 points)
连续三年成为云AI服务领导者,亚马逊云科技做对了什么?
Network Security Learning (XV) ARP
access-list vs ip access-list
Memory paging and tuning, kernel and user space