The Document Store for ATSv2 is a framework for plugging in any Document Store Vendor as a backend for ATSv2 i.e Azure CosmosDB , MongoDB, ElasticSearch etc.
- Supports multiple Document Store Vendors like CosmosDB, ElasticSearch, MongoDB etc by just adding new configurations properties and writing Document Store reader and writer clients.
- Currently has support for CosmosDB.
- All writes are Async and buffered, latest document would be flushed to the store either if the document buffer gets full or periodically at every flush interval in background without adding any additional latency to the running jobs..
- All the REST API's of Timeline Reader Server are supported.
Add the flowing properties under yarn-site.xml
The following config needs to be set inside yarn-site.xml for creating the database and collections for storing documents.
Running the schema creator tool to create the necessary collections.
To use Azure CosmosDB as a DocumentStore for ATSv2, the additional properties under yarn-site.xml is required..
In order to test the Azure CosmosDB as a DocumentStore locally, install the emulator from here and start it locally. Set the endpoint and master key under yarn-site.xml as mentioned above and run any example job like DistributedShell etc. Later you can check the data explorer UI of Azure CosmosDB locally to query the documents or even launch the TimelineReader locally to fetch/query the data from REST API's.