Created on 02-14-2017 06:38 PM
Recently, I have observed there are lot of questions in HCC on - how to reset Atlas and Is there a way to delete the registered types in Atlas. So, I thought of sharing this article with the community to clarify these queries.
To give some context, Atlas uses HBase as its default datastore when its managed by Ambari. So, basically it uses two Hbase tables to store all its metadata.
The above two table names can be changed using two properties "atlas.graph.storage.hbase.table" and "atlas.audit.hbase.tablename" respectively in the atlas-application.properties.
Now, coming back to the actual question - how to wipe-out the metadata from the Atlas? Follow below steps to achieve the same.
disable 'atlas_titan'
drop 'atlas_titan'
The above steps can be repeated for 'ATLAS_ENTITY_AUDIT_EVENTS' table if there is requirement to wipe-out audit data as well.
This above steps should reset atlas and start it as if it is a fresh installation. Let me know if there any queries. Thanks.
Created on 05-23-2017 07:00 AM
Thank for the article.
Do I also need to delete collection (core?) from Ambari Infra?
Created on 05-23-2017 10:29 AM
You can delete solr core if no longer want to store indexes.
Created on 07-20-2018 10:40 AM
hello @Ayub Khan i have a question im new with atlas and i udgrade to HDP 2.6 so now i'm not able to see the new tables neither the database. Any suggesion please
thanks you
Created on 09-21-2018 07:32 PM
How to do it for Janus Graph with the current implementation?
Created on 11-05-2018 06:43 PM
This does not work in HDP 3.0.1
hbase(main):001:0> disable 'atlas_titan'
ERROR: Table atlas_titan does not exist.
Created on 11-07-2018 12:48 AM
For HDP-3.x, HBase table name is 'atlas_janus'.