ancient-queen-15575
05/11/2023, 2:34 PMdatahub delete --urn "urn:li:dataPlatform:awsdms_apply_exceptions"
datahub delete --urn "urn:li:dataPlatform:mongodb"
I get an error about json decoding:
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
If I try with a filter like
datahub delete --entity_type dataset --platform mongodb
I get an error about the client not being authorised
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: <http://3.72.60.6:8080/entities?action=search>
I am using an API key and my user is an Admin in Datahub.lively-cat-88289
05/11/2023, 2:35 PMgentle-hamburger-31302
05/16/2023, 2:30 PMgentle-hamburger-31302
05/16/2023, 2:30 PMdatahub delete by-filter --urn "<urn>"
ancient-queen-15575
05/24/2023, 10:40 AMDATAHUB_API_KEY
but it actually needed to be called DATAHUB_GMS_TOKEN
.
Figured that out after I saw a list of support env var names in the docs here
https://datahubproject.io/docs/cli#environment-variables-supported