Sunday, April 24, 2016

How to migrate CAS record store schema with data between environments?

As per ATG-Endeca Integration, All product catalog data gets stored in Endeca CAS record store during baseline process. Sometimes, these da... thumbnail 1 summary
As per ATG-Endeca Integration, All product catalog data gets stored in Endeca CAS record store during baseline process. Sometimes, these data needs to be migrated from Production to UAT or UAT to Dev.

Find out steps below to Migrate.

Export Data from Environment - Production

1. Identify record store names to be migrated.

Navigate to CAS Installation directory and list the record stores
/CAS/<<Version_number>>/bin->./component-manager-cmd.sh list-components
CRS_en_dimvals
CRS_en_data
CRS_en_schema

2. Identify if there are any active-transactions or not

/CAS/<<Version_number>>/bin->
./recordstore-cmd.sh list-active-transactions -a CRS_en_dimvals
./recordstore-cmd.sh list-active-transactions -a CRS_en_data
./recordstore-cmd.sh list-active-transactions -a CRS_en_schema

3. Fetch the current record store configuration

/CAS/<<Version_number>>/bin->

./recordstore-cmd.sh get-configuration -a CRS_en_dimvals -f CRS_en_dimvals.xml
./recordstore-cmd.sh get-configuration -a CRS_en_data -f CRS_en_data.xml
./recordstore-cmd.sh get-configuration -a CRS_en_schema -f CRS_en_schema.xml

4. Read data from record store and write into XML files

/CAS/<<Version_number>>/bin-> 
./recordstore-cmd.sh read-baseline -a CRS_en_dimvals -f data_CRS_en_dimvals.xml
./recordstore-cmd.sh read-baseline -a CRS_en_schema -f data_CRS_en_schema.xml
./recordstore-cmd.sh read-baseline -a CRS_en_data -f data_CRS_en_data.xml



Import Data with schema to enviornment -UAT

1. Set the CAS record Store Configuration using step 3 during import process

/CAS/<<Version_number>>/bin-> 
recordstore-cmd.bat set-configuration -a CRS_en_dimvals -f CRS_en_dimvals.xml
recordstore-cmd.bat set-configuration -a CRS_en_schema -f CRS_en_schema.xml
recordstore-cmd.bat set-configuration -a CRS_en_data -f CRS_en_data.xml

2. Use step 4 data and write record into record store 
/CAS/<<Version_number>>/bin-> 
recordstore-cmd.bat write -a CRS_en_dimvals -f data_CRS_en_dimvals.xml
recordstore-cmd.bat write -a CRS_en_schema -f data_CRS_en_schema.xml
recordstore-cmd.bat write -a CRS_en_data -f data_CRS_en_data.xml

Note :- CRS_en_schema is not used for CAS based Indexing after 11.1 version.

3 comments

  1. Sometimes when we want to debug the index of UAT/Production Environment in local we need to build the index in local with the same data that is in production. Since we use Endeca CAS record store instances which stores the data in binary format it is not straight forward to build the index in local with the same data.coursework Writing Service

    ReplyDelete
  2. Really great post, Thank you for sharing This knowledge.Excellently written article, if only all bloggers offered the same level of content as you, the internet would be a much better place. Please keep it up!
    cheap assignment Writing Services

    ReplyDelete
  3. I read this article. I think You put a lot of effort to create this article. I appreciate your work.
    thesis Writing Service

    ReplyDelete

Text Widget