找不到或无法加载主类hdfs问题

qcbq4gxm  于 2021-05-27  发布在  Hadoop
关注(0)|答案(0)|浏览(364)

我正在尝试使用apacherya进行一些测试(https://rya.apache.org/).
对于那些熟悉rya和rdf商店的人,我尝试进行批量装载,如下所述:https://github.com/apache/rya/blob/master/extras/rya.manual/src/site/markdown/loaddata.md.
简单地说,我应该将jar文件“mapreduce/target/rya.mapreduce--shaded.jar”复制到hdfs卷中,然后运行以下命令:

hadoop hdfs://volume/rya.mapreduce-<version>-shaded.jar org.apache.rya.accumulo.mr.tools.RdfFileInputTool -Dac.zk=localhost:2181 -Dac.instance=accumulo -Dac.username=root -Dac.pwd=secret -Drdf.tablePrefix=rya_ -Drdf.format=N-Triples hdfs://volume/dir1,hdfs://volume/dir2,hdfs://volume/file1.nt

我将所需的jar和输入文件复制到hdfs中,并使用 bin/hadoop fs -put 命令。我的问题是,当我在官方示例中运行cmd时,会出现以下几行我无法理解或解决的错误。

/project/hadoop/libexec/hadoop-functions.sh: line 2393: HADOOP_HDFS://LOCALHOST:9000/USER/RYA.MAPREDUCE-4.0.0-INCUBATING-SHADED.JAR_USER: invalid variable name
/project/hadoop/libexec/hadoop-functions.sh: line 2358: HADOOP_HDFS://LOCALHOST:9000/USER/RYA.MAPREDUCE-4.0.0-INCUBATING-SHADED.JAR_USER: invalid variable name
/project/hadoop/libexec/hadoop-functions.sh: line 2453: HADOOP_HDFS://LOCALHOST:9000/USER/RYA.MAPREDUCE-4.0.0-INCUBATING-SHADED.JAR_OPTS: invalid variable name
Error: Could not find or load main class hdfs:..localhost:9000.user.rya.mapreduce-4.0.0-incubating-shaded.jar

供参考;所有env变量都已正确设置,hadoop\u home和hadoop\u prefix

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题