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]
--
Doğacan Güney
Index: src/java/org/apache/nutch/plugin/PluginManifestParser.java
===================================================================
--- src/java/org/apache/nutch/plugin/PluginManifestParser.java (revision 1326)
+++ src/java/org/apache/nutch/plugin/PluginManifestParser.java (working copy)
@@ -133,6 +133,8 @@
} catch (UnsupportedEncodingException e) {
}
directory = new File(path);
+ } else if (!directory.exists() || !directory.isDirectory()) {
+ return null;
}
return directory;
}
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nutch-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-general