accumulo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher <>
Subject Re: ClassNotFoundException: org.apache.commons.logging.LogFactory
Date Thu, 06 Nov 2014 18:10:52 GMT
As a matter of good practice, I do think it's best to avoid wildcards in
the classpath, and explicitly add the jars you need. Our examples obviously
use wildcards, because that's reasonable for an example, and it works. But,
I tend to recommend more targeted classpaths in a real system, whenever
possible. I don't know what the situation is for Docker, but presumably,
the Docker image includes all the dependencies Accumulo needs, and should
have fixed and known locations for all the jars, so it could in theory use
explicit paths instead of sweeping wildcards.

Christopher L Tubbs II

On Wed, Nov 5, 2014 at 11:25 PM, David Medinets <>

> The issue of not finding the LogFactory class was resolved by adding
> the following to the general.classpath section of the
> accumulo-site.xml file:
>         /usr/lib/hadoop/[^.].*.jar,
>         /usr/lib/hadoop/lib/[^.].*.jar,
>         /usr/lib/hadoop-hdfs/[^.].*.jar,
>         /usr/lib/hadoop-hdfs/lib/[^.].*.jar,
>         /usr/lib/hadoop-yarn/[^.].*.jar,
>         /usr/lib/hadoop-yarn/lib/[^.].*.jar,
>         /usr/lib/hadoop-mapreduce/[^.].*.jar,
>         /usr/lib/hadoop-mapreduce/lib/*.jar
> Thanks.

View raw message