Created 02-27-2017 05:40 PM
Currently I am using the following rest api to get list of guids of tables associated with a tag
This api returns guid of tables along with their status as DELETED or ACTIVE. I wish to retrieve only the tables with status ACTIVE. Is it possible somehow?
Created 02-27-2017 05:57 PM
Currently there is no support for fetching the entities based on their status via REST API. DSL support is limited as of HDP-2.5. Please check below link for the REST API documentation.
The same can be achieved using some python wrapper on top of dsl query.
Created 03-01-2017 12:23 PM
Also if writing a python wrapper is more appropriate rather than deleting the 'deleted tables' entries from atlas db then could you please point me to some link explaining how it can be done.
Will this python wrapper be written to intercept the api calls?
Created 03-03-2017 08:07 PM
you can retrieve table with tag name using query "tagname"
and ACTIVE entity using
hive_table where __state="ACTIVE"
There is no support currently to combine these 2 queries.
You can combine queries like :
hive_table where name="t1" and __state="ACTIVE" which retrieves the ACTIVE hive_tables with name t1
but there is no current support for ACTIVE tables tagged with tagname.
Created 03-03-2017 09:10 PM
is there a way by which I could delete all these deleted table entries from titan so they are not retrieved at all