Member since
10-24-2017
2
Posts
0
Kudos Received
0
Solutions
10-25-2017
06:55 AM
1 Kudo
@Aaron Mayo
GUIDS are generated by Atlas.Each Atlas entity has a unique GUID. You can get GUID of a table from UI , or by firing search query and writing a script on top of it to parse the GUIDS in the resulting JSON. For example , if you want to fetch the GUIDs of all tables in database default , DSL query = hive_db where db.name="default" Encoded : http://atlas_host:21000/api/atlas/v2/search/dsl?offset=0&query=db.name%3D%22default%22&typeName=hive_table Following is the JSON response attached as an image : dsl-query-result.png From this , json["entities"][0]["guid"],json["entities"][1]["guid"] ... json["entities"][n]["guid"] can be extracted. If you want to get GUID of only 1 table , instead of writing script , you can get it directly from the UI. When you click on an hive_table entity in Atlas, it takes you to http://atlas_host:21000/#!/detailPage/<GUID of the entity> Example : http://atlas_host:21000/#!/detailPage/c44d0207-3567-4573-baaf-577ecbb8e195 Here c44d0207-3567-4573-baaf-577ecbb8e195 is the GUID of the hive_table entity . Since , going to UI and getting the GUID for all tables is tedious and manual process , it is preferred to fire query which fetches required tables and fetch GUIDS using a script.
... View more