简体   繁体   English

在Eclipse中运行Nutch - 缺少构建文件夹

[英]Running Nutch in Eclipse - Missing Build Folder

Hi I was following this tutorial trying to run Nutch in Eclipse and run Nutch step by step. 嗨,我正在按照本教程尝试在Eclipse中运行Nutch并逐步运行Nutch。

I finished this step (Nutch 1.X) without problem: 我完成了这一步(Nutch 1.X)没有问题:

 svn co https://svn.apache.org/repos/asf/nutch/trunk
 cd trunk

Since I was working on 1.X , so I skipped to step#5. 由于我在1.X工作,所以我跳到了第5步。 However, it mentioned: 但是,它提到:

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>

So here is my question: 所以这是我的问题:

(1). (1)。 There is no nutch-site.xml file in the trunk/conf folder as default, however, there is a nutch-site.xml.template file which I renamed to nutch-site.xml to use. 默认情况下, trunk/conf文件夹中没有nutch-site.xml文件,但是,有一个nutch-site.xml.template文件,我将其重命名为nutch-site.xml以供使用。

(2). (2)。 {PATH_TO_NUTCH_CHECKOUT}/build/plugins , I really don't know where this build folder is located. {PATH_TO_NUTCH_CHECKOUT}/build/plugins ,我真的不知道这个build文件夹的位置。 This is what I have done: 这就是我所做的:

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
...

Clearly there is no folder called 'build', neither 'plugins'. 很明显,没有名为'build'的文件夹,也没有'plugins'。

Then should I just take the ./src/plugin as the ./build/plugins folder and move on? 那我应该把./src/plugin作为./build/plugins文件夹然后继续吗? I don't have that much experience building from source so any advise is appreciated! 我没有那么多从源头构建的经验,所以任何建议都表示赞赏!

Here is the answer to your question: 以下是您的问题的答案:

1) Yes. 1)是的。 You are correct you have to rename the nutch-site.xml.template file to nutch-site.xml and make the changes accordingly. 您是正确的,您必须将nutch-site.xml.template文件重命名为nutch-site.xml并相应地进行更改。

2) There is no /build/plugins folder currently present. 2)目前没有/ build / plugins文件夹。 But when you run the "ant eclipse" command you will get the "/build/plugins" in your {PATH_TO_NUTCH_CHECKOUT} Thats why it is written as set the absolute path as {PATH_TO_NUTCH_CHECKOUT}/build/plugins Do not give relative path here as it wont. 但是当你运行“ant eclipse”命令时,你将获得{PATH_TO_NUTCH_CHECKOUT}中“/ build / plugins”这就是为什么它被写为设置绝对路径为{PATH_TO_NUTCH_CHECKOUT} / build / plugins这里不要给出相对路径它不会。

Hope this helps you!!! 希望这对你有所帮助!!!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM