【发布时间】:2015-01-13 21:19:39
【问题描述】:
我想编译 Nutch 2.2.1 以与 MongoDB 一起用于数据存储。
我在 ivy.xml 文件中将 gora-core 更改为 0.5:
<dependency org="org.apache.gora" name="gora-core" rev="0.5" conf="*->default"/>
还在 ivy/ivy.xml 文件中添加了对 mongodb 的依赖:
<dependency org="org.apache.gora" name="gora-mongodb" rev="0.5" conf="*->default" />
在 conf/gora.properties 中添加了 mongodb 配置:
############################
# MongoDBStore properties #
############################
gora.datastore.default=org.apache.gora.mongodb.store.MongoStore
gora.mongodb.override_hadoop_configuration=false
gora.mongodb.mapping.file=/gora-mongodb-mapping.xml
gora.mongodb.servers=localhost:27017
gora.mongodb.db=nutch
将 gora-mongodb-mapping.xml 从 Nutch-2.3-SNAPSHOT 添加到 conf 目录。
当我尝试编译时出现错误:
Could not load definitions from resource org/sonar/ant/antlib.xml. It could not be found.
之后我得到许多编译器错误。
当我尝试使用 MySQL 配置和编译 Nutch 时,每次编译都可以完美运行。
我正在尝试在 Debian 上编译。
【问题讨论】: