Skip to main content
rsanchor
Gold ⭐️
Jun 11, 2020 1:15 PM UTC
Solved

PARTIAL UPDATE APACHE ATLAS ENTITY GUI

After get the entity gui, I sent the request for the partial Update, but i get this error

 

curl "http://xxxxxxxxxx:21000/api/atlas/v2/entity/guid/5a71e80b-c610-4a0f-bb30-f196225114d6" \
-i -X PUT --negotiate \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-u username:password -d @entidad.json
{"errorCode":"ATLAS-400-00-023","errorMessage":"Attribute null not found for type LBK_Dataset"}[

 

 

please any suggestion??

rsanchor
rsanchorAnswer
Gold ⭐️
Jun 11, 2020 7:09 PM UTC

finally its works but first need to download the json for the entity 

 

curl "http://xxxxx:21000/api/atlas/v2/entity/guid/ca029704-cb5c-4726-9ca7-a40e603e8f8e" \
-i -X GET --negotiate \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-u username:password >> fichero.json

 

and then modify the fichero.json and make a partial update to the entity

 

curl "http://xxxxxx:21000/api/atlas/v2/entity/uniqueAttribute/type/LBK_Dataset?attr:qualifiedName=LBK_Dataset.database.tabla"
-i -X GET --negotiate \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-u username:password -d@fichero.json

 

 

 

 

7 replies

rsanchor
rsanchorAuthor
Gold ⭐️
Jun 11, 2020 1:27 PM UTC

the json contain all the same information but with the comment modified

{
"entity": {
"typeName": "LBK_Dataset",
"status": "ACTIVE",
"version": 0,
"guid": "-12",
"attributes": {
"name": "glb_recibos_h",
"qualifiedName": "LBK_Dataset.temp.glb_recibos_h",
"datasetRef": [
{
"typeName": "hive_table",
"uniqueAttributes": {
"qualifiedName": "temp.glb_recibos_h@HORTONDESA"
}
}
],
"storage": [
{
"type": "LOGICAL",
"dataset_ref": {
"typeName": "hive_table",
"uniqueAttributes": {
"qualifiedName": "temp.glb_recibos_h@HORTONDESA"
}
}
}
],
"createTime": "2020-03-13T13:10:01.1584101401Z",
"comment": "Tabla que carga los recibos de los clientes MODIFICADO",
"columns": [
{
"typeName": "LBK_Column",
"guid": "-13"
},
{
"typeName": "LBK_Column",
"guid": "-14"
},
{
"typeName": "LBK_Column",
"guid": "-15"
},
{
"typeName": "LBK_Column",
"guid": "-16"
},
{
"typeName": "LBK_Column",
"guid": "-17"
},
{
"typeName": "LBK_Column",
"guid": "-18"
},
{
"typeName": "LBK_Column",
"guid": "-19"
},
{
"typeName": "LBK_Column",
"guid": "-20"
}
],
"description": "http://svyetlmm1p/wikidata/index.php/GOLD.CCE_CALIDAD_CONTACTOS_H_SF"
}
},
"referredEntities": {
"-13": {
"status": "ACTIVE",
"version": 0,
"typeName": "LBK_Column",
"guid": "-13",
"attributes": {
"name": "glb_recibos_h.cod_entidad",
"qualifiedName": "LBK_Column.temp.glb_recibos_h.cod_entidad",
"datasetRef": [
{
"typeName": "hive_column",
"uniqueAttributes": {
"qualifiedName": "temp.glb_recibos_h.cod_entidad@HORTONDESA"
}
}
],
"type": "string",
"comment": "",
"dataset": {
"typeName": "LBK_Dataset",
"guid": "-12"
}
}
},
"-14": {
"status": "ACTIVE",
"version": 0,
"typeName": "LBK_Column",
"guid": "-14",
"attributes": {
"name": "glb_recibos_h.cod_contrato",
"qualifiedName": "LBK_Column.temp.glb_recibos_h.cod_contrato",
"datasetRef": [
{
"typeName": "hive_column",
"uniqueAttributes": {
"qualifiedName": "temp.glb_recibos_h.cod_contrato@HORTONDESA"
}
}
],
"type": "string",
"comment": "",
"dataset": {
"typeName": "LBK_Dataset",
"guid": "-12"
}
}
},
"-15": {
"status": "ACTIVE",
"version": 0,
"typeName": "LBK_Column",
"guid": "-15",
"attributes": {
"name": "glb_recibos_h.num_ordenante",
"qualifiedName": "LBK_Column.temp.glb_recibos_h.num_ordenante",
"datasetRef": [
{
"typeName": "hive_column",
"uniqueAttributes": {
"qualifiedName": "temp.glb_recibos_h.num_ordenante@HORTONDESA"
}
}
],
"type": "string",
"comment": "",
"dataset": {
"typeName": "LBK_Dataset",
"guid": "-12"
}
}
},
"-16": {
"status": "ACTIVE",
"version": 0,
"typeName": "LBK_Column",
"guid": "-16",
"attributes": {
"name": "glb_recibos_h.num_recibos_pagados",
"qualifiedName": "LBK_Column.temp.glb_recibos_h.num_recibos_pagados",
"datasetRef": [
{
"typeName": "hive_column",
"uniqueAttributes": {
"qualifiedName": "temp.glb_recibos_h.num_recibos_pagados@HORTONDESA"
}
}
],
"type": "string",
"comment": "",
"dataset": {
"typeName": "LBK_Dataset",
"guid": "-12"
}
}
},
"-17": {
"status": "ACTIVE",
"version": 0,
"typeName": "LBK_Column",
"guid": "-17",
"attributes": {
"name": "glb_recibos_h.num_recibos_devueltos",
"qualifiedName": "LBK_Column.temp.glb_recibos_h.num_recibos_devueltos",
"datasetRef": [
{
"typeName": "hive_column",
"uniqueAttributes": {
"qualifiedName": "temp.glb_recibos_h.num_recibos_devueltos@HORTONDESA"
}
}
],
"type": "string",
"comment": "",
"dataset": {
"typeName": "LBK_Dataset",
"guid": "-12"
}
}
},
"-18": {
"status": "ACTIVE",
"version": 0,
"typeName": "LBK_Column",
"guid": "-18",
"attributes": {
"name": "glb_recibos_h.imp_saldo_recibos_pag",
"qualifiedName": "LBK_Column.temp.glb_recibos_h.imp_saldo_recibos_pag",
"datasetRef": [
{
"typeName": "hive_column",
"uniqueAttributes": {
"qualifiedName": "temp.glb_recibos_h.imp_saldo_recibos_pag@HORTONDESA"
}
}
],
"type": "string",
"comment": "",
"dataset": {
"typeName": "LBK_Dataset",
"guid": "-12"
}
}
},
"-19": {
"status": "ACTIVE",
"version": 0,
"typeName": "LBK_Column",
"guid": "-19",
"attributes": {
"name": "glb_recibos_h.imp_saldo_recibos_dev",
"qualifiedName": "LBK_Column.temp.glb_recibos_h.imp_saldo_recibos_dev",
"datasetRef": [
{
"typeName": "hive_column",
"uniqueAttributes": {
"qualifiedName": "temp.glb_recibos_h.imp_saldo_recibos_dev@HORTONDESA"
}
}
],
"type": "string",
"comment": "",
"dataset": {
"typeName": "LBK_Dataset",
"guid": "-12"
}
}
},
"-20": {
"status": "ACTIVE",
"version": 0,
"typeName": "LBK_Column",
"guid": "-20",
"attributes": {
"name": "glb_recibos_h.fec_vigencia",
"qualifiedName": "LBK_Column.temp.glb_recibos_h.fec_vigencia",
"datasetRef": [
{
"typeName": "hive_column",
"uniqueAttributes": {
"qualifiedName": "temp.glb_recibos_h.fec_vigencia@HORTONDESA"
}
}
],
"type": "string",
"comment": "",
"dataset": {
"typeName": "LBK_Dataset",
"guid": "-12"
}
}
}
}
}
Translate
rsanchor
rsanchorAuthorAnswer
Gold ⭐️
Jun 11, 2020 7:09 PM UTC

finally its works but first need to download the json for the entity 

 

curl "http://xxxxx:21000/api/atlas/v2/entity/guid/ca029704-cb5c-4726-9ca7-a40e603e8f8e" \
-i -X GET --negotiate \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-u username:password >> fichero.json

 

and then modify the fichero.json and make a partial update to the entity

 

curl "http://xxxxxx:21000/api/atlas/v2/entity/uniqueAttribute/type/LBK_Dataset?attr:qualifiedName=LBK_Dataset.database.tabla"
-i -X GET --negotiate \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-u username:password -d@fichero.json

 

 

 

 

Translate
cjervis
Community Manager
Community Manager
Jun 11, 2020 9:29 PM UTC

I'm happy to see you resolved your issue. Please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. 

Screen Shot 2019-08-06 at 1.54.47 PM.pngmark as solution button

 

 

Translate
Keep the questions coming
VidyaSargur
Community Manager
Community Manager
Aug 6, 2024 9:27 AM UTC

@bigdatacm as this is an older post, you would have a better chance of receiving a resolution by starting a new thread. This will also be an opportunity to provide details specific to your environment that could aid others in assisting you with a more accurate answer to your question. You can link this thread as a reference in your new post.

Translate
Regards, Vidya Sargur Madabhushi| Senior Community Manager | Was your question answered? Make sure to mark the answer as the Best Answer. If you find a reply useful, say thanks by clicking on the thumbs up button.
bigdatacm
Silver ⭐️⭐️⭐️
Aug 6, 2024 11:23 AM UTC

Thank you for your suggestion @VidyaSargur . will do that

Translate