marquez icon indicating copy to clipboard operation
marquez copied to clipboard

ipv6 setting required to interact with Docker

Open agaro1121 opened this issue 1 year ago • 2 comments

Hello

I followed the instructions here to run the docker images.

I am able to POST to http://localhost:5000 successfully with Postman but found that it failed when I tried the curl command. I received 404 Not Found.

After quite some time of experimenting, I found that adding the -6 flag to curl allowed my POST to succeed. Now I'm trying to run the openlieage-java client and receiving 404. I'm sure it's the same issue but at this point I'd like to reach out and see if anyone else ran into this before?

Is there a setting I need to enable?

I'm running the latest Docker on Apple Macbook Pro M1 with the latest Marquez and OpenLineage git repos.

Failing call (from getting started guide):

 curl -X POST http://localhost:5000/api/v1/lineage \
  -i -H 'Content-Type: application/json' \
  -d '{
        "eventType": "START",
        "eventTime": "2020-12-28T19:52:00.001+10:00",
        "run": {
          "runId": "d46e465b-d358-4d32-83d4-df660ff614dd"
        },
        "job": {
          "namespace": "my-namespace",
          "name": "my-job"
        },
        "inputs": [{
          "namespace": "my-namespace",
          "name": "my-input"
        }],
        "producer": "https://github.com/OpenLineage/OpenLineage/blob/v1-0-0/client",
        "schemaURL": "https://openlineage.io/spec/1-0-5/OpenLineage.json#/definitions/RunEvent"
      }'
HTTP/1.1 404 Not Found
Content-Type: text/plain; charset=utf-8
X-Content-Type-Options: nosniff
Date: Mon, 11 Mar 2024 16:09:39 GMT
Content-Length: 19

404 page not found

Successful call with ipv6 option:

curl -6 -X POST http://localhost:5000/api/v1/lineage \
  -i -H 'Content-Type: application/json' \
  -d '{
        "eventType": "START",
        "eventTime": "2020-12-28T19:52:00.001+10:00",
        "run": {
          "runId": "d46e465b-d358-4d32-83d4-df660ff614dd"
        },
        "job": {
          "namespace": "my-namespace",
          "name": "my-job"
        },
        "inputs": [{
          "namespace": "my-namespace",
          "name": "my-input"
        }],
        "producer": "https://github.com/OpenLineage/OpenLineage/blob/v1-0-0/client",
        "schemaURL": "https://openlineage.io/spec/1-0-5/OpenLineage.json#/definitions/RunEvent"
      }'
HTTP/1.1 201 Created
Date: Mon, 11 Mar 2024 16:10:23 GMT
Content-Length: 0

agaro1121 avatar Mar 11 '24 16:03 agaro1121

Thanks for opening your first issue in the Marquez project! Please be sure to follow the issue template!

boring-cyborg[bot] avatar Mar 11 '24 16:03 boring-cyborg[bot]

This is not related to Marquez, but rather to Docker settings

dolfinus avatar Mar 31 '24 11:03 dolfinus