You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by Andrey Gura <ag...@gridgain.com> on 2015/10/08 18:52:55 UTC

Ignite nodes under different JDKs

Igniters,

There are cases when Ignite cluster nodes work on different environments
and JDKs (versions and/or vendors). GridDiscoveryManager class contains
check that all nodes in topology ran under JDKs with the same major Java
version and throws exception if check failed. I want to replace this on
warning message. So I have two questions:

1. Is there any objections about it?
2. What message will be more informative than current one ("Local node's
java major version is different from remote node's one
[locJvmMajVer=<locJvmMajVer>, rmtJvmMajVer=<rmtJvmMajVer>]")?


-- 
Andrey Gura
GridGain Systems, Inc.
www.gridgain.com

Re: Ignite nodes under different JDKs

Posted by Andrey Gura <ag...@gridgain.com>.
Vladimir,

different JDK versions in topology can lead to problems with P2P deploy for
example. Nodes under different vendors' JDK should work correctly in case
of properly defined SUID.

On Thu, Oct 8, 2015 at 9:31 PM, Vladimir Ozerov <vo...@gridgain.com>
wrote:

> Why are we sticked to version? If both JVM has the same major version, but
> different vendors, it might be even more important concern, than different
> major versions of the same vendor.
>
> On Thu, Oct 8, 2015 at 8:48 PM, Dmitriy Setrakyan <ds...@apache.org>
> wrote:
>
> > On Thu, Oct 8, 2015 at 9:52 AM, Andrey Gura <ag...@gridgain.com> wrote:
> >
> > > Igniters,
> > >
> > > There are cases when Ignite cluster nodes work on different
> environments
> > > and JDKs (versions and/or vendors). GridDiscoveryManager class contains
> > > check that all nodes in topology ran under JDKs with the same major
> Java
> > > version and throws exception if check failed. I want to replace this on
> > > warning message. So I have two questions:
> > >
> > > 1. Is there any objections about it?
> > >
> >
> > I agree. Ignite should allow nodes with different JDKs join the cluster.
> >
> >
> > > 2. What message will be more informative than current one ("Local
> node's
> > > java major version is different from remote node's one
> > > [locJvmMajVer=<locJvmMajVer>, rmtJvmMajVer=<rmtJvmMajVer>]")?
> > >
> >
> > How about:
> > ---
> > Local java version is different from remote [loc=<locJvmMajVer>,
> > rmt=<rmtJvmMajVer>]"
> > ---
> >
> >
> > >
> > > --
> > > Andrey Gura
> > > GridGain Systems, Inc.
> > > www.gridgain.com
> > >
> >
>



-- 
Andrey Gura
GridGain Systems, Inc.
www.gridgain.com

Re: Ignite nodes under different JDKs

Posted by Dmitriy Setrakyan <ds...@apache.org>.
On Thu, Oct 8, 2015 at 11:31 AM, Vladimir Ozerov <vo...@gridgain.com>
wrote:

> Why are we sticked to version? If both JVM has the same major version, but
> different vendors, it might be even more important concern, than different
> major versions of the same vendor.
>

I don't think even this should matter. Java has a well defined Class
format, so different vendors should not have any affect on this.

However, I do agree, that we should test not only different versions, but
different JDK vendors as well, e.g. Oracle JDK, Open JDK, and IBM JDK.


>
> On Thu, Oct 8, 2015 at 8:48 PM, Dmitriy Setrakyan <ds...@apache.org>
> wrote:
>
> > On Thu, Oct 8, 2015 at 9:52 AM, Andrey Gura <ag...@gridgain.com> wrote:
> >
> > > Igniters,
> > >
> > > There are cases when Ignite cluster nodes work on different
> environments
> > > and JDKs (versions and/or vendors). GridDiscoveryManager class contains
> > > check that all nodes in topology ran under JDKs with the same major
> Java
> > > version and throws exception if check failed. I want to replace this on
> > > warning message. So I have two questions:
> > >
> > > 1. Is there any objections about it?
> > >
> >
> > I agree. Ignite should allow nodes with different JDKs join the cluster.
> >
> >
> > > 2. What message will be more informative than current one ("Local
> node's
> > > java major version is different from remote node's one
> > > [locJvmMajVer=<locJvmMajVer>, rmtJvmMajVer=<rmtJvmMajVer>]")?
> > >
> >
> > How about:
> > ---
> > Local java version is different from remote [loc=<locJvmMajVer>,
> > rmt=<rmtJvmMajVer>]"
> > ---
> >
> >
> > >
> > > --
> > > Andrey Gura
> > > GridGain Systems, Inc.
> > > www.gridgain.com
> > >
> >
>

Re: Ignite nodes under different JDKs

Posted by Dmitriy Setrakyan <ds...@apache.org>.
On Thu, Oct 8, 2015 at 1:56 PM, Konstantin Boudnik <co...@apache.org> wrote:

> On Thu, Oct 08, 2015 at 12:46PM, Dmitriy Setrakyan wrote:
> > On Thu, Oct 8, 2015 at 12:28 PM, Konstantin Boudnik <co...@apache.org>
> wrote:
> >
> > > This conversation reminds me of the situation with Spark and akka that
> I
> > > just
> > > ran into. Or rather with Akka and the way they designed the remote
> > > execution.
> > > The situation is actually _completely_ ridiculous. I stood up a small
> Spark
> > > cluster and then tried to submit a job into it, which had some
> > > Spark dependencies. The way the job is written it pulls the
> dependencies
> > > automatically from the maven repo. To my horror, the job was crashing
> > > because
> > > local and remote serialIDs of the classes differed, although the
> dependency
> > > versions were the same. The root cause is this: the versions are
> compiled
> > > with
> > > the same version of JDK (like JDK7) or something, but one is Open and
> the
> > > other one is Oracle's.
> > >
> > > I think this is a very shaky way of designing the software for
> distributed
> > > environments and it badly complicates the operation and integration of
> the
> > > clusters. It clearly shows the lack practical experience beyond the
> > > academic
> > > ivory towers on the account of Akka guys. RPC, while not without its
> own
> > > issues, allows to get around such problems with ease.
> > >
> > > I guess what I am saying: aren't we trying to find an even more complex
> > > solution for already pretty tough problem?
> > >
> >
> > I think that the problem you are describing is not the same. What we are
> > solving here is, for example, ability to run Ignite with IBM WebSphere on
> > the client side and OpenJDK on the server side.
> >
> > This issue has little to do with dependencies, and mostly with removing a
> > legacy restriction from the project about matching JDK versions.
>
> The problem is the same: the use of dynamic dependencies just illustrates
> it
> clearly. Different JDKs are producing different serial.vers. of the classes
> and it will come and haunt you one way or another. The manifestation of the
> problem could be different, but you can count that the problem will be
> there
> for you on any heterogeneous cluster.
>

In the upcoming 1.5 release, this will only apply to compute grid and not
to data grid. I think we should print out a warning, but not disallow the
cluster startup, like we do now.


> Cos
>

Re: Ignite nodes under different JDKs

Posted by Konstantin Boudnik <co...@apache.org>.
On Thu, Oct 08, 2015 at 12:46PM, Dmitriy Setrakyan wrote:
> On Thu, Oct 8, 2015 at 12:28 PM, Konstantin Boudnik <co...@apache.org> wrote:
> 
> > This conversation reminds me of the situation with Spark and akka that I
> > just
> > ran into. Or rather with Akka and the way they designed the remote
> > execution.
> > The situation is actually _completely_ ridiculous. I stood up a small Spark
> > cluster and then tried to submit a job into it, which had some
> > Spark dependencies. The way the job is written it pulls the dependencies
> > automatically from the maven repo. To my horror, the job was crashing
> > because
> > local and remote serialIDs of the classes differed, although the dependency
> > versions were the same. The root cause is this: the versions are compiled
> > with
> > the same version of JDK (like JDK7) or something, but one is Open and the
> > other one is Oracle's.
> >
> > I think this is a very shaky way of designing the software for distributed
> > environments and it badly complicates the operation and integration of the
> > clusters. It clearly shows the lack practical experience beyond the
> > academic
> > ivory towers on the account of Akka guys. RPC, while not without its own
> > issues, allows to get around such problems with ease.
> >
> > I guess what I am saying: aren't we trying to find an even more complex
> > solution for already pretty tough problem?
> >
> 
> I think that the problem you are describing is not the same. What we are
> solving here is, for example, ability to run Ignite with IBM WebSphere on
> the client side and OpenJDK on the server side.
> 
> This issue has little to do with dependencies, and mostly with removing a
> legacy restriction from the project about matching JDK versions.

The problem is the same: the use of dynamic dependencies just illustrates it
clearly. Different JDKs are producing different serial.vers. of the classes
and it will come and haunt you one way or another. The manifestation of the
problem could be different, but you can count that the problem will be there
for you on any heterogeneous cluster.

Cos

Re: Ignite nodes under different JDKs

Posted by Dmitriy Setrakyan <ds...@apache.org>.
On Thu, Oct 8, 2015 at 12:28 PM, Konstantin Boudnik <co...@apache.org> wrote:

> This conversation reminds me of the situation with Spark and akka that I
> just
> ran into. Or rather with Akka and the way they designed the remote
> execution.
> The situation is actually _completely_ ridiculous. I stood up a small Spark
> cluster and then tried to submit a job into it, which had some
> Spark dependencies. The way the job is written it pulls the dependencies
> automatically from the maven repo. To my horror, the job was crashing
> because
> local and remote serialIDs of the classes differed, although the dependency
> versions were the same. The root cause is this: the versions are compiled
> with
> the same version of JDK (like JDK7) or something, but one is Open and the
> other one is Oracle's.
>
> I think this is a very shaky way of designing the software for distributed
> environments and it badly complicates the operation and integration of the
> clusters. It clearly shows the lack practical experience beyond the
> academic
> ivory towers on the account of Akka guys. RPC, while not without its own
> issues, allows to get around such problems with ease.
>
> I guess what I am saying: aren't we trying to find an even more complex
> solution for already pretty tough problem?
>

I think that the problem you are describing is not the same. What we are
solving here is, for example, ability to run Ignite with IBM WebSphere on
the client side and OpenJDK on the server side.

This issue has little to do with dependencies, and mostly with removing a
legacy restriction from the project about matching JDK versions.


>
> Cos
>
> On Thu, Oct 08, 2015 at 09:31PM, Vladimir Ozerov wrote:
> > Why are we sticked to version? If both JVM has the same major version,
> but
> > different vendors, it might be even more important concern, than
> different
> > major versions of the same vendor.
> >
> > On Thu, Oct 8, 2015 at 8:48 PM, Dmitriy Setrakyan <dsetrakyan@apache.org
> >
> > wrote:
> >
> > > On Thu, Oct 8, 2015 at 9:52 AM, Andrey Gura <ag...@gridgain.com>
> wrote:
> > >
> > > > Igniters,
> > > >
> > > > There are cases when Ignite cluster nodes work on different
> environments
> > > > and JDKs (versions and/or vendors). GridDiscoveryManager class
> contains
> > > > check that all nodes in topology ran under JDKs with the same major
> Java
> > > > version and throws exception if check failed. I want to replace this
> on
> > > > warning message. So I have two questions:
> > > >
> > > > 1. Is there any objections about it?
> > > >
> > >
> > > I agree. Ignite should allow nodes with different JDKs join the
> cluster.
> > >
> > >
> > > > 2. What message will be more informative than current one ("Local
> node's
> > > > java major version is different from remote node's one
> > > > [locJvmMajVer=<locJvmMajVer>, rmtJvmMajVer=<rmtJvmMajVer>]")?
> > > >
> > >
> > > How about:
> > > ---
> > > Local java version is different from remote [loc=<locJvmMajVer>,
> > > rmt=<rmtJvmMajVer>]"
> > > ---
> > >
> > >
> > > >
> > > > --
> > > > Andrey Gura
> > > > GridGain Systems, Inc.
> > > > www.gridgain.com
> > > >
> > >
>

Re: Ignite nodes under different JDKs

Posted by Konstantin Boudnik <co...@apache.org>.
This conversation reminds me of the situation with Spark and akka that I just
ran into. Or rather with Akka and the way they designed the remote execution.
The situation is actually _completely_ ridiculous. I stood up a small Spark
cluster and then tried to submit a job into it, which had some
Spark dependencies. The way the job is written it pulls the dependencies
automatically from the maven repo. To my horror, the job was crashing because
local and remote serialIDs of the classes differed, although the dependency
versions were the same. The root cause is this: the versions are compiled with
the same version of JDK (like JDK7) or something, but one is Open and the
other one is Oracle's.

I think this is a very shaky way of designing the software for distributed
environments and it badly complicates the operation and integration of the
clusters. It clearly shows the lack practical experience beyond the academic
ivory towers on the account of Akka guys. RPC, while not without its own
issues, allows to get around such problems with ease.

I guess what I am saying: aren't we trying to find an even more complex
solution for already pretty tough problem?

Cos

On Thu, Oct 08, 2015 at 09:31PM, Vladimir Ozerov wrote:
> Why are we sticked to version? If both JVM has the same major version, but
> different vendors, it might be even more important concern, than different
> major versions of the same vendor.
> 
> On Thu, Oct 8, 2015 at 8:48 PM, Dmitriy Setrakyan <ds...@apache.org>
> wrote:
> 
> > On Thu, Oct 8, 2015 at 9:52 AM, Andrey Gura <ag...@gridgain.com> wrote:
> >
> > > Igniters,
> > >
> > > There are cases when Ignite cluster nodes work on different environments
> > > and JDKs (versions and/or vendors). GridDiscoveryManager class contains
> > > check that all nodes in topology ran under JDKs with the same major Java
> > > version and throws exception if check failed. I want to replace this on
> > > warning message. So I have two questions:
> > >
> > > 1. Is there any objections about it?
> > >
> >
> > I agree. Ignite should allow nodes with different JDKs join the cluster.
> >
> >
> > > 2. What message will be more informative than current one ("Local node's
> > > java major version is different from remote node's one
> > > [locJvmMajVer=<locJvmMajVer>, rmtJvmMajVer=<rmtJvmMajVer>]")?
> > >
> >
> > How about:
> > ---
> > Local java version is different from remote [loc=<locJvmMajVer>,
> > rmt=<rmtJvmMajVer>]"
> > ---
> >
> >
> > >
> > > --
> > > Andrey Gura
> > > GridGain Systems, Inc.
> > > www.gridgain.com
> > >
> >

Re: Ignite nodes under different JDKs

Posted by Vladimir Ozerov <vo...@gridgain.com>.
Why are we sticked to version? If both JVM has the same major version, but
different vendors, it might be even more important concern, than different
major versions of the same vendor.

On Thu, Oct 8, 2015 at 8:48 PM, Dmitriy Setrakyan <ds...@apache.org>
wrote:

> On Thu, Oct 8, 2015 at 9:52 AM, Andrey Gura <ag...@gridgain.com> wrote:
>
> > Igniters,
> >
> > There are cases when Ignite cluster nodes work on different environments
> > and JDKs (versions and/or vendors). GridDiscoveryManager class contains
> > check that all nodes in topology ran under JDKs with the same major Java
> > version and throws exception if check failed. I want to replace this on
> > warning message. So I have two questions:
> >
> > 1. Is there any objections about it?
> >
>
> I agree. Ignite should allow nodes with different JDKs join the cluster.
>
>
> > 2. What message will be more informative than current one ("Local node's
> > java major version is different from remote node's one
> > [locJvmMajVer=<locJvmMajVer>, rmtJvmMajVer=<rmtJvmMajVer>]")?
> >
>
> How about:
> ---
> Local java version is different from remote [loc=<locJvmMajVer>,
> rmt=<rmtJvmMajVer>]"
> ---
>
>
> >
> > --
> > Andrey Gura
> > GridGain Systems, Inc.
> > www.gridgain.com
> >
>

Re: Ignite nodes under different JDKs

Posted by Dmitriy Setrakyan <ds...@apache.org>.
On Thu, Oct 8, 2015 at 9:52 AM, Andrey Gura <ag...@gridgain.com> wrote:

> Igniters,
>
> There are cases when Ignite cluster nodes work on different environments
> and JDKs (versions and/or vendors). GridDiscoveryManager class contains
> check that all nodes in topology ran under JDKs with the same major Java
> version and throws exception if check failed. I want to replace this on
> warning message. So I have two questions:
>
> 1. Is there any objections about it?
>

I agree. Ignite should allow nodes with different JDKs join the cluster.


> 2. What message will be more informative than current one ("Local node's
> java major version is different from remote node's one
> [locJvmMajVer=<locJvmMajVer>, rmtJvmMajVer=<rmtJvmMajVer>]")?
>

How about:
---
Local java version is different from remote [loc=<locJvmMajVer>,
rmt=<rmtJvmMajVer>]"
---


>
> --
> Andrey Gura
> GridGain Systems, Inc.
> www.gridgain.com
>