You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lens.apache.org by "Amareshwari Sriramadasu (JIRA)" <ji...@apache.org> on 2015/02/09 05:40:34 UTC

[jira] [Commented] (LENS-287) Exception while describing cube

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

Amareshwari Sriramadasu commented on LENS-287:
----------------------------------------------

Seems this got introduced because of ColumnType enum introduced as part of cube xsd clean up. We havent taken care of column type being complex type.

We need to either make ColumnType to accept complex types as well or revert the change to make type as simple string.

> Exception while describing cube
> -------------------------------
>
>                 Key: LENS-287
>                 URL: https://issues.apache.org/jira/browse/LENS-287
>             Project: Apache Lens
>          Issue Type: Bug
>            Reporter: Arshad Matin
>            Priority: Blocker
>             Fix For: 2.0
>
>
> lens-shell>describe cube --cube cube
> Command failed javax.ws.rs.InternalServerErrorException: HTTP 500 No enum const class org.apache.lens.api.metastore.XColumnType.ARRAY&lt;STRING&gt;
> Exception
> {noformat}
> 08 Feb 2015 18:42:54,735 [Grizzly-worker(7)] WARN  org.glassfish.jersey.server.ServerRuntime$Responder  - WebApplicationException cause:
> java.lang.IllegalArgumentException: No enum const class org.apache.lens.api.metastore.XColumnType.ARRAY<STRING>
>         at java.lang.Enum.valueOf(Enum.java:214)
>         at org.apache.lens.api.metastore.XColumnType.valueOf(XColumnType.java:45)
>         at org.apache.lens.server.metastore.JAXBUtils.xExprColumnFromHiveExprColumn(JAXBUtils.java:255)
>         at org.apache.lens.server.metastore.JAXBUtils.xCubeFromHiveCube(JAXBUtils.java:131)
>         at org.apache.lens.server.metastore.CubeMetastoreServiceImpl.getCube(CubeMetastoreServiceImpl.java:215)
>         at org.apache.lens.server.metastore.MetastoreResource.getCube(MetastoreResource.java:398)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:622)
>         at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
>         at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:151)
>         at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:171)
>         at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:195)
>         at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:104)
>         at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:353)
>         at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:343)
>         at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)
>         at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:255)
>         at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
>         at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
>         at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
>         at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
>         at org.glassfish.jersey.internal.Errors.process(Errors.java:267)
>         at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:318)
>         at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:235)
>         at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:983)
>         at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:330)
>         at org.glassfish.grizzly.http.server.HttpHandler$1.run(HttpHandler.java:212)
>         at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565)
>         at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545)
>         at java.lang.Thread.run(Thread.java:701)
> {noformat}



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