ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yakov Zhdanov <yzhda...@apache.org>
Subject Re: Classpath resource loading - should it work
Date Tue, 30 Jun 2015 17:56:27 GMT
Alex, this does not work. Moreover, I dont think it is possible to support

I see that getResourceAsStream() should work. You can call it inside your
job: getClass().getResourceAsStream(PATH) and it should get resource from
remote node and return stream to you.


2015-06-29 13:46 GMT-07:00 Aleksei Valikov <aleksei.valikov@gmail.com>:

> Hi,
> I'd like to use the "Zero deployment" feature (
> https://apacheignite.readme.io/v1.1/docs/zero-deployment).
> This works perfect for classes, but what I didn't manage to get working is
> a simple classpath resource loading, like:
> getClass().getResource(scriptResourceFileName)
> This gives me a valid URL on the local node but null on remote nodes.
> Before I dig myself neck-deep - is it supposed to work? Compared to the
> distributed classloading, having the IGFS on board this seems to be fairly
> simple.
> I could surely opt to IGFS. It just has a certain appeal to use classpath
> resources.
> Thank you and best wishes,
> Alexey

View raw message