Use kettle timing extraction tool mysql data to the cluster table hbase (V)

Kettle task scheduled automatic execution

 

1. Prepare the configuration we have just completed the mysql drawn into the kettle hbase conversion table, is a ktr file

2.Kettle create a new job

 

3. Job configuration, selection and start conversion, shift start with the conversion connector

 

4. Double start timing of the configuration is performed once per minute

 

5. Double-click conversion option we prepared ktr file

 

6. Perform job. The first execution will let you choose the path to save the job. Finally, save the file is a kjb

 

 

Using the kettle comes Ketchen.bat execute our hbaseJob.kjb file

 

1. Open the kettle installation directory to find Ketchen.bat, remember its path

 

HbaseJob.bat create a new file, write content

d: (kettle mounted drive)

cd D: \ KETTLE \ data-integration (into the directory where Ketchen.bat)

 

kitchen  /file:D:\KETTLE\hbaseJob.kjb  /level:Base>>D:\KETTLE\log.log 

(Execution Ketchen.bat. Which back / file path when kjb file / log log behind local level is stored, Bsae the log rank)

 

 

 

2. Double-click execution hbaseJob.bat file,

 

 

After that we just wait a bit to open the specified log file, found executed successfully. And then performed once every minute.

 

To be continued ...

Guess you like

Origin blog.csdn.net/github_39538842/article/details/92613399