Mandatory requirement to run ExampleNodeStartup only for a several examples

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Mandatory requirement to run ExampleNodeStartup only for a several examples

Sergey Kozlov
Hi

I'm reviewing now the examples project due the introduction of default
binary mode for Apache Ignite and found that examples below required
running ExampleNodeStartup and do not allow to run remote nodes from
shell (bin/ignite.sh
examples/config/example-ignite.xml)

Could someone review them and confirm that it is expected behaviour or not?

Java
org.apache.ignite.examples.binary.datagrid.CacheClientBinaryQueryExample
org.apache.ignite.examples.datagrid.starschema.CacheStarSchemaExample
org.apache.ignite.examples.datagrid.store.auto.CacheAutoStoreExample
org.apache.ignite.examples.datagrid.store.dummy.CacheDummyStoreExample
org.apache.ignite.examples.datagrid.store.jdbc.CacheJdbcStoreExample
org.apache.ignite.examples.datagrid.store.spring.CacheSpringStoreExample
org.apache.ignite.examples.datagrid.CacheQueryExample
org.apache.ignite.examples.servicegrid.ServicesExample
org.apache.ignite.examples.streaming.StreamTransformerExample
org.apache.ignite.examples.streaming.StreamVisitorExample
org.apache.ignite.examples.streaming.org.apache.ignite.examples.streaming.wordcount.QueryWords
org.apache.ignite.examples.streaming.org.apache.ignite.examples.streaming.wordcount.StreamWords

Scala
org.apache.ignite.scalar.examples.ScalarCacheQueryExample
org.apache.ignite.scalar.examples.ScalarSnowflakeSchemaExample

Java8
org.apache.ignite.examples.java8.streaming.StreamTransformerExample
org.apache.ignite.examples.java8.streaming.StreamVisitorExample

LGPL:
org.apache.ignite.examples.datagrid.store.hibernate.CacheHibernateStoreExample


--
Sergey Kozlov
Reply | Threaded
Open this post in threaded view
|

Re: Mandatory requirement to run ExampleNodeStartup only for a several examples

Alexey Kuznetsov-2
I can confirm examples developed/changed by me.

>> org.apache.ignite.examples.datagrid.store.auto.CacheAutoStoreExample
DO NOT ALLOW to start remote nodes via ignite.sh out of the box, but if
user put example cache store factory class into \libs folder example will
run.

>>
org.apache.ignite.examples.binary.datagrid.store.auto.CacheBinaryAutoStoreExample
This example ALLOW to start remote nodes via ignite.sh.

--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com
Reply | Threaded
Open this post in threaded view
|

Re: Mandatory requirement to run ExampleNodeStartup only for a several examples

dsetrakyan
Why are we not allowing to deploy factory classes over P2P deployment?

On Fri, Dec 11, 2015 at 7:29 AM, Alexey Kuznetsov <[hidden email]>
wrote:

> I can confirm examples developed/changed by me.
>
> >> org.apache.ignite.examples.datagrid.store.auto.CacheAutoStoreExample
> DO NOT ALLOW to start remote nodes via ignite.sh out of the box, but if
> user put example cache store factory class into \libs folder example will
> run.
>
> >>
>
> org.apache.ignite.examples.binary.datagrid.store.auto.CacheBinaryAutoStoreExample
> This example ALLOW to start remote nodes via ignite.sh.
>
> --
> Alexey Kuznetsov
> GridGain Systems
> www.gridgain.com
>
Reply | Threaded
Open this post in threaded view
|

Re: Mandatory requirement to run ExampleNodeStartup only for a several examples

Alexey Kuznetsov-2
Dmitriy,

As far as I know P2P works mainly for Compute
See: https://apacheignite.readme.io/v1.5/docs/zero-deployment

On Sat, Dec 12, 2015 at 4:47 AM, Dmitriy Setrakyan <[hidden email]>
wrote:

