accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Klucar (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ACCUMULO-4005) AccumuloClassLoader not finding classes
Date Sun, 20 Sep 2015 22:50:04 GMT
Jim Klucar created ACCUMULO-4005:
------------------------------------

             Summary: AccumuloClassLoader not finding classes
                 Key: ACCUMULO-4005
                 URL: https://issues.apache.org/jira/browse/ACCUMULO-4005
             Project: Accumulo
          Issue Type: Bug
          Components: start
    Affects Versions: 1.7.0
            Reporter: Jim Klucar


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 




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

Mime
View raw message