您好我正在關注this tutorial試圖在Eclipse中運行Nutch並逐步運行Nutch。在Eclipse中運行Nutch - 缺少生成文件夾
我完成了這一步(Nutch的1.X)沒有問題:
svn co https://svn.apache.org/repos/asf/nutch/trunk
cd trunk
由於我工作的1.X
,所以我跳過第5步。但是,它提到:
Add 「http.agent.name」 and 「http.robots.agents」 with appropiate values in 「conf/nutch-site.xml」. See conf/nutch-default.xml for the description of these properties. Also, add 「plugin.folders」 and set it to {PATH_TO_NUTCH_CHECKOUT}/build/plugins. eg. If Nutch is present at "/home/tejas/Desktop/2.x", set the property to:
<property>
<name>plugin.folders</name>
<value>/home/tejas/Desktop/2.x/build/plugins</value>
</property>
因此,這裏是我的問題:
(1)。 trunk/conf
文件夾中沒有nutch-site.xml文件作爲默認文件夾,但是,有一個nutch-site.xml.template文件,我將其更名爲nutch-site.xml以供使用。
(2)。 {PATH_TO_NUTCH_CHECKOUT}/build/plugins
,我真的不知道這個build
文件夾在哪裏。 這是我做了什麼:
trunk$ find . | grep build
./.svn/prop-base/build.xml.svn-base
./.svn/text-base/build.xml.svn-base
./build.xml
./src/plugin/.svn/prop-base/build-plugin.xml.svn-base
./src/plugin/.svn/prop-base/build.xml.svn-base
...
顯然不存在所謂的「建設」的文件夾,無論是「插件」。
然後,我應該把./src/plugin
作爲./build/plugins
文件夾,然後繼續?我沒有從源代碼構建這麼多的經驗,所以任何建議表示讚賞!