Ok - solved, mostly.
I deleted NUTCH/plugins and made a symlink:
cd NUTCH
ln -s build/plugins plugins
From reading the ant files I saw that this is where the plugins get
deployed. It is still a mystery to my why/how Nutch is told to look in
NUTCH/plugins at runtime for the plugin libraries, or how they are moved
there as part of the build process for the Nutch download that we all
start with. But that doesn't matter so much as the fact that I can now
poke around in the code, and build them (by running ant in src/plugin).
Khang, I'm not sure why you'd need to run ant in your plugin folder
(src/plugin/yourplugin)? At least the core plugins' build files are
included in src/plugin/build.xml.
Thanks for the help!
On 11/10/2010 10:23 AM, Khang Ich wrote:
Hi,
please make sure you did the followings:
- properly config two files: plugin.xml, build.xml properly in
src/plugin/yourplugin
- run ant in your custom plugin folder: src/plugin/yourplugin
- config src/plugin/build.xml accordingly
- run ant in src/plugin
- run ant in apache-nutch-1.2 folder
- check if yourplugin.jar is in build folder or not
- run crawl command, check hadoop.log if the statement appears or not
I don't have any deployed jar in plugin folder. They normally are deployed
in the build folder instead.
-- Khang
On Wed, Nov 10, 2010 at 4:06 AM, Robert Douglass<[email protected]> wrote:
Hi Khang,
That's exactly what I did, and why I'm asking how to deploy the plugins. I
put LOG statements in the existing core plugin that I'm investigating, and
even after running ant, the statements weren't showing up in the logs. I
then determined that the ant tasks don't move jars or xml files into
NUTCH/plugins, at which point I wrote my first mail to this list asking how
one is supposed to build and deploy the core plugins. If other people can
run ant in the plugins directory and their jars are deployed to
NUTCH/plugins, maybe it's a problem with my environment. Are others able to
do this, or do you do something else?
On Nov 10, 2010 9:53 AM, "Khang Ich"<[email protected]> wrote:
I don't see any problem with that.
If you'd want to see if Nutch already detected and running your plugin, try
to put some System.out or LOG.info in your plugin's classes and check the
logs in nutch/logs/hadoop.log (Nutch 1.2).
-- Khang
On Wed, Nov 10, 2010 at 3:33 AM, Robert Douglass<[email protected]>
wrote:
Thanks Alexander. Ac...