You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lens.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2015/03/01 09:43:04 UTC

[jira] [Commented] (LENS-369) Cube metastore client's conf is not loaded with db resources

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

Hudson commented on LENS-369:
-----------------------------

SUCCESS: Integrated in Lens-Commit #425 (See [https://builds.apache.org/job/Lens-Commit/425/])
LENS-369: Set correct classloader in cube metastore client.(Amareshwari Sriramadasu via prongs) (prongs: rev 3998b94886ad54459a11015c288ce3bfabd00c26)
* lens-server/src/main/java/org/apache/lens/server/session/LensSessionImpl.java
* lens-server/src/test/java/org/apache/lens/server/session/TestSessionClassLoaders.java
* lens-cube/src/main/java/org/apache/lens/cube/metadata/CubeMetastoreClient.java
* lens-server/src/main/java/org/apache/lens/server/session/DatabaseResourceService.java
* lens-server/src/test/java/org/apache/lens/server/session/TestSessionResource.java


> Cube metastore client's conf is not loaded with db resources
> ------------------------------------------------------------
>
>                 Key: LENS-369
>                 URL: https://issues.apache.org/jira/browse/LENS-369
>             Project: Apache Lens
>          Issue Type: Bug
>          Components: server
>    Affects Versions: 2.1
>            Reporter: Arshad Matin
>            Assignee: Amareshwari Sriramadasu
>            Priority: Critical
>             Fix For: 2.1
>
>         Attachments: LENS-369.patch
>
>
> Show cubes as the first call in session fails with ClassNotFoundException, when one of tables in metastore is created with custom serde; and the resources are added through db resources.
> Here is the stacktrace :
> {noformat}
> 01 Mar 2015 10:15:48,354 [Grizzly-worker(2)] ERROR hive.log  - error in initSerDe: java.lang.ClassNotFoundException Class <customSerde> not found 
> java.lang.ClassNotFoundException: Class <customSerde> not found
>   at org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:1801)
>   at org.apache.hadoop.hive.metastore.MetaStoreUtils.getDeserializer(MetaStoreUtils.java:337)
>   at org.apache.hadoop.hive.ql.metadata.Table.getDeserializerFromMetaStore(Table.java:283)
>   at org.apache.hadoop.hive.ql.metadata.Table.getDeserializer(Table.java:276)
>   at org.apache.hadoop.hive.ql.metadata.Table.getCols(Table.java:626)
>   at org.apache.hadoop.hive.ql.metadata.Table.checkValidity(Table.java:184)
>   at org.apache.hadoop.hive.ql.metadata.Hive.getTable(Hive.java:1008)
>   at org.apache.hadoop.hive.ql.metadata.Hive.getTable(Hive.java:909)
>   at org.apache.lens.cube.metadata.CubeMetastoreClient.getTable(CubeMetastoreClient.java:663)
>   at org.apache.lens.cube.metadata.CubeMetastoreClient.getCube(CubeMetastoreClient.java:880)
>   at org.apache.lens.cube.metadata.CubeMetastoreClient.getAllCubes(CubeMetastoreClient.java:997)
>   at org.apache.lens.server.metastore.CubeMetastoreServiceImpl.getAllCubeNames(CubeMetastoreServiceImpl.java:165)
>   at org.apache.lens.server.metastore.MetastoreResource.getAllCubes(MetastoreResource.java:261)
> {noformat}
> Reporting this on behalf of [~arshadmatin20]. Thanks [~arshadmatin20] for finding the issue.



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