我正在尝试在Eclipse中运行MapReduce程序并且反复收到错误说:
Exception in thread "main" java.lang.NoSuchMethodError: org.apache.htrace.core.Tracer$Builder.<init>(Ljava/lang/String;)V
我从这里下载了.jar文件:
http://mvnrepository.com/artifact/org.apache.htrace/htrace-hbase/3.1.0-incubating
http://mvnrepository.com/artifact/org.apache.htrace/htrace-hbase/4.1.0-incubating
并将它们放在我的项目文件夹中,在'lib'目录下,然后使用菜单选项'Build Path&gt;手动将它们添加到Eclipse项目参考库中。配置构建路径'。但错误仍然存在。
知道怎么解决吗?我是Java的新手,所以非常感谢能让我的程序运行的任何见解。谢谢!
答案 0 :(得分:1)
解决:
在Eclipse中,右键单击该项目。选择MATCH (poi:PointOfInterest)-[r]-(allRelatedNodes)
WHERE poi.id = "X007"
AND size((allRelatedNodes)--()) = 1
WITH poi, collect(allRelatedNodes) as allRelatedNodes
DETACH DELETE poi
WITH allRelatedNodes
UNWIND allRelatedNodes as node
DELETE node
。在Properties>Java Build Path>Add External Jars>File System
和usr/lib/hadoop
中添加任意.jars。