:wave: Hello, team! i am new to this world i need ...
# ingestion
f
đź‘‹ Hello, team! i am new to this world i need to ingest datasets on to the datahub aws hosting please guide me how to achieve this please recommend me some best practices as well..
i
Hello Mridul, please have a look at DataHub’s ingestion docs: https://datahubproject.io/docs/metadata-ingestion
f
{datahub.cli.ingest_cli:86} - DataHub CLI version: 0.8.31.6 [2022-03-31 150321,961] WARNING {urllib3.connectionpool:744} - Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7a039228e0>: Failed to establish a new connection: [Errno 110] Connection timed out')': /api/gms/config
please guide
i need to push/ingest my covid data stored in postgres
on to the datahub
i
Hello Mridul, How was datahub deployed?
f
@incalculable-ocean-74010
ingestion tab opens like this
i
When doing ingestion through DataHub’s UI you need to point to databases that are accessible to the datahub deployed pods. In this case k8s. In this case you are trying to get a k8s pod to connect to your local machine. Pointing to local host from the pod’s perspective is itself so that won’t work as there is no Postgres running in the frontend datahub pod.
You need to point to an actual url that your azure kubernetes cluster can connect to.
f
deployed with k8s helm component
can please explain little bit
i
When you specify the ingestion in the UI, the ingestion logic is running in same kubernetes pod as DataHub’s frontend, i.e:
datahub-frontend-react
pod. Since it is running inside a k8s pod, this config:
Copy code
config:
      host_port: 'localhost:5432'
      database: COVID
      username: postgres
      password: mynewpassword
Must be in specified in the context of the k8s pod.
localhost:5432
in the frontend container would mean that the frontend container can access it’s localhost:5432 port and connect to a postgres database. That is not the case right? You have no postgres database accessible in port 5432 of the frontend pod do you?
f
yes exactly thanks for the right guidance
can you please guide me how to use github trigger to ingest dataset into the datahub
i
What do you mean with
github trigger
?
f
since we are downloading covid dataset in our local machine and then import that data into the our postgres and then trying to ingest into the datahub.
i
Where is postgres hosted?
f
in local
i
You must deploy Postgres in k8s and make a service so that datahub can connect to it.
f
okay
thank you.I achieved thid
this
can you please let me know where to find api to build a reactjs layer on top of the datahub