[ https://issues.apache.org/jira/browse/ATLAS-4627?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17601727#comment-17601727 ]
ASF subversion and git services commented on ATLAS-4627: -------------------------------------------------------- Commit 3a98f1fc98dfcfabf9a19b5d43c8d61e8e696390 in atlas's branch refs/heads/master from pareshD [ https://gitbox.apache.org/repos/asf?p=atlas.git;h=3a98f1fc9 ] ATLAS-4627 : Delete Existing entity in Atlas which are not present in Hive, DB wise through Import-hive command. Signed-off-by: Pinal Shah <pinal.s...@freestoneinfotech.com> > Delete Existing entity in Atlas which are not present in Hive, DB wise > through Import-hive command. > --------------------------------------------------------------------------------------------------- > > Key: ATLAS-4627 > URL: https://issues.apache.org/jira/browse/ATLAS-4627 > Project: Atlas > Issue Type: Bug > Reporter: Paresh Devalia > Assignee: Paresh Devalia > Priority: Major > > PROBLEM STATEMENT > Created a DB_1 and DB_2 in Hive and disable the Atlas hook from hive and > hive_tez. > Created tables with 10 record in DB_1 and DB_2 . > In Atlas UI we checked it has no entity created, so we ran import-hive.sh > bash import-hive.sh -d DB_1 -t table_1, so this command will only create one > entity in atlas. > bash import-hive.sh -d DB_1, so this command will create all entity in atlas. > Drop table_1 from DB_1 and DB_2 in Hive, but will be present in atlas as > hooks are disable, so we will ran import-hive command to delete from atlas . > bash import-hive.sh -d DB_1 -t table_1 -deleteNonExisting, this command will > delete all the table from all DB which are present in Atlas and dropped from > Hive. > As we have mention -d and -t argument in command for DB and table wise > deleting, but still it ran for all DB and Tables. > h4. -- This message was sent by Atlassian Jira (v8.20.10#820010)