You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@atlas.apache.org by anshu shukla <an...@gmail.com> on 2018/08/22 13:40:33 UTC

Error: Mandatory attribute value missing in type Referenceable

Hi,

I am trying to create instances for the storm_topology type in Atlas.
*My logic goes here:*

AtlasEntity storm_topology = new AtlasEntity("storm_topology");

storm_topology.setAttribute("nodes",
AtlasTypeUtil.toObjectIds(Arrays.asList(*entity_stormNode_temp*)));

where  *entity_stormNode_temp is the return type of createInstance()
function for storm_node type.*

*Error:*
*Exception in thread "main" org.apache.atlas.AtlasServiceException:
Metadata service API org.apache.atlas.AtlasClientV2$API_V2@78452606 failed
with status 404 (Not Found) Response Body
({"errorCode":"ATLAS-404-00-007","errorMessage":"Invalid instance
creation/updation parameters passed : storm_topology.qualifiedName:
mandatory attribute value missing in type Referenceable"})*

-- 
Thanks & Regards,
Anshu Shukla

Re: Error: Mandatory attribute value missing in type Referenceable

Posted by Apoorv Naik <an...@hortonworks.com>.
Like the message states, you'll have to set the "qualifiedName" attribute for the storm AtlasEntity. 
Please refer to the storm model JSON to ensure that you pass all the required  attributes when attempting a create.

On 8/22/18, 7:25 AM, "anshu shukla" <an...@gmail.com> wrote:

    Hi,
    
    I am trying to create instances for the storm_topology type in Atlas.
    *My logic goes here:*
    
    AtlasEntity storm_topology = new AtlasEntity("storm_topology");
    
    storm_topology.setAttribute("nodes",
    AtlasTypeUtil.toObjectIds(Arrays.asList(*entity_stormNode_temp*)));
    
    where  *entity_stormNode_temp is the return type of createInstance()
    function for storm_node type.*
    
    *Error:*
    *Exception in thread "main" org.apache.atlas.AtlasServiceException:
    Metadata service API org.apache.atlas.AtlasClientV2$API_V2@78452606 failed
    with status 404 (Not Found) Response Body
    ({"errorCode":"ATLAS-404-00-007","errorMessage":"Invalid instance
    creation/updation parameters passed : storm_topology.qualifiedName:
    mandatory attribute value missing in type Referenceable"})*
    
    -- 
    Thanks & Regards,
    Anshu Shukla