Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Not A Problem
-
1.7.0
-
None
-
None
-
Patch
Description
org.apache.accumulo.start.classloader.AccumuloClassLoader is not correctly loading classes described in the general.classpaths property. Is appears that if a classpath contains an environment variable for substitution, the class/regex will get loaded. The offending line of code is a boolean logic error on line 198.
if (extDir.isDirectory())
urls.add(extDir.toURI().toURL());
else {
...
the correction should be
if(extDir.isFile())
but I have not tested this.
A workaround is to add a bogus environment variable that will substitute to the empty string in general.classpaths For example
$DOESNT_EXIST/usr/lib/hadoop/[^.].*.jar