Member since
01-31-2016
96
Posts
92
Kudos Received
20
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
2674 | 02-11-2019 01:04 PM | |
3226 | 12-06-2018 01:19 PM | |
1862 | 08-23-2018 06:22 AM | |
1723 | 08-09-2018 11:29 AM | |
2457 | 03-29-2018 04:55 PM |
02-28-2018
10:52 AM
3 Kudos
@Satya Nittala , hive_table entity can be edited on UI if the property is set in conf/application-properties file of Atlas To edit hive_table entities alone : atlas.ui.editable.entity.types=hive_table To edit entities of all types: atlas.ui.editable.entity.types=*
... View more
02-28-2018
10:00 AM
3 Kudos
@Satya Nittala Entity attributes can be updated using Entity Rest APIs (http://atlas.apache.org/api/v2/resource_EntityREST.html) Simple way to update an attribute using PUT using curl : <GUID of table> is the GUID of the hive_table entity : curl -v -u admin:admin -H "Content-Type: application/json" -X PUT -d '"table_description"' "http://localhost:21000/api/atlas/v2/entity/guid/<GUID of table>?name=description"
... View more
02-19-2018
01:40 PM
There is no such V2 REST API currently. For this requirement , you can use the search APIs. Example : /api/atlas/v2/search/basic?typeName=type_name /api/atlas/v2/search/dsl?typeName=type_name
... View more
02-19-2018
01:31 PM
@Laura Ngo Once you have the super tag "security_protection"created , following can be POSTed to API to create Types REST v2 API sub classifications. Note that the superTypes list contains the security_protection classification. http://localhost:21000/api/atlas/v2/types/typedefs?type=classification {
"classificationDefs":[
{
"name":"disk_encryption",
"description":"",
"superTypes":["security_protection" ],
"attributeDefs":[]
},
{
"name":"field_encryption",
"description":"",
"superTypes":["security_protection" ],
"attributeDefs":[]
}
]
}
... View more
02-18-2018
06:34 PM
@subash sharma To use the /api/atlas/v2/entity/bulk to fetch entities , GUIDs need to be known before and to be given as parameters. http://localhost:21000/api/atlas/v2/entity/bulk?guid=<guid1>&guid=guid2&guid=guid3
>> "fetch all entities in my browser" - There is no API currently to fetch all entities without specifying type / query / classification. Could you please explain your requirement ? Do the entities you require are of a specific type , or have a specific tag or perhaps have a pattern in name ?
... View more
11-22-2017
04:24 AM
1 Kudo
@Benjamin Hopp Following queries work : hive_table where db.name="db_name" hive_table where db.qualifiedName="db_qualifiedname" screen-shot-2017-11-22-at-95121-am.png
... View more
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
10-24-2017
06:07 PM
2 Kudos
@Aaron Mayo
This can be accomplished using V2 APIs.
POST request body example :
{ "classification":{ "typeName":"PII","attributes":{ "attrib1":"value1","attrib2":"value2"}},"entityGuids":[ "05c97069-dc36-4f26-b017-13582c42428a","4b3fb1fa-0755-4329-8ecb-7e53e18ed128","6b3e5b42-e09b-428a-89ad-9ae38690044a","7593f4ed-9cd2-46ba-b0a7-b92229301476","f21ee4aa-461c-4eeb-8945-31ac8ec648d6"]} API: http://atlas_host:21000/api/atlas/v2/entity/bulk/classification In the JSON , i) PII is the tag name ii)attributes is the attribute name , value map iii)"entityGuids" json array is the list of the GUIDs of the entities that have to be tagged. Please refer http://atlas.apache.org/api/v2/resource_EntityREST.html#resource_EntityREST_addClassification_POST
... View more
07-11-2017
12:06 PM
1 Kudo
@Saba Baig Please refer to this issue https://issues.apache.org/jira/browse/ATLAS-1788
... View more
07-11-2017
12:04 PM
1 Kudo
2.1) What is a classification name? 2.2) Difference between tag and classification name? Classification and tags are same Basic search is basically Lucene search . So ,If you see your result in the screenshot, basic search has returned everything related to fact.(i.e) entities with description containing fact.
... View more