> Why are we not allowing to deploy factory classes over P2P deployment?
>
> On Fri, Dec 11, 2015 at 7:29 AM, Alexey Kuznetsov <[hidden email]
> >
> wrote:
>
> > I can confirm examples developed/changed by me.
> >
> > >> org.apache.ignite.examples.datagrid.store.auto.CacheAutoStoreExample
> > DO NOT ALLOW to start remote nodes via ignite.sh out of the box, but if
> > user put example cache store factory class into \libs folder example will
> > run.
> >
> > >>
> >
> >
> org.apache.ignite.examples.binary.datagrid.store.auto.CacheBinaryAutoStoreExample
> > This example ALLOW to start remote nodes via ignite.sh.
> >
> > --
> > Alexey Kuznetsov
> > GridGain Systems
> > www.gridgain.com
> >
>



--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com
Reply | Threaded
Open this post in threaded view
|

Re: Mandatory requirement to run ExampleNodeStartup only for a several examples

yzhdanov
Guys,

There is currently a limitation - we cannot effectively deploy class
definitions over discovery protocol. This is possible to fix, but needs
some more investigation.

As far as current situation with examples, I think that the following
examples should work with remote nodes started with server classpath
(yes/no). Sergey, can you please check if my vision is correct and let us
know:

Java
Y: org.apache.ignite.examples.binary.datagrid.CacheClientBinaryQueryExample
Y: org.apache.ignite.examples.datagrid.starschema.CacheStarSchemaExample
N: org.apache.ignite.examples.datagrid.store.auto.CacheAutoStoreExample
N: org.apache.ignite.examples.datagrid.store.dummy.CacheDummyStoreExample
N: org.apache.ignite.examples.datagrid.store.jdbc.CacheJdbcStoreExample
N: org.apache.ignite.examples.datagrid.store.spring.CacheSpringStoreExample
Y: org.apache.ignite.examples.datagrid.CacheQueryExample
N: org.apache.ignite.examples.servicegrid.ServicesExample - service cannot
be peer deployed now
Y: org.apache.ignite.examples.streaming.StreamTransformerExample
Y: org.apache.ignite.examples.streaming.StreamVisitorExample
Y: org.apache.ignite.examples.streaming.org.apache.ignite.
examples.streaming.wordcount.QueryWords
Y: org.apache.ignite.examples.streaming.org.apache.ignite.
examples.streaming.wordcount.StreamWords

Scala
Y: org.apache.ignite.scalar.examples.ScalarCacheQueryExample
Y: org.apache.ignite.scalar.examples.ScalarSnowflakeSchemaExample

Java8
Y: org.apache.ignite.examples.java8.streaming.StreamTransformerExample
Y: org.apache.ignite.examples.java8.streaming.StreamVisitorExample

LGPL:
N: org.apache.ignite.examples.datagrid.store.hibernate.
CacheHibernateStoreExample
--Yakov

2015-12-12 5:23 GMT+03:00 Alexey Kuznetsov <[hidden email]>:

> Dmitriy,
>
> As far as I know P2P works mainly for Compute
> See: https://apacheignite.readme.io/v1.5/docs/zero-deployment
>
> On Sat, Dec 12, 2015 at 4:47 AM, Dmitriy Setrakyan <[hidden email]>
> wrote:
>
> > Why are we not allowing to deploy factory classes over P2P deployment?
> >
> > On Fri, Dec 11, 2015 at 7:29 AM, Alexey Kuznetsov <
> [hidden email]
> > >
> > wrote:
> >
> > > I can confirm examples developed/changed by me.
> > >
> > > >> org.apache.ignite.examples.datagrid.store.auto.CacheAutoStoreExample
> > > DO NOT ALLOW to start remote nodes via ignite.sh out of the box, but if
> > > user put example cache store factory class into \libs folder example
> will
> > > run.
> > >
> > > >>
> > >
> > >
> >
> org.apache.ignite.examples.binary.datagrid.store.auto.CacheBinaryAutoStoreExample
> > > This example ALLOW to start remote nodes via ignite.sh.
> > >
> > > --
> > > Alexey Kuznetsov
> > > GridGain Systems
> > > www.gridgain.com
> > >
> >
>
>
>
> --
> Alexey Kuznetsov
> GridGain Systems
> www.gridgain.com
>
Reply | Threaded
Open this post in threaded view
|

Re: Mandatory requirement to run ExampleNodeStartup only for a several examples

