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/12 07:08:12 UTC

[jira] [Commented] (LENS-298) Provide a way to add static jars at cube/db level

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

Amareshwari Sriramadasu commented on LENS-298:
----------------------------------------------

Here are some thoughts :

Assumptions :
# namespace below maps to database.

Requirements :
* A namespace administrator should be able to add jars for namespace.
* When user switch namespaces, the new namespace jars should be loaded in the serving thread.
* Jar location can be specified by URI that server can read - file:/// or hdfs:/// or the jar itself can be shipped from client or fixed path <lens.server.namespace.resource.dir>/<namespace-name>/*.jar
** We can support one of them to start with.
* Namespace administrator should be able to Update/Alter jars under namespace. This should not require restarting the lens server.
* Jars registered under namespace have to be passed to underlying drivers if query is explained/executed in the namespace.
* Current session level resources behavior will be kept in tact. That says - when session jars are added in a session those are loaded along with namespace jars.
** If same jar is being loaded both in session and namespace, session jars can take precedence.



> Provide a way to add static jars at cube/db level
> -------------------------------------------------
>
>                 Key: LENS-298
>                 URL: https://issues.apache.org/jira/browse/LENS-298
>             Project: Apache Lens
>          Issue Type: Improvement
>          Components: cube, server
>            Reporter: Amareshwari Sriramadasu
>             Fix For: 2.1
>
>
> Static cube related jars can be loaded in system classpath of lens whenever a cube/db is accessed. These jars would be the jars required to load serde, storage of the underlying tables in db. Right now, these are getting loaded are session auxiliary jars, we need to separate session auxiliary jars with cube related jars.
> This however need to be done as an extension where it should be possible to drop jars in some ext/ folder and they are considered, as opposed to bundling this as part of the lens system.
> System should degrade to requiring the jars in session, if the required jars are missing in ext/



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