Hi All, I had a query. This is the scenario: I cr...
# all-things-deployment
c
Hi All, I had a query. This is the scenario: I created 2 instances of datahub on different machines, call them datahub_1 and datahub_2. The mysql server is hosted on different dbs on RDS, call them datahub_primary and datahub_secondary for the resprective instances. I ingested some data in datahub_1, this data goes into the metadata_aspect_v2 table of datahub_primary db. Now i want to point datahub_2 to use the same metadata. Just copying the metadata_aspect_v2 table from primary to secondary db is not enough? I tried doing it but i still not see the data in datahub_2. Is there some other way of restoring the metadatas? This test was done by deploying both the instances through docker and I was trying to test the back and restore functionality of datahub. Can anyone please suggest why the above result was seen and if there is a better or a official way of restoring metadata and indices. Happy to take this offline if needed. Thanks a lot! Edit: I have tried directly pointing the db of datahub_2 to the same db of datahub_1 but no use. I created different dbs and copied the table but still no use
a
Hi, have you checked this documentation? https://datahubproject.io/docs/api/restli/restore-indices/
c
I read this, but it wasnt clear through this document on how it can help restore all the metadata from datahub_1 to datahub_2
b
You only copied the metadata from MySQL, but ES does not have the corresponding information - that is the purpose of restore indices. Without ES populated, you can still navigate to the entity page in datahub2 by hardcoding the url to the desired entity, but it does not show up anywhere else otherwise.