accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Marion (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ACCUMULO-708) Modify ClassLoader to support different applications / multi-tenancy
Date Sun, 28 Oct 2012 23:57:12 GMT

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

Dave Marion commented on ACCUMULO-708:
--------------------------------------

Steps I used to test locally:

{noformat}
mvn clean package -P assemble
tar zxf <distro> -C $ACCUMULO_HOME
hadoop fs -rmr /accumulo/classpath
hadoop fs -mkdir /accumulo/classpath
hadoop fs -moveFromLocal $ACCUMULO_HOME/lib/* /accumulo/classpath
hadoop fs -copyToLocal /accumulo/classpath/commons-vfs2-2.0.jar $ACCUMULO_HOME/lib/.
hadoop fs -rmr /accumulo/classpath/commons-vfs2-2.0.jar
hadoop fs -copyToLocal /accumulo/classpath/accumulo-start-1.5.0-SNAPSHOT.jar $ACCUMULO_HOME/lib/.
hadoop fs -rmr /accumulo/classpath/accumulo-start-1.5.0-SNAPSHOT.jar
#
# You will need to copy the following jar out of HDFS also if you plan to run the old classloader.
#
hadoop fs -copyToLocal /accumulo/classpath/commons-jci-fam-1.0.jar $ACCUMULO_HOME/lib/.
hadoop fs -rmr /accumulo/classpath/commons-jci-fam-1.0.jar

cp $ACCUMULO_HOME/conf/examples/512MB/native-standalone/* $ACCUMULO_HOME/conf/.
$ACCUMULO_HOME/bin/accumulo classpath

# Add to accumulo-site.xml
        <!-- VFS ClassLoader Settings -->
        <property>
                <name>classloader.vfs.enabled</name>
                <value>true</value>
                <description>set to true to enable the vfs classloader. If not enabled
(default=false), then the old classloader is used</description>
        </property>

$ACCUMULO_HOME/bin/accumulo classpath

#Then, add the default context classpath
        <property>
                <name>classloader.vfs.context.classpath.system</name>
                <value>hdfs://localhost:8020/accumulo/classpath</value>
                <description>location of the jars for the default (system) context</description>
        </property>

$ACCUMULO_HOME/bin/accumulo classpath

{noformat}
                
> Modify ClassLoader to support different applications / multi-tenancy
> --------------------------------------------------------------------
>
>                 Key: ACCUMULO-708
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-708
>             Project: Accumulo
>          Issue Type: Improvement
>          Components: start
>            Reporter: Dave Marion
>            Assignee: Dave Marion
>              Labels: classloader
>             Fix For: 1.5.0
>
>         Attachments: ACCUMULO-708-1.patch
>
>   Original Estimate: 24h
>          Time Spent: 33h
>  Remaining Estimate: 0h
>
> I'd like to expand the current classloader to support loading classes from HDFS and different
application contexts. I'll be modifying the ticket as the idea matures.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message