[ 
https://issues.apache.org/jira/browse/PIG-3881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13966851#comment-13966851
 ] 

Josh Elser commented on PIG-3881:
---------------------------------

Oh, right - I should've remembered this earlier. Accumulo 1.5 deprecated using 
an explicit username and password authentication scheme in favor of using Token 
classes. As such, this isn't going to work with <1.5.0. Funny that you get the 
classnotfound exception on AccumuloSecurityException and not 
AuthenticationToken (as that's where it broke for me).

IIRC, the old code you referenced above that I had linked on my people page was 
still based on the original accumulo-contrib module. I updated the dependency 
since Accumulo 1.4 is going away very quickly so the AccumuloStorage in Pig now 
should work with Accumulo 1.5 and 1.6. Sorry you're stuck on 1.4.2.

> When loading Accumulo table, I see AccumuloSecurityException 
> ClassNotFoundException
> -----------------------------------------------------------------------------------
>
>                 Key: PIG-3881
>                 URL: https://issues.apache.org/jira/browse/PIG-3881
>             Project: Pig
>          Issue Type: Bug
>          Components: grunt
>    Affects Versions: 0.13.0
>            Reporter: David Medinets
>
> I've added the Accumulo jar files to my pig class like this:
> export PIG_CLASSPATH=/opt/accumulo/lib/accumulo-core-1.4.2.jar
> export PIG_CLASSPATH=$PIG_CLASSPATH:/opt/accumulo/lib/libthrift-0.6.1.jar
> export PIG_CLASSPATH=$PIG_CLASSPATH:/opt/accumulo/lib/cloudtrace-1.4.2.jar
> export PIG_CLASSPATH=$PIG_CLASSPATH:/opt/zookeeper/zookeeper-3.3.3.jar
> And then I start pig (using the fat jar). When I run 
> A = LOAD 
> 'accumulo://TABLE?instance=default&user=root&password=XXXX&zookeepers=localhost:2181'
>  USING org.apache.pig.backend.hadoop.accumulo.AccumuloStorage();
> I ran into the following exception:
> ava.lang.NoClassDefFoundError: 
> org/apache/accumulo/core/client/AccumuloSecurityException
>       at java.lang.Class.forName0(Native Method)
>       at java.lang.Class.forName(Class.java:264)
>       at org.apache.pig.impl.PigContext.resolveClassName(PigContext.java:659)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to