Created 10-25-2018 07:23 AM
Hi All,
Could you explain how to get the active hive tables count in Apache Atlas ?
Thanks in advance..!!!
Created 10-25-2018 02:35 PM
please use the atlas api to fetch these details. Ref: https://atlas.apache.org/Search-Basic.html
Created 10-25-2018 05:45 PM
@Satya Nittala, you can use the following basic search API to return all hive_table entities in the cluster. You can change the value of limit and offset to get the result.
curl -X POST http://172.27.17.5:21000/api/atlas/v2/search/basic \ -H 'Content-Type: application/json' \ -d '{ "excludeDeletedEntities": true, "includeSubClassifications": true, "includeSubTypes": true, "limit": 100000, "offset": 0, "typeName": "hive_table" }'
Created 10-26-2018 06:32 AM
@Sarath Subramanian Thanks for response
Please find below for my commnets
1. You provided POST command , , Do we need to use GET right ?
2. This one will give all hive table (Deleted & Active ) , I need only "ACTIVE"
3. This command will give maximum of 10k count , I had more that , its not working if i gave more than 10k
Created 11-09-2018 02:49 PM
1.Basic search by using POST is sophisticated way compared to GET , as POST allows you to provide more params which GET cannot.
2. I go with Sarath's answer . "excludeDeletedEntities": true will exclude the DELETED entities.
3. 10k is the default max limit of results which can be changed to n using : atlas.search.maxlimit=n
Created 10-26-2018 05:27 PM
1. Basic search uses POST command, please refer to this link for more details.
2. "excludeDeletedEntities": true flag ensures that the results will exclude deleted entities.
3. Can you elaborate, what didn't work if limit > 10000 ?