Atlas2.1.0-重新安装、重置数据

说明

该软件不需要重新安装,只需要重置数据即可

应用场景

有时,数据发生错误,发生一些问题,需要重新安装时,就可以将数据重置,达到重新安装的效果

solr部分

删除 core

bin/solr delete -c vertex_index
bin/solr delete -c edge_index
bin/solr delete -c fulltext_index

创建 core

bin/solr create -c vertex_index -d /program/atlas-2.1.0/conf/solr
bin/solr create -c edge_index -d /program/atlas-2.1.0/conf/solr
bin/solr create -c fulltext_index -d /program/atlas-2.1.0/conf/solr

hbase部分

删除以下表:

  • apache_atlas_entity_audit
  • apache_atlas_janus

启动 hbase的shell

hbase shell

禁用表:

disable 'apache_atlas_entity_audit'

删除表:

drop 'apache_atlas_entity_audit'

禁用表:

disable 'apache_atlas_janus'

删除表:

drop 'apache_atlas_janus'

重启 atlas

停止 atlas:

bin/atlas_stop.py

启动 atlas(相当于首次启动,时间约2分钟,耐心等待):

bin/atlas_start.py

验证重启是否成功

访问 atlas web服务

访问 http://hadoop1:21000/ ,如果不能访问,说明启动失败,需要再次启动,并祈祷会创建成功

查看 hbase表

重启后,访问 http://hadoop1:16010/ ,查看下面表:

  • apache_atlas_entity_audit
  • apache_atlas_janus

如果没有这两个表,需要再次启动,并祈祷会创建成功


原文出处:/show_1IX3T2hOqHDF.html