一、問題
想要刪除Atlas元數(shù)據(jù),Atlas組件默認是邏輯刪除,但是我們想要進行物理刪除
二、解決
1、修改配置文件
vim /opt/module/atlas/conf/atlas-application.properties
添加如下內容:
#開啟物理刪除
atlas.DeleteHandlerV1.impl=org.apache.atlas.repository.store.graph.v1.HardDeleteHandlerV1
2、重啟Atlas
python2 /opt/module/atlas/bin/atlas_stop.py
python2 /opt/module/atlas/bin/atlas_start.py
3、調用AtlasAPI接口進行刪除
如何清除軟刪除的實體
在Apache Atlas中,有沒有辦法在啟用硬刪除后刪除/清除軟刪除的實體?
通過如下API即可達到要求:文章來源:http://www.zghlxwxcb.cn/news/detail-636061.html
Http請求方式:文章來源地址http://www.zghlxwxcb.cn/news/detail-636061.html
----------------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"]'
到了這里,關于刪除Atlas元數(shù)據(jù)進行物理刪除的文章就介紹完了。如果您還想了解更多內容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!