1. Problems
To delete Atlas metadata, Atlas components are logically deleted by default, but we want to perform physical deletion
Two, solve
1. Modify the configuration file
vim /opt/module/atlas/conf/atlas-application.properties
Add the following:
#开启物理删除
atlas.DeleteHandlerV1.impl=org.apache.atlas.repository.store.graph.v1.HardDeleteHandlerV1
2. Restart Atlas
python2 /opt/module/atlas/bin/atlas_stop.py
python2 /opt/module/atlas/bin/atlas_start.py
3. Call the AtlasAPI interface to delete
How to clean up soft-deleted entities
In Apache Atlas, is there a way to delete/clear soft deleted entities after hard deletion is enabled?
The requirements can be met through the following API:
Http request method:
----------------soft delete----------------
curl -iv -u admin:admin -X DELETE http://localhost:21000/api/atlas/v2/entity/guid/88f13750-f2f9-4e31-89f7-06d313fe5d39
---------------- than hard----------------
curl -i -X PUT -H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-u admin:admin 'http://loclahost:21000/api/atlas/admin/purge/' \
-d '["88f13750-f2f9-4e31-89f7-06d313fe5d39"]'