我正在尝试使用最新版本的 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-mongodb”项目时,出现了我的问题,其中 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。