Enabling journaling for router files.
Imagine a situation where you want to keep the history of the changes which were processed by Local Data Processing integrate job. This can be achieved by enabling journaling option in channel settings. By default, when integrate job consumes the router files these files are deleted from the folder $HVR_CONFIG/router/<hubname>/<channelname>/loc_<srcname>/loc_<tgtname>. But if you want to keep them you can use an integrate action JournalRouterFiles
This article describes how to save the router files.
- Chn1 is already running in the hub hvrhub4.
- In this example source location is orcl and Target location is olx
- It has simple capture and Integrate actions
Add action JournalRouterFiles
Right click on Integrate action for the channel chn1 and select properties
On the next window for Integrate Action check box for JournalRouterFiles parameter
Click on Ok as confirmation. You will notice that the Integrate action now has JournalRouterFiles as parameter.
Re initialize Integrate job(s) with advanced option Scripts and Jobs
Right click on chn1 and select Local Data Processing Initialize
On the next page expand the locations and check box for Target location(s)
Select Advanced Options and uncheck everything except Scripts and Jobs for all tables
Click on Initialize. You will see a prompt showing that 1 job was recreated.
Once this is done you will notice that a directory jnl is created under $HVR_CONFIG and journal files are created under folder structure jnl/<hubname>/<channelname>/<yyyymmdd>/integ_<tgt_location>loc<src_location>/loc_ <tgt_location> where <yyyymmdd> is today's date 20180828. In this particular case the journal files are created in structure $HVR_CONFIGjnlhvrhub4chn120180828integ_olx_loc_orclloc_olx.