Ricardo J. Méndez wrote:
Doğacan Güney wrote:
Hi,
On 3/2/07, "Ricardo J. Méndez" <[EMAIL PROTECTED]> wrote:
Hi Gal,
Thanks for the reply.
What has me wondering is that several other plugins _are_ being loaded
when I define it on hadoop-site.xml, and actually that defining
plugin.folders on that file is the only way I've found so far of getting
plugins loaded at all when testing from Eclipse.
You can load the plugins in eclipse with nutch-site.xml too.
Here is how I do it:
1) Add $NUTCH_HOME/conf directory to eclipse with Link Source option.
2) Run ant to compile nutch
3) Add this to your nutch-site.xml:
<property>
<name>plugin.folders</name>
<value>plugins,<absolute_path_to_nutch_plugins></value>
</property>
<absolute_path_to_nutch_plugins> is generally $NUTCH_HOME/build/plugins.
Note that there is a small bug in the code that reads this option. If
an absolute directory is added to this option like this but it
actually doesn't exist Nutch fails with an NPE. I keep forgetting that
I set this option when I am sending a job and since I don't have these
files on MR machines the job fails. You can try the attached patch to
avoid that.
[snip]
Thanks for both the patch and the explanation, Doğacan, I'll add this to
the wiki. I also noticed that Eclipse was disregarding
conf/nutch-site.xml in favor of src/test/nutch-site.xml, so I've added
the configuration item there as well.
Regards,
This has to do with classpath. In the order and export screen of
eclipse you can move around the item on the classpath and put your
favored conf directory first.
Dennis Kubes
Ricardo J. Méndez
http://ricardo.strangevistas.net/