Looks like you are missing an accumulo jar. However the Hadoop command finds it's classpath, you need to point it to the place where the vagrant script copies all the jars. david.
On Fri, Jan 13, 2017 at 12:11 PM, Davide Allavena < davide.allav...@synapta.it> wrote: > Hello, > while testing the vagrant file found here ( > https://github.com/apache/incubator-rya/tree/master/ > extras/vagrantExample/src/main/vagrant) > i was unable to do bulk upload as described in the documentation. > > In order to perform SELECT * { s? p? o? } queries I built Rya from master > (at commit f58eeda) substituting the generated war in the vagrant File. > > Moving either the RDF file and rya.mapreduce-3.2.11- > incubating-SNAPSHOT.jar > in the VM created from the Vagrantfile and inside the VM i gave the > command: > > vagrant@rya-example-box:~$ hadoop jar > rya.mapreduce-3.2.11-incubating-SNAPSHOT.jar > org.apache.rya.accumulo.mr.tools.RdfFileInputTool -Dac.zk=localhost:2181 > -Dac.instance=dev -Dac.username=root -Dac.pwd=root > -Drdf.tablePrefix=triplestore_ -Drdf.format=N-Triples > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/accumulo/core/client/security/tokens/AuthenticationToken > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:348) > at org.apache.hadoop.util.RunJar.run(RunJar.java:214) > at org.apache.hadoop.util.RunJar.main(RunJar.java:136) > Caused by: java.lang.ClassNotFoundException: > org.apache.accumulo.core.client.security.tokens.AuthenticationToken > at java.net.URLClassLoader.findClass(URLClassLoader.java:381) > at java.lang.ClassLoader.loadClass(ClassLoader.java:424) > at java.lang.ClassLoader.loadClass(ClassLoader.java:357) > ... 4 more > > The jar i used is located > in dao/accumulo.rya/target/accumulo.rya-3.2.11-incubating-SNAPSHOT.jar and > the class name is not the one reported in the docs > > Is it the right command? The docs are a bit inconsistent with names. > > Cheers, > > > Davide >