You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@accumulo.apache.org by o haya <oh...@yahoo.com> on 2017/07/31 06:39:35 UTC

Modifying VisibilityEvaluator - Problem with Classpath for scanner

Hi,

I am trying to make some modifications to the Accumulo VisibilityModifier, but when I add my code, and try to run a scan on a table, I am getting ClassNoDefError for a class that my modified code uses.

So far, what I have been trying to add my JARs to the classpath is to put the JARs in the Accumulo lib/ext directory AND also, editing the accumulo-site.xml and adding the same JARs to that file.  

Is there somewhere else I need to configure or do I need to put the JAR in somewhere other than the lib/ext directory?

Thanks,
Jim

Re: Modifying VisibilityEvaluator - Problem with Classpath for scanner

Posted by Michael Wall <mj...@gmail.com>.
You can use the classpath command to help troubleshoot as well

$ACCUMULO_HOME/bin/accumulo classpath

On Mon, Jul 31, 2017 at 8:33 AM ivan bella <iv...@ivan.bella.name> wrote:

> Jim,
> Putting the jars in the lib/ext directory is a perfectly acceptable
> mechanism. Make sure your jars are in place on all of your tservers before
> you start them up. Perhaps this class is being found but is failing to
> initialize itself which can lead to a ClassNoDefError.
>
> Ivan
>
>
> > On July 31, 2017 at 2:39 AM o haya <oh...@yahoo.com> wrote:
> >
> >
> > Hi,
> >
> > I am trying to make some modifications to the Accumulo
> VisibilityModifier, but when I add my code, and try to run a scan on a
> table, I am getting ClassNoDefError for a class that my modified code uses.
> >
> > So far, what I have been trying to add my JARs to the classpath is to
> put the JARs in the Accumulo lib/ext directory AND also, editing the
> accumulo-site.xml and adding the same JARs to that file.
> >
> > Is there somewhere else I need to configure or do I need to put the JAR
> in somewhere other than the lib/ext directory?
> >
> > Thanks,
> > Jim
>