物理删除Atlas元数据

一、问题

  想要删除Atlas元数据,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接口进行删除

(1)发送Http中的delete请求

http://192.168.xxx.xxx:21000/api/atlas/v2/entity/guid/guid号

(2)参考地址:https://atlas.apache.org/api/v2/index.html

posted @ 2022-08-10 17:12  落魄的大数据转AI小哥  阅读(489)  评论(0)    收藏  举报