Dear sir or madam,
I really don't want to bother you because these questions seem "stupid." But I 
have been troubled by them for a month, so that I can't do the next step. I am 
very troubled, so I have to send you this very rude mail! Please be forgive me, 
I urgently need your help now. 
My question is I can not load data, there are details: 
1. Bulk load data
When I executed this instruction, the instruction is
hadoop jar usr/local/rya.mapreduce-4.0.0-incubting-SNAPSHOT-shaded.jar 
org.apache.rya.accumulo.mr.RdfFileInputTool -Dac.zk=localhost:2181 
-Dac.instance=accumulo -Dac.username=root -Dac.pwd=111111 
-Drdf.tablePrefix=triplestore_ -Drdf.format=N-Triples hdfs://$RDF_DATA 

there are always out errors about “Exception in thread “main” 
java.long.ClassNotFoundException: org.apache.rya.accumulo.mr.RdfFileInputTool”. 
As shown in the picture

I find the location of "RdfFileInputTool ", so I add "tools." before  
"RdfFileInputTool ", the instruction turns to:
 hadoop jar /usr/local/rya.mapreduce-4.0.0-incubating-SNAPSHOT-shaded.jar 
org.apache.rya.accumulo.mr.tools.RdfFileInputTool 
-Drdf.tablePrefix=triplestore_ -Dcb.username=root -Dcb.pwd=111111 
-Dcb.instance=accumulo -Dcb.zk=localhost:2181 -Drdf.format=N-Triples 
hdfs://$RDF_DATA
But the errors are:
java.lang.NullPointerException: Accumulo instance name [ac.instance] not set.
    at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204)
    at 
org.apache.rya.accumulo.mr.AbstractAccumuloMRTool.init(AbstractAccumuloMRTool.java:133)
    at 
org.apache.rya.accumulo.mr.tools.RdfFileInputTool.run(RdfFileInputTool.java:63)
    at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
    at 
org.apache.rya.accumulo.mr.tools.RdfFileInputTool.main(RdfFileInputTool.java:55)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
    at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
2. Web Rest Point

The quick start in eht website has told me to use these java codes to load data 
to REST endpoint, but my question is : I have copy these codes to Eclipse, and 
put it as a jar to HDFS, but I can not load the data.
And the codes like the picture, I tried to run the code in eclipse but it went 
wrong, so I export these codes as an jar and put this jar to HDFS, but still 
can't use it.:




3.The accumulo-site.xml likes the picture







4.the accumulo_evn.sh likes the picture





5.My classpath likes the picture




6.environment.properties
instance.name=accumulo  
instance.zk=localhost:2181 
instance.username=root 
instance.password=111111  
rya.tableprefix=triplestore_  
rya.displayqueryplan=true 







Reply via email to