Good afternoon team, I have a question: Is it poss...
# all-things-deployment
m
Good afternoon team, I have a question: Is it possible to send all the info taken from a Datahub's GraphQL API to another Datahub instance? I am asking this because we had to redeploy the environment where Datahub was and, in order to avoid information loss, I queried all the info from Datahub using it's GraphQL API
plus1 1
a
would probably be best to use a backup of the aspects table and do a restoreindices on the new datahub instance
l
Hey @microscopic-mechanic-13766! Definitely agree with Umair that backups would be useful here, but we have started building out a “DataHub Ingestion Source” to help out with migrations. @famous-waitress-64616 is going to be working on it this quarter; we don’t have a definite timeline on it just yet, but it’s in the pipeline!
m
and @average-vr-23088, do you know how could I restore indices?? I have tried using the restore indices endpoint, but i keep getting
404 page not found
. Is there any other way to restore them??
a
yeah. If you use the datahub-upgrade container, there is a jar you can run to do the restore indices. https://github.com/datahub-project/datahub/tree/master/docker/datahub-upgrade
m
I keep getting the following error and the indices havent been restored. Is this normal?? Note, my ElasticSearch is working perfectly https://datahubspace.slack.com/docs/TUMKD5EGJ/F05LVMGEM4Y
a
looks like you aren’t passing in which upgrade you’re trying to do.
if you’re calling the jar file directly, it should be
-u RestoreIndices
you should make sure your environment variables are correct as well. That link i posted has a .env file for guidance
m
Thanks for the help, @average-vr-23088. I forgot 2 env related to elasticsearch, and they were the source of the problem. Thanks again 😄
a
np