当前位置:网站首页>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、
边栏推荐
- [tensorflow] about seed
- Ip--- ia review
- The difference between abstract classes and interfaces
- The new UI people help task help PHP source code with a value of 1500 / reward task Tiktok Kwai headline like source code / with three-level distribution can be packaged applet
- 5 ROS simulation modeling (3-rviz+gazebo+ control simulation robot)
- Simulink学习笔记(三)——Simulink自动代码生成(二)「建议收藏」
- Memory paging and tuning, kernel and user space
- CUDA environment construction
- MES系统设备管理概述(下)
- IPFs of Internet Protocol
猜你喜欢

firewall 命令简单操作

The fourth experiment nat

wordpress去掉网站发布时间

General paging function

Zero crossing position search of discrete data (array)

Review of static routing
![[paper notes] robot dynamic tracking and grasping method based on online prediction and planning](/img/0f/ca7f3cd3332069185a2dad397766b4.png)
[paper notes] robot dynamic tracking and grasping method based on online prediction and planning

自定义mvc原理

Sichuan cuisine menu (I)

Stack and stack class
随机推荐
serialization and deserialization
QT add mouse event to control
CTS test method "suggestions collection"
Network Security Learning notes-1 file upload
About using NPM command under the terminal, the installation error problem is solved (my own experience)
CSV intro
The difference between abstract classes and interfaces
ZCMU--5015: 完成任务
Check code generation
The difference between MySQL clustered index and non clustered index
Mongodb的特点、与MySQL的差别、以及应用场景
General paging function
Call Gaode map -- address is converted into longitude and latitude
Week 2: convolutional neural network
What has Amazon cloud technology done right to become the leader of cloud AI services for three consecutive years?
Opencv compile and call GPU version
第二周学习:卷积神经网络
Network security and level protection
The third experiment OSPF
Learning notes of technical art hundred people plan (1) -- basic rendering pipeline