blob: 09edcb9138cbd5791b54bfafc23c568289fe1914 [file] [log] [blame]
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
1. Running Accumulo with new VFS ClassLoader as SystemClassLoader
a. Add accumulo/test/target/TestJar-Iterators.jar to HDFS directory
hadoop fs -mkdir /iterators
hadoop fs -put TestJar-Iterators.jar /iterators/.
b. Add vfs-reloading-classloader-0.0.1-SNAPSHOT.jar to CLASSPATH
c. Add "-Djava.system.class.loader=org.apache.accumulo.classloader.vfs.ReloadingVFSClassLoader" to JAVA_OPTS
d. Add "-Dvfs.class.loader.classpath=hdfs://localhost:9000/iterators/TestJar-Iterators.jar" to JAVA_OPTS
e. Add "-Dvfs.class.loader.debug=true" to JAVA_OPTS
f. Create table , insert some test data
createtable test
insert a b c this_is_a_test
scan
setiter -class org.apache.accumulo.test.functional.ValueReversingIterator -scan -t test -name reverse -p 100