On 2010-12-02 17:10, Claudio Martella wrote:
> Hi list,
> 
> i reported back about a possible workaround. I tried it today on our cdh
> cluster but the problem persists.
> I've checked the jobcachedir and the plugins/ directory is actually
> unpacked correctly.
> How is the content of plugins/ added to classpath? if the content of
> plugins is comma-separated, then it will hit just the directory names
> and not the jars.
> 
> Any comment about this issue?

Plugins are managed by PluginRepository, which in turn uses
PluginClassLoader (an extension of URLClassLoader) to load plugin
descriptors and jars (and other resources) from pre-defined folders. Due
to the known limitations of URLClassLoader (inability to load jars from
jars) this classloader expects that plugin resources and jars will be
loaded from plain directories (using java.io.File). That's why the
plugins are being unpacked in the "local" deployment mode, and why they
need to be unpacked also during map-reduce task setup, into a folder
defined in plugin.folders.


-- 
Best regards,
Andrzej Bialecki     <><
 ___. ___ ___ ___ _ _   __________________________________
[__ || __|__/|__||\/|  Information Retrieval, Semantic Web
___|||__||  \|  ||  |  Embedded Unix, System Integration
http://www.sigram.com  Contact: info at sigram dot com

Reply via email to