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] [Updated] (ATLAS-383) tests for classtype.convert() with id
Date Tue, 22 Dec 2015 10:18:46 GMT

     [ https://issues.apache.org/jira/browse/ATLAS-383?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Shwetha G S updated ATLAS-383:
------------------------------
    Summary: tests for classtype.convert() with id  (was: hive-import seems broken)

> tests for classtype.convert() with id
> -------------------------------------
>
>                 Key: ATLAS-383
>                 URL: https://issues.apache.org/jira/browse/ATLAS-383
>             Project: Atlas
>          Issue Type: Bug
>    Affects Versions: 0.6-incubating, trunk
>            Reporter: Hemanth Yamijala
>            Assignee: Suma Shivaprasad
>            Priority: Blocker
>             Fix For: trunk
>
>         Attachments: ATLAS-383.patch, hive_import_rc_bug.txt
>
>
> I ran hive-import on both trunk and the release candidate, and both failed with a stack
trace. My hive had a simple table with 2 columns - but I think it is immaterial.
> {code}
> Exception in thread "main" org.apache.atlas.AtlasServiceException: Metadata service API
CREATE_ENTITY failed with status 400(Bad Request) Response Body ({"error":"Cannot convert
value '{Id='(type: hive_storagedesc, id: d85dcf0f-8e42-4416-ae47-7a20acfbeb7b)', traits=[],
values={}}' to datatype hive_storagedesc","stackTrace":"org.apache.atlas.typesystem.types.ValueConversionException:
Cannot convert value '{Id='(type: hive_storagedesc, id: d85dcf0f-8e42-4416-ae47-7a20acfbeb7b)',
traits=[], values={}}' to datatype hive_storagedesc\n\tat org.apache.atlas.typesystem.types.ClassType.convert(ClassType.java:145)\n\tat
org.apache.atlas.typesystem.types.ClassType.convert(ClassType.java:43)\n\tat org.apache.atlas.typesystem.persistence.StructInstance.set(StructInstance.java:122)\n\tat
org.apache.atlas.typesystem.types.ClassType.convert(ClassType.java:143)\n\tat org.apache.atlas.services.DefaultMetadataService.deserializeClassInstances(DefaultMetadataService.java:307)\n\tat
org.apache.atlas.services.DefaultMetadataService.createEntities(DefaultMetadataService.java:280)\n\tat
org.apache.atlas.web.resources.EntityResource.submit(EntityResource.java:114)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\n\tat
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat
java.lang.reflect.Method.invoke(Method.java:606)\n\tat com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)\n\tat
com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)\n\tat
com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)\n\tat
com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)\n\tat
com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)\n\tat
com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)\n\tat
com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)\n\tat
com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469)\n\tat
com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400)\n\tat
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349)\n\tat
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339)\n\tat
com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)\n\tat com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)\n\tat
com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733)\n\tat
javax.servlet.http.HttpServlet.service(HttpServlet.java:790)\n\tat com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:287)\n\tat
com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:277)\n\tat com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:182)\n\tat
com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)\n\tat
com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:85)\n\tat
org.apache.atlas.web.filters.AuditFilter.doFilter(AuditFilter.java:67)\n\tat com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)\n\tat
com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:119)\n\tat
com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:133)\n\tat com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:130)\n\tat
com.google.inject.servlet.GuiceFilter$Context.call(GuiceFilter.java:203)\n\tat com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:130)\n\tat
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)\n\tat
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)\n\tat
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)\n\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)\n\tat
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)\n\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)\n\tat
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)\n\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)\n\tat
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)\n\tat
org.eclipse.jetty.server.Server.handle(Server.java:499)\n\tat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)\n\tat
org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)\n\tat org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)\n\tat
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)\n\tat
java.lang.Thread.run(Thread.java:745)\nCaused by: org.apache.atlas.typesystem.types.ValueConversionException$NullConversionException:
For field 'compressed'\n\tat org.apache.atlas.typesystem.persistence.StructInstance.set(StructInstance.java:124)\n\tat
org.apache.atlas.typesystem.types.ClassType.convert(ClassType.java:143)\n\t... 55 more\nCaused
by: org.apache.atlas.typesystem.types.ValueConversionException$NullConversionException: Null
value not allowed for multiplicty Multiplicity{lower=1, upper=1, isUnique=false}\n\tat org.apache.atlas.typesystem.types.DataTypes$PrimitiveType.convertNull(DataTypes.java:96)\n\tat
org.apache.atlas.typesystem.types.DataTypes$BooleanType.convert(DataTypes.java:136)\n\tat
org.apache.atlas.typesystem.types.DataTypes$BooleanType.convert(DataTypes.java:111)\n\tat
org.apache.atlas.typesystem.persistence.StructInstance.set(StructInstance.java:122)\n\t...
56 more\n"})
> 	at org.apache.atlas.AtlasClient.callAPIWithResource(AtlasClient.java:567)
> 	at org.apache.atlas.AtlasClient.callAPI(AtlasClient.java:572)
> 	at org.apache.atlas.AtlasClient.createEntity(AtlasClient.java:255)
> 	at org.apache.atlas.AtlasClient.createEntity(AtlasClient.java:270)
> 	at org.apache.atlas.hive.bridge.HiveMetaStoreBridge.registerInstance(HiveMetaStoreBridge.java:157)
> 	at org.apache.atlas.hive.bridge.HiveMetaStoreBridge.registerPartition(HiveMetaStoreBridge.java:370)
> 	at org.apache.atlas.hive.bridge.HiveMetaStoreBridge.registerPartitions(HiveMetaStoreBridge.java:356)
> 	at org.apache.atlas.hive.bridge.HiveMetaStoreBridge.importTables(HiveMetaStoreBridge.java:215)
> 	at org.apache.atlas.hive.bridge.HiveMetaStoreBridge.importDatabases(HiveMetaStoreBridge.java:99)
> 	at org.apache.atlas.hive.bridge.HiveMetaStoreBridge.importHiveMetadata(HiveMetaStoreBridge.java:91)
> 	at org.apache.atlas.hive.bridge.HiveMetaStoreBridge.main(HiveMetaStoreBridge.java:502)
> {code}



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

Mime
View raw message