Catalog Management in Abinitio , Sharing lookups in AbInitio


Please watch my video on catalog management in abinitio:



For class notes:

Catalog Management in Abinitio


Problem Statement - How to share the same lookup/or Set of lookups in different graphs

1. Sharing Lookup file with catalogs
a. Graph settings -> Catalog - create lookup catalog  , 
specify the catalog path $AI_SERIAL_LOOKUP/shared_catalog.cat

b. Graph settings -> Catalog - uses lookups from catalog  , specify the catalog path $AI_SERIAL_LOOKUP/catalog.cat
c. Graph settings -> Catalog - does not use catalog (by default)
                                                   




















2. Use Dynamic Subgraph ( Recommended)

















Catalog Management Commands:

Make sure you do either of these below:

AB_CATALOG=$AI_SERIAL_LOOKUP/mycatalog.cat

specify -catalog <catalogurl>  in commands

1. ls -l $AI_SERIAL_LOOKUP
.cat




2. m_lscatalog -catalog mycatalog.cat

Table - employee
Key - 
DATAURL - 
Metadata URL -


3. Add a lookup to catalog
a.
m_catalog_add -catalog $AI_SERIAL_LOOKUP/mycatalog.cat
-table products
-data mfile://hostname/lookups
-metadata file://hostname/dml/products.dml
-key '{productid,productname}'


b.
m_catalog_add -catalog mycatalog
-table revenue
-data mfile://hostname/lookups
-metadata file://hostname/dml/revenue.dml
-key '{ytd,monthend}'
-index $AI_SERIAL/revenue_lookup_data.idx


4. m_catalog_delete -catalog -<catalogurl> -table <name> -data <dataurl>

5. m_mkcatalog , m_rmcatalog



Dependecy Analysis for Catalogs:
AB_CATALOG

metadata "~$MYCOMMON_PROJECT_LOOKUP/revenue.dml"

.cat 

.txt

air project set-type $AI_SERIAL_LOOKUP/mycatalog.txt "text/x-abinitio-catalog"






For more Abinitio, AWS and data engineering videos please subscribe , view , like and share my YouTube channel 

Click DataPundit

Comments

Popular posts from this blog

Abinitio Interview Question # 1 - Write Multiple Files in Abinitio

Next In Sequence in ABinitio | How next_in_sequence() works in MFS