Hello all,
I have a multi-actor Akka solution that uses Ignite as cache for elastic (via CacheStore). I have noticed the following from my actors when using scalar cache$ constructs to get an already existing cache from an Ignite cluster: Caused by: org.apache.ignite.IgniteIllegalStateException: Grid instance was not properly started or was already stopped: null at org.apache.ignite.internal.IgnitionEx.grid(IgnitionEx.java:1111) ~[ignite-core-1.2.0-incubating.jar:1.2.0-incubating] at org.apache.ignite.internal.IgnitionEx.grid(IgnitionEx.java:1024) ~[ignite-core-1.2.0-incubating.jar:1.2.0-incubating] at org.apache.ignite.Ignition.ignite(Ignition.java:470) ~[ignite-core-1.2.0-incubating.jar:1.2.0-incubating] at org.apache.ignite.scalar.scalar$.cache$(scalar.scala:275) ~[ignite-scalar-1.2.0-incubating.jar:1.2.0-incubating] at com.shoutlet.datascience.socialnetworkpollers.FBPostAggregator.<init>(PostAggregator.scala:71) ~[classes/:na] The grid is running at the time these errors are appearing, in fact, the grid's logs are not registering any "bad behavior". The error goes away if I go to the ign.cache() Java API interface directly instead of using the scalar construct. Thanks! Ognen |
I would not use Scalar at this point today. Ignite APIs are perfectly
accessible from Scala as is. Scalar's idea was to bring convenience to Scala 2.7 level Java interop. Scala has improved dramatically since then and Ignite can be used as is from Scala (as well as Groovy, etc.). Thanks, -- Nikita Ivanov (author of Scalar) On Mon, Jul 6, 2015 at 12:31 PM, Ognen Duzlevski <[hidden email]> wrote: > Hello all, > > I have a multi-actor Akka solution that uses Ignite as cache for elastic > (via CacheStore). I have noticed the following from my actors when using > scalar cache$ constructs to get an already existing cache from an Ignite > cluster: > > Caused by: org.apache.ignite.IgniteIllegalStateException: Grid instance was > not properly started or was already stopped: null > at org.apache.ignite.internal.IgnitionEx.grid(IgnitionEx.java:1111) > ~[ignite-core-1.2.0-incubating.jar:1.2.0-incubating] > at org.apache.ignite.internal.IgnitionEx.grid(IgnitionEx.java:1024) > ~[ignite-core-1.2.0-incubating.jar:1.2.0-incubating] > at org.apache.ignite.Ignition.ignite(Ignition.java:470) > ~[ignite-core-1.2.0-incubating.jar:1.2.0-incubating] > at org.apache.ignite.scalar.scalar$.cache$(scalar.scala:275) > ~[ignite-scalar-1.2.0-incubating.jar:1.2.0-incubating] > at > > com.shoutlet.datascience.socialnetworkpollers.FBPostAggregator.<init>(PostAggregator.scala:71) > ~[classes/:na] > > The grid is running at the time these errors are appearing, in fact, the > grid's logs are not registering any "bad behavior". > > The error goes away if I go to the ign.cache() Java API interface directly > instead of using the scalar construct. > > Thanks! > Ognen > |
Nikita, thanks :). The documentation says nothing of the sort.
I think we should then aim to remove scalar? Ognen On Mon, Jul 6, 2015 at 7:22 PM, Nikita Ivanov <[hidden email]> wrote: > I would not use Scalar at this point today. Ignite APIs are perfectly > accessible from Scala as is. Scalar's idea was to bring convenience to > Scala 2.7 level Java interop. Scala has improved dramatically since then > and Ignite can be used as is from Scala (as well as Groovy, etc.). > > Thanks, > -- > Nikita Ivanov (author of Scalar) > > > On Mon, Jul 6, 2015 at 12:31 PM, Ognen Duzlevski < > [hidden email]> > wrote: > > > Hello all, > > > > I have a multi-actor Akka solution that uses Ignite as cache for elastic > > (via CacheStore). I have noticed the following from my actors when using > > scalar cache$ constructs to get an already existing cache from an Ignite > > cluster: > > > > Caused by: org.apache.ignite.IgniteIllegalStateException: Grid instance > was > > not properly started or was already stopped: null > > at org.apache.ignite.internal.IgnitionEx.grid(IgnitionEx.java:1111) > > ~[ignite-core-1.2.0-incubating.jar:1.2.0-incubating] > > at org.apache.ignite.internal.IgnitionEx.grid(IgnitionEx.java:1024) > > ~[ignite-core-1.2.0-incubating.jar:1.2.0-incubating] > > at org.apache.ignite.Ignition.ignite(Ignition.java:470) > > ~[ignite-core-1.2.0-incubating.jar:1.2.0-incubating] > > at org.apache.ignite.scalar.scalar$.cache$(scalar.scala:275) > > ~[ignite-scalar-1.2.0-incubating.jar:1.2.0-incubating] > > at > > > > > com.shoutlet.datascience.socialnetworkpollers.FBPostAggregator.<init>(PostAggregator.scala:71) > > ~[classes/:na] > > > > The grid is running at the time these errors are appearing, in fact, the > > grid's logs are not registering any "bad behavior". > > > > The error goes away if I go to the ign.cache() Java API interface > directly > > instead of using the scalar construct. > > > > Thanks! > > Ognen > > > |
Agree 100%.
-- Nikita Ivanov On Mon, Jul 6, 2015 at 7:28 PM, Ognen Duzlevski <[hidden email]> wrote: > Nikita, thanks :). The documentation says nothing of the sort. > > I think we should then aim to remove scalar? > > Ognen > > On Mon, Jul 6, 2015 at 7:22 PM, Nikita Ivanov <[hidden email]> wrote: > > > I would not use Scalar at this point today. Ignite APIs are perfectly > > accessible from Scala as is. Scalar's idea was to bring convenience to > > Scala 2.7 level Java interop. Scala has improved dramatically since then > > and Ignite can be used as is from Scala (as well as Groovy, etc.). > > > > Thanks, > > -- > > Nikita Ivanov (author of Scalar) > > > > > > On Mon, Jul 6, 2015 at 12:31 PM, Ognen Duzlevski < > > [hidden email]> > > wrote: > > > > > Hello all, > > > > > > I have a multi-actor Akka solution that uses Ignite as cache for > elastic > > > (via CacheStore). I have noticed the following from my actors when > using > > > scalar cache$ constructs to get an already existing cache from an > Ignite > > > cluster: > > > > > > Caused by: org.apache.ignite.IgniteIllegalStateException: Grid instance > > was > > > not properly started or was already stopped: null > > > at org.apache.ignite.internal.IgnitionEx.grid(IgnitionEx.java:1111) > > > ~[ignite-core-1.2.0-incubating.jar:1.2.0-incubating] > > > at org.apache.ignite.internal.IgnitionEx.grid(IgnitionEx.java:1024) > > > ~[ignite-core-1.2.0-incubating.jar:1.2.0-incubating] > > > at org.apache.ignite.Ignition.ignite(Ignition.java:470) > > > ~[ignite-core-1.2.0-incubating.jar:1.2.0-incubating] > > > at org.apache.ignite.scalar.scalar$.cache$(scalar.scala:275) > > > ~[ignite-scalar-1.2.0-incubating.jar:1.2.0-incubating] > > > at > > > > > > > > > com.shoutlet.datascience.socialnetworkpollers.FBPostAggregator.<init>(PostAggregator.scala:71) > > > ~[classes/:na] > > > > > > The grid is running at the time these errors are appearing, in fact, > the > > > grid's logs are not registering any "bad behavior". > > > > > > The error goes away if I go to the ign.cache() Java API interface > > directly > > > instead of using the scalar construct. > > > > > > Thanks! > > > Ognen > > > > > > |
Agree with Nikita. Alex Kuznetsov, can you please clarify the scope (and
file a ticket)? --Yakov 2015-07-07 11:01 GMT+03:00 Nikita Ivanov <[hidden email]>: > Agree 100%. > > -- > Nikita Ivanov > > > On Mon, Jul 6, 2015 at 7:28 PM, Ognen Duzlevski <[hidden email] > > > wrote: > > > Nikita, thanks :). The documentation says nothing of the sort. > > > > I think we should then aim to remove scalar? > > > > Ognen > > > > On Mon, Jul 6, 2015 at 7:22 PM, Nikita Ivanov <[hidden email]> > wrote: > > > > > I would not use Scalar at this point today. Ignite APIs are perfectly > > > accessible from Scala as is. Scalar's idea was to bring convenience to > > > Scala 2.7 level Java interop. Scala has improved dramatically since > then > > > and Ignite can be used as is from Scala (as well as Groovy, etc.). > > > > > > Thanks, > > > -- > > > Nikita Ivanov (author of Scalar) > > > > > > > > > On Mon, Jul 6, 2015 at 12:31 PM, Ognen Duzlevski < > > > [hidden email]> > > > wrote: > > > > > > > Hello all, > > > > > > > > I have a multi-actor Akka solution that uses Ignite as cache for > > elastic > > > > (via CacheStore). I have noticed the following from my actors when > > using > > > > scalar cache$ constructs to get an already existing cache from an > > Ignite > > > > cluster: > > > > > > > > Caused by: org.apache.ignite.IgniteIllegalStateException: Grid > instance > > > was > > > > not properly started or was already stopped: null > > > > at org.apache.ignite.internal.IgnitionEx.grid(IgnitionEx.java:1111) > > > > ~[ignite-core-1.2.0-incubating.jar:1.2.0-incubating] > > > > at org.apache.ignite.internal.IgnitionEx.grid(IgnitionEx.java:1024) > > > > ~[ignite-core-1.2.0-incubating.jar:1.2.0-incubating] > > > > at org.apache.ignite.Ignition.ignite(Ignition.java:470) > > > > ~[ignite-core-1.2.0-incubating.jar:1.2.0-incubating] > > > > at org.apache.ignite.scalar.scalar$.cache$(scalar.scala:275) > > > > ~[ignite-scalar-1.2.0-incubating.jar:1.2.0-incubating] > > > > at > > > > > > > > > > > > > > com.shoutlet.datascience.socialnetworkpollers.FBPostAggregator.<init>(PostAggregator.scala:71) > > > > ~[classes/:na] > > > > > > > > The grid is running at the time these errors are appearing, in fact, > > the > > > > grid's logs are not registering any "bad behavior". > > > > > > > > The error goes away if I go to the ign.cache() Java API interface > > > directly > > > > instead of using the scalar construct. > > > > > > > > Thanks! > > > > Ognen > > > > > > > > > > |
Yakov, do I correctly understand that issue should be about of removing
scalar from Ignite? On Wed, Jul 8, 2015 at 10:34 PM, Yakov Zhdanov <[hidden email]> wrote: > Agree with Nikita. Alex Kuznetsov, can you please clarify the scope (and > file a ticket)? > > --Yakov > > 2015-07-07 11:01 GMT+03:00 Nikita Ivanov <[hidden email]>: > > > Agree 100%. > > > > -- > > Nikita Ivanov > > > > > > On Mon, Jul 6, 2015 at 7:28 PM, Ognen Duzlevski < > [hidden email] > > > > > wrote: > > > > > Nikita, thanks :). The documentation says nothing of the sort. > > > > > > I think we should then aim to remove scalar? > > > > > > Ognen > > > > > > On Mon, Jul 6, 2015 at 7:22 PM, Nikita Ivanov <[hidden email]> > > wrote: > > > > > > > I would not use Scalar at this point today. Ignite APIs are perfectly > > > > accessible from Scala as is. Scalar's idea was to bring convenience > to > > > > Scala 2.7 level Java interop. Scala has improved dramatically since > > then > > > > and Ignite can be used as is from Scala (as well as Groovy, etc.). > > > > > > > > Thanks, > > > > -- > > > > Nikita Ivanov (author of Scalar) > > > > > > > > > > > > On Mon, Jul 6, 2015 at 12:31 PM, Ognen Duzlevski < > > > > [hidden email]> > > > > wrote: > > > > > > > > > Hello all, > > > > > > > > > > I have a multi-actor Akka solution that uses Ignite as cache for > > > elastic > > > > > (via CacheStore). I have noticed the following from my actors when > > > using > > > > > scalar cache$ constructs to get an already existing cache from an > > > Ignite > > > > > cluster: > > > > > > > > > > Caused by: org.apache.ignite.IgniteIllegalStateException: Grid > > instance > > > > was > > > > > not properly started or was already stopped: null > > > > > at org.apache.ignite.internal.IgnitionEx.grid(IgnitionEx.java:1111) > > > > > ~[ignite-core-1.2.0-incubating.jar:1.2.0-incubating] > > > > > at org.apache.ignite.internal.IgnitionEx.grid(IgnitionEx.java:1024) > > > > > ~[ignite-core-1.2.0-incubating.jar:1.2.0-incubating] > > > > > at org.apache.ignite.Ignition.ignite(Ignition.java:470) > > > > > ~[ignite-core-1.2.0-incubating.jar:1.2.0-incubating] > > > > > at org.apache.ignite.scalar.scalar$.cache$(scalar.scala:275) > > > > > ~[ignite-scalar-1.2.0-incubating.jar:1.2.0-incubating] > > > > > at > > > > > > > > > > > > > > > > > > > > com.shoutlet.datascience.socialnetworkpollers.FBPostAggregator.<init>(PostAggregator.scala:71) > > > > > ~[classes/:na] > > > > > > > > > > The grid is running at the time these errors are appearing, in > fact, > > > the > > > > > grid's logs are not registering any "bad behavior". > > > > > > > > > > The error goes away if I go to the ign.cache() Java API interface > > > > directly > > > > > instead of using the scalar construct. > > > > > > > > > > Thanks! > > > > > Ognen > > > > > > > > > > > > > > > -- Alexey Kuznetsov GridGain Systems www.gridgain.com |
From my side I am a little worried that once we remove scalar, we will
start getting complaints. On Wed, Jul 8, 2015 at 9:25 AM, Alexey Kuznetsov <[hidden email]> wrote: > Yakov, do I correctly understand that issue should be about of removing > scalar from Ignite? > > On Wed, Jul 8, 2015 at 10:34 PM, Yakov Zhdanov <[hidden email]> > wrote: > > > Agree with Nikita. Alex Kuznetsov, can you please clarify the scope (and > > file a ticket)? > > > > --Yakov > > > > 2015-07-07 11:01 GMT+03:00 Nikita Ivanov <[hidden email]>: > > > > > Agree 100%. > > > > > > -- > > > Nikita Ivanov > > > > > > > > > On Mon, Jul 6, 2015 at 7:28 PM, Ognen Duzlevski < > > [hidden email] > > > > > > > wrote: > > > > > > > Nikita, thanks :). The documentation says nothing of the sort. > > > > > > > > I think we should then aim to remove scalar? > > > > > > > > Ognen > > > > > > > > On Mon, Jul 6, 2015 at 7:22 PM, Nikita Ivanov <[hidden email]> > > > wrote: > > > > > > > > > I would not use Scalar at this point today. Ignite APIs are > perfectly > > > > > accessible from Scala as is. Scalar's idea was to bring convenience > > to > > > > > Scala 2.7 level Java interop. Scala has improved dramatically since > > > then > > > > > and Ignite can be used as is from Scala (as well as Groovy, etc.). > > > > > > > > > > Thanks, > > > > > -- > > > > > Nikita Ivanov (author of Scalar) > > > > > > > > > > > > > > > On Mon, Jul 6, 2015 at 12:31 PM, Ognen Duzlevski < > > > > > [hidden email]> > > > > > wrote: > > > > > > > > > > > Hello all, > > > > > > > > > > > > I have a multi-actor Akka solution that uses Ignite as cache for > > > > elastic > > > > > > (via CacheStore). I have noticed the following from my actors > when > > > > using > > > > > > scalar cache$ constructs to get an already existing cache from an > > > > Ignite > > > > > > cluster: > > > > > > > > > > > > Caused by: org.apache.ignite.IgniteIllegalStateException: Grid > > > instance > > > > > was > > > > > > not properly started or was already stopped: null > > > > > > at > org.apache.ignite.internal.IgnitionEx.grid(IgnitionEx.java:1111) > > > > > > ~[ignite-core-1.2.0-incubating.jar:1.2.0-incubating] > > > > > > at > org.apache.ignite.internal.IgnitionEx.grid(IgnitionEx.java:1024) > > > > > > ~[ignite-core-1.2.0-incubating.jar:1.2.0-incubating] > > > > > > at org.apache.ignite.Ignition.ignite(Ignition.java:470) > > > > > > ~[ignite-core-1.2.0-incubating.jar:1.2.0-incubating] > > > > > > at org.apache.ignite.scalar.scalar$.cache$(scalar.scala:275) > > > > > > ~[ignite-scalar-1.2.0-incubating.jar:1.2.0-incubating] > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > > com.shoutlet.datascience.socialnetworkpollers.FBPostAggregator.<init>(PostAggregator.scala:71) > > > > > > ~[classes/:na] > > > > > > > > > > > > The grid is running at the time these errors are appearing, in > > fact, > > > > the > > > > > > grid's logs are not registering any "bad behavior". > > > > > > > > > > > > The error goes away if I go to the ign.cache() Java API interface > > > > > directly > > > > > > instead of using the scalar construct. > > > > > > > > > > > > Thanks! > > > > > > Ognen > > > > > > > > > > > > > > > > > > > > > > > > -- > Alexey Kuznetsov > GridGain Systems > www.gridgain.com > |
Valid point... We should either fix it and maintain it properly - or remove
it. As of today, special Scala DSL for Ignite provides only limited value (essentially, just a collection of implicits). Since Scala 2.10+ Ignite can be used almost as is from Scala. -- Nikita Ivanov On Wed, Jul 8, 2015 at 9:43 AM, Dmitriy Setrakyan <[hidden email]> wrote: > From my side I am a little worried that once we remove scalar, we will > start getting complaints. > > On Wed, Jul 8, 2015 at 9:25 AM, Alexey Kuznetsov <[hidden email]> > wrote: > > > Yakov, do I correctly understand that issue should be about of removing > > scalar from Ignite? > > > > On Wed, Jul 8, 2015 at 10:34 PM, Yakov Zhdanov <[hidden email]> > > wrote: > > > > > Agree with Nikita. Alex Kuznetsov, can you please clarify the scope > (and > > > file a ticket)? > > > > > > --Yakov > > > > > > 2015-07-07 11:01 GMT+03:00 Nikita Ivanov <[hidden email]>: > > > > > > > Agree 100%. > > > > > > > > -- > > > > Nikita Ivanov > > > > > > > > > > > > On Mon, Jul 6, 2015 at 7:28 PM, Ognen Duzlevski < > > > [hidden email] > > > > > > > > > wrote: > > > > > > > > > Nikita, thanks :). The documentation says nothing of the sort. > > > > > > > > > > I think we should then aim to remove scalar? > > > > > > > > > > Ognen > > > > > > > > > > On Mon, Jul 6, 2015 at 7:22 PM, Nikita Ivanov <[hidden email] > > > > > > wrote: > > > > > > > > > > > I would not use Scalar at this point today. Ignite APIs are > > perfectly > > > > > > accessible from Scala as is. Scalar's idea was to bring > convenience > > > to > > > > > > Scala 2.7 level Java interop. Scala has improved dramatically > since > > > > then > > > > > > and Ignite can be used as is from Scala (as well as Groovy, > etc.). > > > > > > > > > > > > Thanks, > > > > > > -- > > > > > > Nikita Ivanov (author of Scalar) > > > > > > > > > > > > > > > > > > On Mon, Jul 6, 2015 at 12:31 PM, Ognen Duzlevski < > > > > > > [hidden email]> > > > > > > wrote: > > > > > > > > > > > > > Hello all, > > > > > > > > > > > > > > I have a multi-actor Akka solution that uses Ignite as cache > for > > > > > elastic > > > > > > > (via CacheStore). I have noticed the following from my actors > > when > > > > > using > > > > > > > scalar cache$ constructs to get an already existing cache from > an > > > > > Ignite > > > > > > > cluster: > > > > > > > > > > > > > > Caused by: org.apache.ignite.IgniteIllegalStateException: Grid > > > > instance > > > > > > was > > > > > > > not properly started or was already stopped: null > > > > > > > at > > org.apache.ignite.internal.IgnitionEx.grid(IgnitionEx.java:1111) > > > > > > > ~[ignite-core-1.2.0-incubating.jar:1.2.0-incubating] > > > > > > > at > > org.apache.ignite.internal.IgnitionEx.grid(IgnitionEx.java:1024) > > > > > > > ~[ignite-core-1.2.0-incubating.jar:1.2.0-incubating] > > > > > > > at org.apache.ignite.Ignition.ignite(Ignition.java:470) > > > > > > > ~[ignite-core-1.2.0-incubating.jar:1.2.0-incubating] > > > > > > > at org.apache.ignite.scalar.scalar$.cache$(scalar.scala:275) > > > > > > > ~[ignite-scalar-1.2.0-incubating.jar:1.2.0-incubating] > > > > > > > at > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > com.shoutlet.datascience.socialnetworkpollers.FBPostAggregator.<init>(PostAggregator.scala:71) > > > > > > > ~[classes/:na] > > > > > > > > > > > > > > The grid is running at the time these errors are appearing, in > > > fact, > > > > > the > > > > > > > grid's logs are not registering any "bad behavior". > > > > > > > > > > > > > > The error goes away if I go to the ign.cache() Java API > interface > > > > > > directly > > > > > > > instead of using the scalar construct. > > > > > > > > > > > > > > Thanks! > > > > > > > Ognen > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > Alexey Kuznetsov > > GridGain Systems > > www.gridgain.com > > > |
On Wed, Jul 8, 2015 at 11:50 AM, Nikita Ivanov <[hidden email]> wrote:
> Valid point... We should either fix it and maintain it properly - or remove > it. As of today, special Scala DSL for Ignite provides only limited value > (essentially, just a collection of implicits). Since Scala 2.10+ Ignite can > be used almost as is from Scala. > Yes it can but is the code you end up writing really in the spirit of what Scala code should strive to look like? ;) |
Free forum by Nabble | Edit this page |