[
https://issues.apache.org/jira/browse/LENS-298?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14323708#comment-14323708
]
Jaideep Dhok commented on LENS-298:
-----------------------------------
Planning to add a core service for DB resources. This will be started
in LensServices, so that database resources are available to all services and
loaded before metastore service etc starts up.
{code}
public class DatabaseResourceLoader extends AbstractService {
// List databases and resources
Collection<String> listDatabases(); // - LENS-316
Collection<Resource> getResourcesForDatabase(String database); // -
LENS-316
// Resource management
void addResourceForDatabase(Resource resource, String database);// -
LENS-317
void updateResourceForDatabase(Resource resource, String database);// -
LENS-317
void deleteResourceForDatabase(Resource resource, String database);// -
LENS-317
void loadResources(String database);// - LENS-316
void loadResources(Collection<String> database);// - LENS-316
// Database classloader management
ClassLoader getClassLoaderForDatabase(String database);// - LENS-316
void clearClassLoaderForDatabase(String database);// - LENS-316
void clearAllClassLoaders();// - LENS-316
}
{code}
> 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
> Assignee: Jaideep Dhok
> 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)