You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Jeffrey Manno (Jira)" <ji...@apache.org> on 2021/09/14 18:02:00 UTC

[jira] [Resolved] (ACCUMULO-4005) AccumuloClassLoader not finding classes

     [ https://issues.apache.org/jira/browse/ACCUMULO-4005?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeffrey Manno resolved ACCUMULO-4005.
-------------------------------------
    Resolution: Not A Problem

Aspects of the class loader are being deprecated while the main functionality is being simplified. Users are expected to implement their own class loader features so this issue will be up to them.

> 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
>            Priority: Major
>
> 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
(v8.3.4#803005)