2013-12-22 88 views
0

您好我正在關注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文件夾,然後繼續?我沒有從源代碼構建這麼多的經驗,所以任何建議表示讚賞!

回答

2

這裏是你的問題的答案:

1)是的。您是正確的,您必須將nutch-site.xml.template文件重命名爲nutch-site.xml並相應地進行更改。

2)目前沒有/build/plugins文件夾。但是,當你運行「蟻蝕」命令你會得到你的{PATH_TO_NUTCH_CHECKOUT} 多數民衆贊成在「/編譯/插件」爲什麼它被寫爲設定絕對路徑{PATH_TO_NUTCH_CHECKOUT} /建設/插件 不要給這裏的相對路徑,因爲它不會。

希望這可以幫助你!