Saturday 4 June 2022

Apache Atlas: Entities

An entity is an instance of type. For example, a database entity looks like below.

{
   "referredEntities":{
      
   },
   "entity":{
      "typeName":"jdbc_db",
      "attributes":{
         "owner":"Krishna G",
         "replicatedTo":null,
         "userDescription":null,
         "replicatedFrom":null,
         "qualifiedName":"abc.net:1234/warehouse",
         "displayName":"warehouse database",
         "name":"warehouse",
         "description":"warehouse database in MySQL",
         "createdTime":0,
         "locationUri":null,
         "ownedBy":"Platforms team"
      },
      "guid":"b11dd53c-1c5c-4bf7-9513-7962e7ffccd2",
      "isIncomplete":false,
      "status":"ACTIVE",
      "createdBy":"admin",
      "updatedBy":"admin",
      "createTime":1643363877582,
      "updateTime":1643363877582,
      "version":0,
      "relationshipAttributes":{
         "inputToProcesses":[
            
         ],
         "pipeline":null,
         "schema":[
            
         ],
         "tables":[
            {
               "guid":"ccf28d22-f3e6-46a0-8de6-355f697da2cf",
               "typeName":"jdbc_table",
               "entityStatus":"ACTIVE",
               "displayText":"products",
               "relationshipType":"jdbc_db_to_table",
               "relationshipGuid":"4feed41e-9368-4997-ab6c-a133d85d6a76",
               "relationshipStatus":"ACTIVE",
               "relationshipAttributes":{
                  "typeName":"jdbc_db_to_table"
               }
            }
         ],
         "model":null,
         "meanings":[
            
         ],
         "outputFromProcesses":[
            
         ]
      },
      "labels":[
         
      ]
   }
}

 

Points to be noted

a.   Instance of type is called an entity, and has an unique identifier (GUID) to identify the entity in the Atlas. This GUID is assigned by Atlas, and will not be changed in the lifetime.

b.   Every entity belongs to exactly one type. In this example,  warehouse entity is of type jdbc_db

c.    Every entity has attributes, referredEntities, referredAttributes associated with it. You will learn these in upcoming posts.

 

 

 

 

Previous                                                    Next                                                    Home

No comments:

Post a Comment