Hi All. Could you point me to a correct direction?...
# getting-started
a
Hi All. Could you point me to a correct direction? I want to write Java application, which could use DataHub classes (DAO, EntityClient, AspectClient) to work with DataHub data. So the questions about that: 1. Is there any example for such application? 2. How do we setup maven dependencies correctly (as only GMA is available in artifactory) for that app? 3. How do we setup required connections for that app (to primary SQL DB and secondary ES) in DataHub way correctly? Thanks!
m
Hi @ambitious-airline-8020, in general we would expect the application to interact with DataHub backend by interacting with the REST service (datahub-gms), not bypassing it to get to the DB or the ES instance. Can you describe why you want to use the classes directly?
We do plan to publish artifacts for the java classes, avro schemas etc corresponding to the metadata models, so that it is easier to publish events to DataHub from java, but that wouldn't cover your requirements.
a
Hi @mammoth-bear-12532. Thank you for paying attention. My scenario is to have (mostly read-only) access to data not easy retrievable by GMS. Recent example: get all versioned aspects as a list for concrete entity URN. I know, that starting from 0.8.4 we can emulate it, iterating
version
parameter over new
/aspects
REST resource. But generally I would be able to query data even if my need is not satisfied by any existent MS/GraphQL methods
For sure, I could create MAE consumer and make build query-able model there based on MAE consumer + some OLTP or OLAP persistence layer. But I believe, that it would be not a perfect architectural reason - as we already have query-able primary DB