agreeable-thailand-43234
11/17/2021, 11:27 PMacryl-datahub, version 0.8.16.11
with the docker quickstart, image tag says head
, I’m trying to ingest data using linkedin/datahub-ingestion
docker image with the following command
docker run -v /Desktop/test:/datahub-ingestion linkedin/datahub-ingestion ingest -c ./datahub-ingestion/config.yaml
the config.yaml looks like this:
source:
type: "athena"
config:
# Coordinates
aws_region: "xxx"
work_group: "xxx"
# Credentials
username: "xxx"
password: "xxx"
database: "xxx"
# Options
s3_staging_dir: "<s3://xxx/>"
sink:
type: "datahub-rest"
config:
server: "<http://localhost:8080>". #also tried "<http://datahub-gms:8080>"
then i’ve got this error:
ERROR {datahub.ingestion.run.pipeline:52} - failed to write record with workunit admincube.cubeprod with ('Unable to emit metadata to DataHub GMS', {'message': "HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /datasets?
I tried linkedin/datahub-ingestion:latest
as well as linkedin/datahub-ingestion:head
Any idea?
Cheers!mammoth-bear-12532
latest
which is not the latestmammoth-bear-12532
:head
is the right one to use if you want to live on the current HEAD of the repo. If you want a container that is aligned with the pypi package releases, you can use acryldata/datahub-ingestion:0.8.16.x
. We just started publishing them yesterday to make the python and container release process aligned.agreeable-thailand-43234
11/17/2021, 11:48 PMdocker pull linkedin/datahub-ingestion
which is tagged as latestmammoth-bear-12532
agreeable-thailand-43234
11/17/2021, 11:49 PMdocker pull linkedin/datahub-ingestion:head
mammoth-bear-12532
mammoth-bear-12532
latest
imagemammoth-bear-12532
latest
tagged imageagreeable-thailand-43234
11/17/2021, 11:51 PMagreeable-thailand-43234
11/17/2021, 11:53 PMhead
[2021-11-17 23:52:31,548] ERROR {datahub.entrypoints:101} - File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 174, in _new_conn
161 def _new_conn(self):
(...)
170 if self.socket_options:
171 extra_kw["socket_options"] = self.socket_options
172
173 try:
--> 174 conn = connection.create_connection(
175 (self._dns_host, self.port), self.timeout, **extra_kw
..................................................
self = <urllib3.connection.HTTPConnection object at 0x7f6200ace7f0>
self.socket_options = [(6, 1, 1, ), ]
extra_kw = {'socket_options': [(...), ]}
connection.create_connection = <function 'create_connection' connection.py:38>
self._dns_host = 'localhost'
self.port = 8080
self.timeout = None
agreeable-thailand-43234
11/17/2021, 11:54 PM"<http://datahub-gms:8080>"
in the sink config.yaml
mammoth-bear-12532
mammoth-bear-12532
agreeable-thailand-43234
11/17/2021, 11:55 PMmammoth-bear-12532
mammoth-bear-12532
agreeable-thailand-43234
11/17/2021, 11:56 PMagreeable-thailand-43234
11/17/2021, 11:57 PMdocker network connect
?mammoth-bear-12532
docker run --network=datahub_network <container_name>
mammoth-bear-12532
agreeable-thailand-43234
11/17/2021, 11:59 PMagreeable-thailand-43234
11/18/2021, 12:00 AMdatahub docker quickstart
agreeable-thailand-43234
11/18/2021, 12:06 AMdocker run --network=datahub_network -v /Desktop/test:/datahub-ingestion linkedin/datahub-ingestion:head ingest -c ./datahub-ingestion/config.yaml
mammoth-bear-12532
mammoth-bear-12532
agreeable-thailand-43234
11/18/2021, 12:14 AMdatahub_network
i’ve got this error:
ConnectionError: HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /config (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f90428a87f0>: Failed to establish a new connection: [Errno 111] Connection refused')
agreeable-thailand-43234
11/18/2021, 12:15 AMdatahub
mammoth-bear-12532
mammoth-bear-12532
datahub
inside docker dashboard is merely the grouping due to docker-composeagreeable-thailand-43234
11/18/2021, 12:16 AMlocalhost
to datahub-gms
and seems it’s doing somethingmammoth-bear-12532
agreeable-thailand-43234
11/18/2021, 12:17 AMagreeable-thailand-43234
11/18/2021, 12:18 AMagreeable-thailand-43234
11/18/2021, 12:19 AMmammoth-bear-12532