Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-4005

AccumuloClassLoader not finding classes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 1.7.0
    • None
    • start
    • 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

      Attachments

        Activity

          People

            Unassigned Unassigned
            jklucar Jim Klucar
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: