Hi Ahmed, To be able to use the plugin after you have sucessfully compiled it, you it to do one entry in conf/nutch-default.xml file in the property "plugin.includes". After doing this entry only, the plugin will be activated.
hope it helps you Ankur Garg On Thu, Jan 15, 2009 at 10:45 PM, ahammad <ahmed.ham...@gmail.com> wrote: > > I was messing around with this and I got a step further. > > Background information: > I am trying to install the sample plugin from the Nutch Wiki. I downloaded > the Nutch 0.9 release version (not sure if this is what I need to download) > and I added the following files in the nutch-0.9\src\ directory: > > 1) build.xml and plugin.xml in C:\nutch-0.9\src\plugin\recommended > 2) RecommendedIndexer.java, RecommendedParser.java, QueryFilter.java in > > C:\nutch-0.9\src\plugin\recommended\src\java\org\apache\nutch\parse\recommended > > note- all the code came from the Nutch Wiki > > I also changed the build.xml file in src\plugin to include the new plugin: > <ant dir="recommended" target="deploy"/> > > What I tried: > I started off by attempting to compile the plugin by using ant. When I did > this, I get errors about some packages not existing. I also get errors > about > the file QueryFilter being misnamed and saying that it needs to be called > RecommendedQueryFilter. I made that change and renamed it like it was > suggested. > > I ended up going to the root directory of nutch and running ant from there. > I believe this builds the whole program. A folder called "build" was > created > containing a bunch of stuff in there. > > After that was done, I went on to C:\nutch-0.9\src\plugin\recommended and > ran ant again. This time, I did not get errors and everything worked fine. > > The issue: > In the hadoop.log file I do not see any references made to the new plugin > ("Recommended"). It goes on about added plugins/extensions, but there is no > mention of the one I added. > > Did I do everything correctly? What am I missing here? I am completely lost > right now and I really need help with this. > > Thank you and regards. > > > -- > View this message in context: > http://www.nabble.com/Question-about-writing-plug-ins-tp21444458p21482275.html > Sent from the Nutch - User mailing list archive at Nabble.com. > > -- Ankur Garg