- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How to fetch total numbers of tables available in a Schema using Rest API search techniques ?
- Labels:
-
Apache Atlas
Created ‎06-09-2017 09:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to get the list pf all the tables available in a particular schema. This Rest API command generally gives the GUID and total count of all tables available in Atlas.
http://hostname:port/api/atlas/entities?type=hive_table
Can we apply some sort of filter on database or schema ?
Thank you,
Subash
Created ‎06-12-2017 08:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
DSL query : hive_table where db.name="default" lists down all the hive tables in "default" database.
V1 Query which can be used in Atlas 0.7 :
/api/atlas/discovery/search/dsl?query=hive_table+where+db.name%3D%22default%22
Created ‎06-12-2017 10:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hey @Sharmadha Sainath,
I was not able to add comment so adding my reply here, actually i was using space instead of "=" in limit. It is working now. Thanks
Created ‎06-12-2017 09:28 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The following gremlin query can also be used the get the count of entity type:
- http://localhost:21000/api/atlas/discovery/search/gremlin?query=g.V("__typeName", "hive_db").count()
- http://localhost:21000/api/atlas/discovery/search/gremlin?query=g.V("__typeName", "hive_table").count()
Created ‎06-13-2017 02:33 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you @Sarath Subramanian. Right now i am using DSL for searching the tables in a schema. Let me know which one should be good in terms of performance. Gremlin or DSL.
Created ‎06-14-2017 09:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@subash sharma , DSL query makes GREMLIN call internally to fetch results.

- « Previous
-
- 1
- 2
- Next »