- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
PARTIAL UPDATE APACHE ATLAS ENTITY GUI
- Labels:
-
Apache Atlas
Created 06-11-2020 06:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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??
Created on 06-11-2020 12:09 PM - edited 06-11-2020 11:24 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Created 06-11-2020 06:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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"
}
}
}
}
}
Created on 06-11-2020 12:09 PM - edited 06-11-2020 11:24 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Created 06-11-2020 02:29 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Cy Jervis, Manager, Community Program
Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Created 08-05-2024 04:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @rsanchor ,
Hope you doing great. I have similar issue. I have downloaded json and i just trying to update my entity using PUT operation and its failing with same reason - "errorCode":"ATLAS-400-00-023","errorMessage":"Attribute null not found for type hive_table"
could you please advise how did you update the entity using PUT command ?
curl --negotiate -u : -X PUT -H "Content-Type: application/json" https://myURL:portNumber/api/atlas/v2/entity/guid/<myGuid>-d @downloaded_entity.json
Created 08-21-2024 12:15 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an we know why are you using GET command to update the entity ? is it typo ?
Created 08-06-2024 02:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@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.
Regards,
Vidya Sargur,Community Manager
Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community:
Created 08-06-2024 04:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for your suggestion @VidyaSargur . will do that
