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" <[email protected]> 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
    

Reply via email to