Support Questions
Find answers, ask questions, and share your expertise

PARTIAL UPDATE APACHE ATLAS ENTITY GUI

Solved Go to solution
Highlighted

PARTIAL UPDATE APACHE ATLAS ENTITY GUI

New Contributor

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??

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: PARTIAL UPDATE APACHE ATLAS ENTITY GUI

New Contributor

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

 

 

 

 

View solution in original post

3 REPLIES 3
Highlighted

Re: PARTIAL UPDATE APACHE ATLAS ENTITY GUI

New Contributor

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"
        }
      }
    }
  }
}
Highlighted

Re: PARTIAL UPDATE APACHE ATLAS ENTITY GUI

New Contributor

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

 

 

 

 

View solution in original post

Re: PARTIAL UPDATE APACHE ATLAS ENTITY GUI

Community Manager

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.png

 

 


Cy Jervis, 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:
Community Guidelines
How to use the forum
Don't have an account?