The AtlasServer entity type is special entity type in following ways:
The new type is available within the Search By Type dropdown in both Basic and Advanced search.
The entity of this type is created upon successful completion of every Export and Import operation. The entity is created with current cluster’s name.
The entity is also created based on export and import requests’ replicatedTo and replicatedFrom parameters.
The property page for AtlasServer entity has one additional tab ‘Export/Import Audits’. This has detailed audit record for each export and/or import operation performed on current Atlas instance.
The additionalInfo attribute property is discussed in detail below.
The table has following columns:
The following export request will end up creating AtlasServer entity with clMain as its name. The audit record of this operation will be displayed within the property page of this entity.
{ "itemsToExport": [ { "typeName": "hive_db", "uniqueAttributes": { "qualifiedName": "stocks@cl1" }} ], "options": { "replicatedTo": "clMain" } }
Often times it is necessary to disambiguate the name of the cluster by specifying the location or the data center within which the Atlas instance resides.
The name of the cluster can be specified by separating the location name and cluster name by ‘$’. For example, a clsuter name specified as ‘SFO$cl1’ can be a cluster in San Fancisco (SFO) data center with the name ‘cl1’.
The AtlasServer will handle this and set its name as ‘cl1’ and fullName as ‘SFO@cl1’.
This property in AtlasServer is a map with key and value both as String. This can be used to store any information pertaining to this instance.
Please see Incremental Export for and example of how this property can be used.
Title | Atlas Server API |
---|---|
Example | see below. |
URL | api/atlas/admin/server/{serverName} |
Method | GET |
URL Parameters | name of the server |
Data Parameters | None |
Success Response | AtlasServer |
Error Response | Errors Returned as AtlasBaseException |
curl -X GET -u admin:admin -H "Content-Type: application/json" -H "Cache-Control: no-cache" http://localhost:21000/api/atlas/admin/server/cl2
Output:
{ "guid": "f87e4fd1-bfb5-482d-9ab1-e735621b7d16", "name": "cl2", "qualifiedName": "cl2", "additionalInfo": { "nextModifiedTimestamp": "1533037289383", "replicationOperation": "EXPORT", "topLevelEntity": "stocks@cl1" } }