<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question How to fetch total numbers of tables   available in a Schema  using Rest API search techniques ? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-fetch-total-numbers-of-tables-available-in-a-Schema/m-p/204089#M62633</link>
    <description>&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;A href="http://hostname:port/api/atlas/entities?type=hive_table" target="_blank"&gt;http://hostname:port/api/atlas/entities?type=hive_table&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can we apply some sort of filter on database or schema ?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Subash&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2017 16:27:33 GMT</pubDate>
    <dc:creator>subash_sharma</dc:creator>
    <dc:date>2017-06-09T16:27:33Z</dc:date>
    <item>
      <title>How to fetch total numbers of tables   available in a Schema  using Rest API search techniques ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-fetch-total-numbers-of-tables-available-in-a-Schema/m-p/204089#M62633</link>
      <description>&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;A href="http://hostname:port/api/atlas/entities?type=hive_table" target="_blank"&gt;http://hostname:port/api/atlas/entities?type=hive_table&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can we apply some sort of filter on database or schema ?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Subash&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2017 16:27:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-fetch-total-numbers-of-tables-available-in-a-Schema/m-p/204089#M62633</guid>
      <dc:creator>subash_sharma</dc:creator>
      <dc:date>2017-06-09T16:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch total numbers of tables   available in a Schema  using Rest API search techniques ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-fetch-total-numbers-of-tables-available-in-a-Schema/m-p/204090#M62634</link>
      <description>&lt;P&gt;Right now there isn't a way to sort the output. The consumer of this API will have to do the sorting.&lt;/P&gt;&lt;P&gt;Alternative to this would be to use DSL query. See this page for some &lt;A href="http://atlas.apache.org/Search.html"&gt;samples&lt;/A&gt;.  &lt;/P&gt;&lt;P&gt;DSL search converts the query into Gremlin query and then fires it on to the database.&lt;/P&gt;&lt;P&gt;Your query would be like this: &lt;EM&gt;hive_table  orderby name&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;REST call would be:&lt;EM&gt; &lt;A href="http://localhost:21000/api/atlas/v2/search/dsl?limit=25&amp;amp;excludeDeletedEntities" target="_blank"&gt;http://localhost:21000/api/atlas/v2/search/dsl?limit=25&amp;amp;excludeDeletedEntities&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2017 01:41:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-fetch-total-numbers-of-tables-available-in-a-Schema/m-p/204090#M62634</guid>
      <dc:creator>amestry</dc:creator>
      <dc:date>2017-06-10T01:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch total numbers of tables   available in a Schema  using Rest API search techniques ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-fetch-total-numbers-of-tables-available-in-a-Schema/m-p/204091#M62635</link>
      <description>&lt;P&gt;Like &lt;A rel="user" href="https://community.cloudera.com/users/14489/amestry.html" nodeid="14489"&gt;@Ashutosh Mestry&lt;/A&gt; said this can be achieved through DSL or Gremlin calls. &lt;/P&gt;&lt;PRE&gt;from DB select count() as 'count'
