atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shwetha G S (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (ATLAS-452) Exceptions while running HiveHookIT#testAlterTableRename
Date Thu, 28 Jan 2016 05:30:39 GMT

    [ https://issues.apache.org/jira/browse/ATLAS-452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15120780#comment-15120780
] 

Shwetha G S edited comment on ATLAS-452 at 1/28/16 5:29 AM:
------------------------------------------------------------

'IllegalArgumentException: Input String cannot be null cannot be null' - is because of NullPointerException
which doesn't have a message. I will fix it as part of this jira

NullPointerException - The issue is 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
- ATLAS-460
I will create separate jiras for these


was (Author: shwethags):
'IllegalArgumentException: Input String cannot be null cannot be null' - is because of NullPointerException
which doesn't have a message. I will fix it as part of this jira

NullPointerException - The issue is 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
2. Fix hive integration to not use the same hive_column entity across hive_table and hive_storagedesc
I will create separate jiras for these

> Exceptions while running HiveHookIT#testAlterTableRename
> --------------------------------------------------------
>
>                 Key: ATLAS-452
>                 URL: https://issues.apache.org/jira/browse/ATLAS-452
>             Project: Atlas
>          Issue Type: Bug
>            Reporter: Shwetha G S
>            Assignee: Shwetha G S
>
> {noformat}
> 27.0.0.1 - - [22/Jan/2016:06:08:54 +0000] "OPTIONS /api/atlas/discovery/search?query=hive_table+as+t+where+tableName+%3D+'tablehdj2zjk9bz',+db+where+name+%3D+'default'+and+clusterName+%3D+'test'+select+t&user.name=sshivalingamurthy
HTTP/1.1" 200 - "-" "Java/1.7.0_79"
> 2016-01-22 11:38:54.720:WARN:oejs.ServletHandler:qtp127815766-153: /api/atlas/entities
> java.lang.IllegalArgumentException: Input String cannot be null cannot be null
> 	at org.apache.atlas.utils.ParamChecker.notNull(ParamChecker.java:40)
> 	at org.apache.atlas.web.util.Servlets.escapeJsonString(Servlets.java:146)
> 	at org.apache.atlas.web.util.Servlets.getErrorResponse(Servlets.java:125)
> 	at org.apache.atlas.web.util.Servlets.getErrorResponse(Servlets.java:107)
> 	at org.apache.atlas.web.resources.EntityResource.updateEntities(EntityResource.java:177)
> {noformat}
> {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}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message