Skip to main content
ipson
Gold ⭐️
Jul 16, 2024 12:46 PM UTC
Solved

Manually creating data lineage in Apache Atlas on CDP

I have two hive tables and I want to manually create a lineage relationship between them using the Atlas API.

I'm trying to run this POST request:

```

curl --location 'https://[url]/atlas/api/atlas/v2/entity' \
--header 'Content-Type: application/json' \
--header 'Authorization: ••••••' \
--data-raw '{
"entity": {
"typeName": "hive_process",
"qualifiedName": "my_etl_process@cluster",
"name": "my_etl_process",
"description": "ETL process from input_table to output_table",
"attributes": {
"inputs": [
{
"guid": "9768381b-8783-49c3-850d-39bf1f14b73f"
}
],
"outputs": [
{
"guid": "998de7ba-2254-418d-b405-656eba428643"
}
]
}
}
}
'

```

I'm getting this 404 response:

```

{
"errorCode": "ATLAS-404-00-007",
"errorMessage": "Invalid instance creation/updation parameters passed : hive_process.qualifiedName: mandatory attribute value missing in type Referenceable"
}

``` 

Any suggestions for how to manually create lineage using the API would be appreciated.

shehbazk
shehbazkAnswer
Gold ⭐️⭐️
Aug 2, 2024 8:46 AM UTC

Hi @ipson 

Thanks for bringing up the issue, The error message indicates that the qualifiedName attribute is missing or incorrectly specified for the hive_process type. In Apache Atlas, the qualifiedName is a mandatory attribute that uniquely identifies an entity within a cluster.

 

3 replies

shehbazk
Gold ⭐️⭐️
shehbazkAnswer
Gold ⭐️⭐️
Aug 2, 2024 8:46 AM UTC

Hi @ipson 

Thanks for bringing up the issue, The error message indicates that the qualifiedName attribute is missing or incorrectly specified for the hive_process type. In Apache Atlas, the qualifiedName is a mandatory attribute that uniquely identifies an entity within a cluster.

 

Translate
Scharan
Gold ⭐️
Gold ⭐️
Aug 2, 2024 3:45 PM UTC

@ipson Can you please confirm Atlas version

Translate
DianaTorres
Community Manager
Community Manager
Aug 6, 2024 10:21 PM UTC

@ipson Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. If you are still experiencing the issue, can you provide the information @Scharan has requested? Thanks.

Translate
Regards, Diana Torres, Senior Community Moderator