from Table select count() as 'count'&lt;/PRE&gt;&lt;P&gt;Also remember that the count queries are pretty expensive and might take a while to return results as it requires a major graph scan.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2017 03:13:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-fetch-total-numbers-of-tables-available-in-a-Schema/m-p/204091#M62635</guid>
      <dc:creator>anaik</dc:creator>
      <dc:date>2017-06-10T03:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch total numbers of tables   available in a Schema  using Rest API search techniques ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-fetch-total-numbers-of-tables-available-in-a-Schema/m-p/204092#M62636</link>
      <description>&lt;P&gt;Hey &lt;A rel="user" href="https://community.cloudera.com/users/14489/amestry.html" nodeid="14489"&gt;@Ashutosh Mestry&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I should have mentioned Atlas version as well. I am currently working on Atlas 0.7 and I guess the rest API request which you have mentioned will work on Atlas 0.8. Are there any similar rest API request available for Atlas 0.7 ?&lt;/P&gt;&lt;P&gt;Even if i will search on &lt;EM&gt;hive_table orderby name , &lt;/EM&gt;It will list down all the tables from all schema. I am searching a way to list down list of all tables of a particular schema.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Subash&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 13:31:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-fetch-total-numbers-of-tables-available-in-a-Schema/m-p/204092#M62636</guid>
      <dc:creator>subash_sharma</dc:creator>
      <dc:date>2017-06-12T13:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch total numbers of tables   available in a Schema  using Rest API search techniques ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-fetch-total-numbers-of-tables-available-in-a-Schema/m-p/204093#M62637</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14607/subashsharma.html" nodeid="14607"&gt;@subash sharma&lt;/A&gt; &lt;/P&gt;&lt;P&gt;DSL query : hive_table where db.name="default"  lists down all the hive tables in "default" database.&lt;/P&gt;&lt;P&gt;V1 Query which can be used in Atlas 0.7 :&lt;/P&gt;&lt;PRE&gt;/api/atlas/discovery/search/dsl?query=hive_table+where+db.name%3D%22default%22&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Jun 2017 15:16:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-fetch-total-numbers-of-tables-available-in-a-Schema/m-p/204093#M62637</guid>
      <dc:creator>ssainath</dc:creator>
      <dc:date>2017-06-12T15:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch total numbers of tables   available in a Schema  using Rest API search techniques ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-fetch-total-numbers-of-tables-available-in-a-Schema/m-p/204094#M62638</link>
      <description>&lt;P&gt;Bingo, This is what i was looking for  !&lt;/P&gt;&lt;P&gt;Thank you &lt;A rel="user" href="https://community.cloudera.com/users/2504/ssainath.html" nodeid="2504"&gt;@Sharmadha Sainath&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 15:25:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-fetch-total-numbers-of-tables-available-in-a-Schema/m-p/204094#M62638</guid>
      <dc:creator>subash_sharma</dc:creator>
      <dc:date>2017-06-12T15:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch total numbers of tables   available in a Schema  using Rest API search techniques ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-fetch-total-numbers-of-tables-available-in-a-Schema/m-p/204095#M62639</link>
      <description>&lt;P&gt;Welcome &lt;A rel="user" href="https://community.cloudera.com/users/14607/subashsharma.html" nodeid="14607"&gt;@subash sharma&lt;/A&gt; . Please accept the answer if it answered your question.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 15:43:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-fetch-total-numbers-of-tables-available-in-a-Schema/m-p/204095#M62639</guid>
      <dc:creator>ssainath</dc:creator>
      <dc:date>2017-06-12T15:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch total numbers of tables   available in a Schema  using Rest API search techniques ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-fetch-total-numbers-of-tables-available-in-a-Schema/m-p/204096#M62640</link>
      <description>&lt;P&gt;hey &lt;A rel="user" href="https://community.cloudera.com/users/2504/ssainath.html" nodeid="2504"&gt;@Sharmadha Sainath&lt;/A&gt;, How to increase the limit of tables, I am getting only 100 tables using this script.&lt;/P&gt;&lt;P&gt;I tried using "limit" but limit is not working with 1000, It works when i am limiting the number of tables by giving values below 100.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 16:19:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-fetch-total-numbers-of-tables-available-in-a-Schema/m-p/204096#M62640</guid>
      <dc:creator>subash_sharma</dc:creator>
      <dc:date>2017-06-12T16:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch total numbers of tables   available in a Schema  using Rest API search techniques ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-fetch-total-numbers-of-tables-available-in-a-Schema/m-p/204097#M62641</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14607/subashsharma.html" nodeid="14607"&gt;@subash sharma&lt;/A&gt; , add limit parameter like :&lt;/P&gt;&lt;PRE&gt;/api/atlas/discovery/search/dsl?query=hive_table+where+db.name%3D%22default%22&amp;amp;limit=500&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Jun 2017 16:29:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-fetch-total-numbers-of-tables-available-in-a-Schema/m-p/204097#M62641</guid>
      <dc:creator>ssainath</dc:creator>
      <dc:date>2017-06-12T16:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch total numbers of tables   available in a Schema  using Rest API search techniques ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-fetch-total-numbers-of-tables-available-in-a-Schema/m-p/204098#M62642</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14607/subashsharma.html" nodeid="14607"&gt;@subash sharma&lt;/A&gt; , limit parameter should work . How many tables are there in the database you are querying?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 17:01:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-fetch-total-numbers-of-tables-available-in-a-Schema/m-p/204098#M62642</guid>
      <dc:creator>ssainath</dc:creator>
      <dc:date>2017-06-12T17:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch total numbers of tables   available in a Schema  using Rest API search techniques ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-fetch-total-numbers-of-tables-available-in-a-Schema/m-p/204099#M62643</link>
      <description>&lt;P&gt;Hey &lt;A rel="user" href="https://community.cloudera.com/users/2504/ssainath.html" nodeid="2504"&gt;@Sharmadha Sainath&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;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&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 17:10:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-fetch-total-numbers-of-tables-available-in-a-Schema/m-p/204099#M62643</guid>
      <dc:creator>subash_sharma</dc:creator>
      <dc:date>2017-06-12T17:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch total numbers of tables   available in a Schema  using Rest API search techniques ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-fetch-total-numbers-of-tables-available-in-a-Schema/m-p/204100#M62644</link>
      <description>&lt;P&gt;The following gremlin query can also be used the get the count of entity type: &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;http://localhost:21000/api/atlas/discovery/search/gremlin?query=g.V("__typeName", "hive_db").count()&lt;/LI&gt;&lt;LI&gt;http://localhost:21000/api/atlas/discovery/search/gremlin?query=g.V("__typeName", "hive_table").count()&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 13 Jun 2017 04:28:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-fetch-total-numbers-of-tables-available-in-a-Schema/m-p/204100#M62644</guid>
      <dc:creator>ssubramanian</dc:creator>
      <dc:date>2017-06-13T04:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch total numbers of tables   available in a Schema  using Rest API search techniques ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-fetch-total-numbers-of-tables-available-in-a-Schema/m-p/204101#M62645</link>
      <description>&lt;P&gt;Thank you &lt;A rel="user" href="https://community.cloudera.com/users/12092/ssubramanian.html" nodeid="12092"&gt;@Sarath Subramanian&lt;/A&gt;. 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.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 21:33:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-fetch-total-numbers-of-tables-available-in-a-Schema/m-p/204101#M62645</guid>
      <dc:creator>subash_sharma</dc:creator>
      <dc:date>2017-06-13T21:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch total numbers of tables   available in a Schema  using Rest API search techniques ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-fetch-total-numbers-of-tables-available-in-a-Schema/m-p/204102#M62646</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14607/subashsharma.html" nodeid="14607"&gt;@subash sharma&lt;/A&gt; , DSL query makes GREMLIN call internally to fetch results.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 16:17:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-fetch-total-numbers-of-tables-available-in-a-Schema/m-p/204102#M62646</guid>
      <dc:creator>ssainath</dc:creator>
      <dc:date>2017-06-14T16:17:36Z</dc:date>
    </item>
  </channel>
</rss>

