Member since
06-11-2020
3
Posts
0
Kudos Received
1
Solution
My Accepted Solutions
Title | Views | Posted |
---|---|---|
3756 | 06-11-2020 12:09 PM |
06-11-2020
12:09 PM
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 more
06-11-2020
06:27 AM
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"
}
}
}
}
}
... View more
06-11-2020
06:15 AM
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??
... View more
Labels:
- Labels:
-
Apache Atlas