Ilya Suntsov
Guys,
I've re-checked these examples. Most of the benchmarks corresponding to the
description that was provided by Yakov above but the following examples
don't work with remote nodes started with server classpath :

   - org.apache.ignite.examples.datagrid.CacheQueryExample
   - org.apache.ignite.examples.streaming.StreamVisitorExample
   - org.apache.ignite.examples.java8.streaming.StreamTransformerExample
   - org.apache.ignite.examples.java8.streaming.StreamVisitorExample


2015-12-14 17:53 GMT+03:00 Yakov Zhdanov <[hidden email]>:

> Guys,
>
> There is currently a limitation - we cannot effectively deploy class
> definitions over discovery protocol. This is possible to fix, but needs
> some more investigation.
>
> As far as current situation with examples, I think that the following
> examples should work with remote nodes started with server classpath
> (yes/no). Sergey, can you please check if my vision is correct and let us
> know:
>
> Java
> Y: org.apache.ignite.examples.binary.datagrid.CacheClientBinaryQueryExample
> Y: org.apache.ignite.examples.datagrid.starschema.CacheStarSchemaExample
> N: org.apache.ignite.examples.datagrid.store.auto.CacheAutoStoreExample
> N: org.apache.ignite.examples.datagrid.store.dummy.CacheDummyStoreExample
> N: org.apache.ignite.examples.datagrid.store.jdbc.CacheJdbcStoreExample
> N: org.apache.ignite.examples.datagrid.store.spring.CacheSpringStoreExample
> Y: org.apache.ignite.examples.datagrid.CacheQueryExample
> N: org.apache.ignite.examples.servicegrid.ServicesExample - service cannot
> be peer deployed now
> Y: org.apache.ignite.examples.streaming.StreamTransformerExample
> Y: org.apache.ignite.examples.streaming.StreamVisitorExample
> Y: org.apache.ignite.examples.streaming.org.apache.ignite.
> examples.streaming.wordcount.QueryWords
> Y: org.apache.ignite.examples.streaming.org.apache.ignite.
> examples.streaming.wordcount.StreamWords
>
> Scala
> Y: org.apache.ignite.scalar.examples.ScalarCacheQueryExample
> Y: org.apache.ignite.scalar.examples.ScalarSnowflakeSchemaExample
>
> Java8
> Y: org.apache.ignite.examples.java8.streaming.StreamTransformerExample
> Y: org.apache.ignite.examples.java8.streaming.StreamVisitorExample
>
> LGPL:
> N: org.apache.ignite.examples.datagrid.store.hibernate.
> CacheHibernateStoreExample
> --Yakov
>
> 2015-12-12 5:23 GMT+03:00 Alexey Kuznetsov <[hidden email]>:
>
> > Dmitriy,
> >
> > As far as I know P2P works mainly for Compute
> > See: https://apacheignite.readme.io/v1.5/docs/zero-deployment
> >
> > On Sat, Dec 12, 2015 at 4:47 AM, Dmitriy Setrakyan <
> [hidden email]>
> > wrote:
> >
> > > Why are we not allowing to deploy factory classes over P2P deployment?
> > >
> > > On Fri, Dec 11, 2015 at 7:29 AM, Alexey Kuznetsov <
> > [hidden email]
> > > >
> > > wrote:
> > >
> > > > I can confirm examples developed/changed by me.
> > > >
> > > > >>
> org.apache.ignite.examples.datagrid.store.auto.CacheAutoStoreExample
> > > > DO NOT ALLOW to start remote nodes via ignite.sh out of the box, but
> if
> > > > user put example cache store factory class into \libs folder example
> > will
> > > > run.
> > > >
> > > > >>
> > > >
> > > >
> > >
> >
> org.apache.ignite.examples.binary.datagrid.store.auto.CacheBinaryAutoStoreExample
> > > > This example ALLOW to start remote nodes via ignite.sh.
> > > >
> > > > --
> > > > Alexey Kuznetsov
> > > > GridGain Systems
> > > > www.gridgain.com
> > > >
> > >
> >
> >
> >
> > --
> > Alexey Kuznetsov
> > GridGain Systems
> > www.gridgain.com
> >
>



--
Ilya Suntsov