Hi Edoardo,

See my comments below

On 12 September 2014 11:11, Edoardo Causarano <[email protected]>
wrote:

> Hi all,
>
> I'm completely lost, can anyone help me out here?
>
> I have this job.jar which contains all Nutch code, dependencies and
> plugins. I don't understand how I keep getting this error:
>
> 2014-09-12 11:51:04,458 WARN [main]
> org.apache.nutch.plugin.PluginRepository: Plugins: not a file: url. Can't
> load plugins from:
> jar:file:/var/lib/hadoop-yarn/cache/yarn/nm-local-dir/usercache/oracle/appcache/application_1410512500237_0003/filecache/10/job.jar/job.jar!/lib/plugins
>
> Ok, I have to admit that I'm mucking around with the project structure but
> having found NUTCH-609 it seems that the PluginManifestParser does not
> support loading plugins from the job payload itself. Is this the case? If
> so, can anyone tell me where I need to unpack these plugins so that the
> loader will pick them up?
>

why do you build the job jar yourself instead of using the one that our ant
script builds? If you look at it the plugins are in /classes/plugins/
within the jar.


> Side note: is anyone interested in overhauling this loading mechanism? The
> XML manifest could be replaced with an annotation class, although I would
> be happy enough if I could include and load it into the jar.
>

I like the idea of replacing the XML manifest with annotations - or maybe
initially allow both. In an ideal world plugins would be handled as
dependencies and we could just get the jars for them. I am sure there would
be a way of making the XML file a part of the artefact but if we don't have
to and can have a pom and a jar then it would certainly be simpler.

Feel free to open a new JIRA for this and contribute a patch if you can.

Thanks

Julien
-- 

Open Source Solutions for Text Engineering

http://digitalpebble.blogspot.com/
http://www.digitalpebble.com
http://twitter.com/digitalpebble

Reply via email to