我试图使用最新版本的Gora (0.5)在Cygwin/Windows 7上运行Nutch (2.2.1),以便将数据持久化到MongoDB数据存储。我将Nutch-Site.XML文件更改为包含了我的Mongo属性:
<property>
<name>storage.data.store.class</name>
<value>org.apache.gora.mongodb.store.MongoStore</value>
<description>Default class for storing data</description>
</property>当我尝试使用Maven从命令行构建“gora”项目时出现了问题,其中2个测试失败- testCountQuery和testWordCount,权限错误如下:
14/12/12 19:09:28 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
14/12/12 19:09:28 ERROR security.UserGroupInformation: PriviledgedActionException as:MyPC cause:java.io.IOException: Failed to set permissions of path: \tmp\hadoop-MyPC\mapred\staging\MyPC555128998\.staging to 0700
21738 [main] INFO org.apache.gora.GoraTestDriver - tearing down test 是否可以在不转移到Ubuntu等情况下解决这个权限错误?
谢谢,
O。
发布于 2014-12-12 20:21:46
要知道,在Nutch2.2.1中,您必须更改nutch/conf/gora.properties中的存储。
关于测试错误,您可以执行mvn package -DskipTests。
https://stackoverflow.com/questions/27450666
复制相似问题