Community Articles
Find and share helpful community-sourced technical articles
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.
Labels (1)

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.

  • 'atlas_titan' : stores all the metadata from various sources.
  • 'ATLAS_ENTITY_AUDIT_EVENTS': stores the audit information of the entities in Atlas

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.

  • Stop Atlas via Ambari.
  • In hbase terminal, to disable hbase table, run this command.
disable 'atlas_titan'
  • In hbase terminal, to drop hbase table, run this command.
drop 'atlas_titan'
  • Start Atlas via Ambari.

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.

2,396 Views
Comments

Thank for the article.

Do I also need to delete collection (core?) from Ambari Infra?

You can delete solr core if no longer want to store indexes.

New Contributor

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

New Contributor

@Ayub Khan

How to do it for Janus Graph with the current implementation?

New Contributor

This does not work in HDP 3.0.1

hbase(main):001:0> disable 'atlas_titan' 
ERROR: Table atlas_titan does not exist.
Contributor

For HDP-3.x, HBase table name is 'atlas_janus'.

Don't have an account?
Coming from Hortonworks? Activate your account here
Version history
Revision #:
1 of 1
Last update:
‎02-14-2017 06:38 PM
Updated by:
 
Contributors
Top Kudoed Authors