Hi Team, Is it possible to delete metadata from da...
# ingestion
c
Hi Team, Is it possible to delete metadata from datahub? I tried the datahub hard delete command with urn and i got java unsupported operation error saying only upsert operation is supported. Then how to delete with this command?Any other suggestion pls...
m
Hi @cool-vr-73109 could you paste the log of what you tried and the response you get in this thread?
I'm assuming you are following the guide here
e
Hi @mammoth-bear-12532, sorry to pick this thread but I'm following the guide you attached on your message, the ingestion rollback one. However, after I delete one of the listed
run-id
, if I execute again the command
Copy code
datahub ingest list-runs
I still can see the
run-id
deleted. Is there any step I have forgotten to apply? I'm following these steps: 1.
datahub ingest list-runs
Copy code
+-----------------------------------------------+--------+---------------------------+
| runId                                         |   rows | created at                |
+===============================================+========+===========================+
| no-run-id-provided                            |   9844 | 2022-08-02 16:12:18 (UTC) |
+-----------------------------------------------+--------+---------------------------+
| datahub-business-glossary-2022_08_01-16_34_37 |    152 | 2022-08-01 16:34:41 (UTC) |
+-----------------------------------------------+--------+---------------------------+
| file-2022_06_30-11_07_40                      |      1 | 2022-06-30 11:07:40 (UTC) |
+-----------------------------------------------+--------+---------------------------+
| file-2022_05_31-11_11_13                      |      2 | 2022-05-31 11:11:13 (UTC) |
+-----------------------------------------------+--------+---------------------------+
| datahub-business-glossary-2022_04_12-23_37_20 |   2362 | 2022-04-12 23:37:23 (UTC) |
+-----------------------------------------------+--------+---------------------------+
| file-2022_04_12-23_37_09                      |      1 | 2022-04-12 23:37:09 (UTC) |
+-----------------------------------------------+--------+---------------------------+
2.
kubectl exec -it datahub-cli -n datahub -- datahub ingest rollback --run-id datahub-business-glossary-2022_08_01-16_34_37
Then I list them all again with this result:
Copy code
+-----------------------------------------------+--------+---------------------------+
| runId                                         |   rows | created at                |
+===============================================+========+===========================+
| no-run-id-provided                            |   9844 | 2022-08-02 16:12:18 (UTC) |
+-----------------------------------------------+--------+---------------------------+
| datahub-business-glossary-2022_08_01-16_34_37 |    152 | 2022-08-01 16:34:41 (UTC) |
+-----------------------------------------------+--------+---------------------------+
| file-2022_06_30-11_07_40                      |      1 | 2022-06-30 11:07:40 (UTC) |
+-----------------------------------------------+--------+---------------------------+
| file-2022_05_31-11_11_13                      |      2 | 2022-05-31 11:11:13 (UTC) |
+-----------------------------------------------+--------+---------------------------+
| datahub-business-glossary-2022_04_12-23_37_20 |   2362 | 2022-04-12 23:37:23 (UTC) |
+-----------------------------------------------+--------+---------------------------+
| file-2022_04_12-23_37_09                      |      1 | 2022-04-12 23:37:09 (UTC) |
+-----------------------------------------------+--------+---------------------------+