Shwetha G S created ATLAS-460: --------------------------------- Summary: hive_table and hive_storagedesc share the same hive_column entity Key: ATLAS-460 URL: https://issues.apache.org/jira/browse/ATLAS-460 Project: Atlas Issue Type: Bug Reporter: Shwetha G S
{noformat} 2016-01-22 11:47:08,614 ERROR - [qtp1582368608-323 - ddb67cab-8e11-4434-9cb3-53d95fccc10a:] ~ Unable to persist entity instance (EntityResource:176) java.lang.NullPointerException at org.apache.atlas.repository.graph.TypedInstanceToGraphMapper.updateClassEdge(TypedInstanceToGraphMapper.java:567) at org.apache.atlas.repository.graph.TypedInstanceToGraphMapper.addOrUpdateClassVertex(TypedInstanceToGraphMapper.java:513) at org.apache.atlas.repository.graph.TypedInstanceToGraphMapper.addOrUpdateCollectionEntry(TypedInstanceToGraphMapper.java:470) at org.apache.atlas.repository.graph.TypedInstanceToGraphMapper.mapArrayCollectionToVertex(TypedInstanceToGraphMapper.java:370) at org.apache.atlas.repository.graph.TypedInstanceToGraphMapper.mapAttributesToVertex(TypedInstanceToGraphMapper.java:208) at org.apache.atlas.repository.graph.TypedInstanceToGraphMapper.mapInstanceToVertex(TypedInstanceToGraphMapper.java:183) at org.apache.atlas.repository.graph.TypedInstanceToGraphMapper.addOrUpdateAttributesAndTraits(TypedInstanceToGraphMapper.java:163) at org.apache.atlas.repository.graph.TypedInstanceToGraphMapper.addOrUpdateAttributesAndTraits(TypedInstanceToGraphMapper.java:139) at org.apache.atlas.repository.graph.TypedInstanceToGraphMapper.mapTypedInstanceToGraph(TypedInstanceToGraphMapper.java:105) at org.apache.atlas.repository.graph.GraphBackedMetadataRepository.updateEntities(GraphBackedMetadataRepository.java:298) at org.apache.atlas.GraphTransactionInterceptor.invoke(GraphTransactionInterceptor.java:42) at org.apache.atlas.services.DefaultMetadataService.updateEntities(DefaultMetadataService.java:384) {noformat} NullPointerException - The issue was because both hive_table and hive_storagedesc define columns(list<hive_column>) as composite attribute and the same hive_column entity is shared between both. Same entity can't be composite entity of multiple entities, doesn't make sense from the definition of composition. Two fixes are required here - 1. create entity should fail if a composite entity is shared - ATLAS-459 2. Fix hive integration to not use the same hive_column entity across hive_table and hive_storagedesc. should be fixed in this jira -- This message was sent by Atlassian JIRA (v6.3.4#6332)