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

Arshad Matin closed LENS-703.
-----------------------------

> ClassNotFound while doing "list partition" after "update partition"
> -------------------------------------------------------------------
>
>                 Key: LENS-703
>                 URL: https://issues.apache.org/jira/browse/LENS-703
>             Project: Apache Lens
>          Issue Type: Bug
>    Affects Versions: 2.3
>            Reporter: Arshad Matin
>            Assignee: Rajat Khandelwal
>             Fix For: 2.3
>
>         Attachments: LENS-703_2015-07-29_12:09:21.patch
>
>
> {noformat}
> 29 Jul 2015 06:26:49,748 [616fb893-c46c-41a5-be69-f9325be67052] 
> [Grizzly-worker(6)] ERROR org.apache.lens.server.LensRequestListener  - 
> Encountered HTTP exception
> org.glassfish.jersey.server.internal.process.MappableException: 
> org.apache.lens.server.api.error.LensException
>       at 
> org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.mapTargetToRuntimeEx(AbstractJavaResourceMethodDispatcher.java:190)
>       at 
> org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.access$200(AbstractJavaResourceMethodDispatcher.java:74)
>       at 
> org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:160)
>       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:745)
> Caused by: org.apache.lens.server.api.error.LensException
>       at 
> org.apache.lens.server.metastore.CubeMetastoreServiceImpl.getAllPartitionsOfFactStorage(CubeMetastoreServiceImpl.java:715)
>       at 
> org.apache.lens.server.metastore.MetastoreResource.getAllPartitionsOfFactStorageByFilter(MetastoreResource.java:1046)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>       at java.lang.reflect.Method.invoke(Method.java:497)
>       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)
>       ... 20 more
> Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: Class not found: 
> class org.apache.hadoop.hive.ql.io.RCFileOutputFormat
>       at 
> org.apache.hadoop.hive.ql.metadata.Partition.getOutputFormatClass(Partition.java:331)
>       at 
> org.apache.lens.server.metastore.JAXBUtils.xpartitionFromPartition(JAXBUtils.java:795)
>       at 
> org.apache.lens.server.metastore.CubeMetastoreServiceImpl.getAllPartitionsOfFactStorage(CubeMetastoreServiceImpl.java:707)
>       ... 27 more
> Caused by: java.lang.ClassNotFoundException: class 
> org.apache.hadoop.hive.ql.io.RCFileOutputFormat
>       at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>       at java.lang.Class.forName0(Native Method)
>       at java.lang.Class.forName(Class.java:348)
>       at 
> org.apache.hadoop.hive.ql.metadata.Partition.getOutputFormatClass(Partition.java:322)
>       ... 29 more
> 29 Jul 2015 06:26:49,749 [616fb893-c46c-41a5-be69-f9325be67052] 
> [Grizzly-worker(6)] WARN  org.glassfish.jersey.server.ServerRuntime$Responder 
>  - WebApplicationException cause:
> org.apache.lens.server.api.error.LensException
>       at 
> org.apache.lens.server.metastore.CubeMetastoreServiceImpl.getAllPartitionsOfFactStorage(CubeMetastoreServiceImpl.java:715)
>       at 
> org.apache.lens.server.metastore.MetastoreResource.getAllPartitionsOfFactStorageByFilter(MetastoreResource.java:1046)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>       at java.lang.reflect.Method.invoke(Method.java:497)
>       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:745)
> Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: Class not found: 
> class org.apache.hadoop.hive.ql.io.RCFileOutputFormat
>       at 
> org.apache.hadoop.hive.ql.metadata.Partition.getOutputFormatClass(Partition.java:331)
>       at 
> org.apache.lens.server.metastore.JAXBUtils.xpartitionFromPartition(JAXBUtils.java:795)
>       at 
> org.apache.lens.server.metastore.CubeMetastoreServiceImpl.getAllPartitionsOfFactStorage(CubeMetastoreServiceImpl.java:707)
>       ... 27 more
> Caused by: java.lang.ClassNotFoundException: class 
> org.apache.hadoop.hive.ql.io.RCFileOutputFormat
>       at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>       at java.lang.Class.forName0(Native Method)
>       at java.lang.Class.forName(Class.java:348)
>       at 
> org.apache.hadoop.hive.ql.metadata.Partition.getOutputFormatClass(Partition.java:322)
>       ... 29 more
> 29 Jul 2015 06:26:49,751 [616fb893-c46c-41a5-be69-f9325be67052] 
> [Grizzly-worker(6)] ERROR org.glassfish.jersey.server.ServerRuntime$Responder 
>  - An exception has been thrown from an exception mapper class 
> org.apache.lens.server.error.LensExceptionMapper.
> java.lang.NullPointerException
>       at 
> org.apache.lens.server.error.LensExceptionMapper.toResponse(LensExceptionMapper.java:35)
>       at 
> org.apache.lens.server.error.LensExceptionMapper.toResponse(LensExceptionMapper.java:28)
>       at 
> org.glassfish.jersey.server.ServerRuntime$Responder.mapException(ServerRuntime.java:443)
>       at 
> org.glassfish.jersey.server.ServerRuntime$Responder.process(ServerRuntime.java:371)
>       at 
> org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:261)
>       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:745)
> 29 Jul 2015 06:26:49,751 [616fb893-c46c-41a5-be69-f9325be67052] 
> [Grizzly-worker(6)] ERROR org.glassfish.jersey.server.ServerRuntime$Responder 
>  - An exception was not mapped due to exception mapper failure. The HTTP 500 
> response will be returned.
> org.apache.lens.server.api.error.LensException
>       at 
> org.apache.lens.server.metastore.CubeMetastoreServiceImpl.getAllPartitionsOfFactStorage(CubeMetastoreServiceImpl.java:715)
>       at 
> org.apache.lens.server.metastore.MetastoreResource.getAllPartitionsOfFactStorageByFilter(MetastoreResource.java:1046)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>       at java.lang.reflect.Method.invoke(Method.java:497)
>       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:745)
> Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: Class not found: 
> class org.apache.hadoop.hive.ql.io.RCFileOutputFormat
>       at 
> org.apache.hadoop.hive.ql.metadata.Partition.getOutputFormatClass(Partition.java:331)
>       at 
> org.apache.lens.server.metastore.JAXBUtils.xpartitionFromPartition(JAXBUtils.java:795)
>       at 
> org.apache.lens.server.metastore.CubeMetastoreServiceImpl.getAllPartitionsOfFactStorage(CubeMetastoreServiceImpl.java:707)
>       ... 27 more
> Caused by: java.lang.ClassNotFoundException: class 
> org.apache.hadoop.hive.ql.io.RCFileOutputFormat
>       at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>       at java.lang.Class.forName0(Native Method)
>       at java.lang.Class.forName(Class.java:348)
>       at 
> org.apache.hadoop.hive.ql.metadata.Partition.getOutputFormatClass(Partition.java:322)
>       ... 29 more
> {noformat}



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

Reply via email to