Re: intialize the cache manager?

2016-02-11 Thread Vladimir Ozerov
Ravi, You can pass custom configuration as follows: CachingProvider cachingProvider = Caching.getCachingProvider(); URI uri = URI.create("file:///path/to/your/config.xml"); CacheManager cacheMgr = cachingProvider.getCacheManager(uri, cachingProvider.getDefaultClassLoader()); On Fri, Feb 12, 2

Re: Migrating From Hazelcast Service Interface To Apache Ignite Service Interface

2016-02-11 Thread Dmitriy Setrakyan
In my view Ignite service grid supports a lot more than Hazelcast and provides much simpler API for it. 1. You can deploy service on any single node in the cluster, any cluster group, or on the whole grid. 2. Ignite Service is not a wrapper around cache. It can have any user logic wit

Re: Ignite Transactions with READ WRITE through and Spring

2016-02-11 Thread vkulichenko
amit2103 wrote > I get the idea (make the caches transactional). But I have my initial > doubt > Let me explain. My cluster has say 3 nodes when I start the below process > in 1 node > All caches are transactional. > > > 1) Open transaction > 2) Write to 1 Person cache (which is supposed to do re

intialize the cache manager?

2016-02-11 Thread Ravi
how to initialize cache manager by passing configuration ignite.xml file path? -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/intialize-the-cache-manager-tp2972.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Migrating From Hazelcast Service Interface To Apache Ignite Service Interface

2016-02-11 Thread vkulichenko
Hi Gareth, Ignite's Service Grid really differs from Hazelcast SPI. From what I see these are completely different features. Can you please elaborate what your service does? If we know more details about your use case, it would be easier to propose the best solution. -Val -- View this message

Migrating From Hazelcast Service Interface To Apache Ignite Service Interface

2016-02-11 Thread gcollins
Hello, We have an existing application which takes advantage of the Hazelcast SPI interface. The Hazelcast SPI interface allowed us to create a quite complex distributed service allowing us to manage our own memory, migrations and how we would like to replicate (hazelcast just managed where partit

Re: Immediate flush of cache into backing store

2016-02-11 Thread vkulichenko
Hi Kobe, Yes, I was talking about IgfsMode, sorry for the confusion. Default is DUAL_ASYNC. -Val -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Immediate-flush-of-cache-into-backing-store-tp2942p2969.html Sent from the Apache Ignite Users mailing list archive

Re: Ignite Transactions with READ WRITE through and Spring

2016-02-11 Thread vkulichenko
Hi Amit, Can you please properly subscribe to the mailing list so that the community receives email notifications? Please follow the instruction here: http://apache-ignite-users.70518.x6.nabble.com/mailing_list/MailingListOptions.jtp?forum=1 amit2103 wrote > Many thanks for the wonderful project

Re: Immediate flush of cache into backing store

2016-02-11 Thread Kobe
Sorry, I see a FileSystemConfiguration defaultMode property: fs.setDefaultMode(IgfsMode.DUAL_SYNC); What is the default value of this setting? Thanks! /Kobe Kobe wrote > Val, > > I assume you are referring to CacheWriteSynchronizationMode? I do not see > the > mode DUAL_ASYNC. I see

Re: Immediate flush of cache into backing store

2016-02-11 Thread Kobe
Val, I assume you are referring to CacheWriteSynchronizationMode? I do not see the mode DUAL_ASYNC. I see only FULL_ASYNC, FULL_SYNC and PRIMARY_ASYNC. AM I missing something? * CacheConfiguration datacache = new CacheConfiguration (); datacache.setName("igfs-data"); data

Re: Node discovery behind NAT

2016-02-11 Thread vkulichenko
Hi, No, this socket can't be reused. And you're right, server's communication SPI can try to establish connection with the client (to port 47100 by default). If client is behind NAT, you can setup port forwarding on the router. You will also have to implement AddressResolver interface and provide

Re: Export/download documentation (plan/exist)

2016-02-11 Thread vkulichenko
Hi Tomas, Can you please properly subscribe to the mailing list so that the community receives email notifications? Please follow the instruction here: http://apache-ignite-users.70518.x6.nabble.com/mailing_list/MailingListOptions.jtp?forum=1 tomascejka wrote > Hello, I would like to know if you

ApacheCon NA 2016 - Important Dates!!!

2016-02-11 Thread Melissa Warnkin
Hello everyone! I hope this email finds you well.  I hope everyone is as excited about ApacheCon as I am! I'd like to remind you all of a couple of important dates, as well as ask for your assistance in spreading the word! Please use your social media platform(s) to get the word out! The more v

Re: Version issue with concurrent cache updates (EntryProcessor)

2016-02-11 Thread Myron Chelyada
Hi Alexey, Will try to extract main logic into some test that would allow to reproduce it. But in meanwhile I figured out that issue appears only on cache that is store backed. I.e. as soon as I set either "readThrough" or "writeThrough" to "false" (or both) issue disappear. But actually in my cas

Re: Sharing Spark RDDs with Ignite

2016-02-11 Thread Dmitriy Morozov
Hi Valentin, Sorry, I realize I didn't get it right. I'm using IgniteRDD to save RDD values now and IgniteCache to cache StructType. I'm using a ~1mb Parquet file for testing which has ~75K rows. I noticed that saving IgniteRDD is expensive, it takes about 4 seconds on my laptop. I tried both cli

Re: MyBatis-Ignite integration release

2016-02-11 Thread Roman Shtykh
Dmitriy, Let's see if we have some feedback from users (that is mostly the intention I share here too). After that I'll call for a vote among MyBatis devs and they will help with the release. -Roman On Thursday, February 11, 2016 5:39 PM, Dmitriy Setrakyan wrote: Thanks Roman, this i

Re: lock and unlock the cache key?

2016-02-11 Thread Ravi
tHANKS to all -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/lock-and-unlock-the-cache-key-tp2950p2958.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: lock and unlock the cache key?

2016-02-11 Thread Alexey Goncharuk
Ravi, A small typo sneaked to the code snippet - the lock() call was omitted - it should be like this (I also omitting the try-finally block for the simplicity) IgniteCache cache = ...; Lock lock = cache.lock(key); lock.lock(); // ... process while lock is held lock.unlock();

Node discovery behind NAT

2016-02-11 Thread pshomov
Hello, I have an Ignite node (IGFS caching HDFS) running on one of my servers, close to where my data is. And I would like to have a node on my laptop to have cached data close by. I setup the config for the node on my laptop to have discoverySpi like this /

Re: lock and unlock the cache key?

2016-02-11 Thread Vladimir Ozerov
Ravi, Please clarify what long do you mean? Here is short code snippet showing lock/unlock cycle: IgniteCache cache = ...; Lock lock = cache.lock(key); lock.unlock(); Vladimir. On Thu, Feb 11, 2016 at 1:12 PM, Ravi wrote: > Lock.unlock(long) here long is needed but i want unlock object as k

Re: lock and unlock the cache key?

2016-02-11 Thread Ravi
Lock.unlock(long) here long is needed but i want unlock object as key?? as i locked using IgniteCache.lock(key).? -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/lock-and-unlock-the-cache-key-tp2950p2954.html Sent from the Apache Ignite Users mailing list archi

Re: Performance drops when ContinuosQuery starts

2016-02-11 Thread flob
Hey Val, Thanks for your reply, I'll try playing with the page size and see if that helps. Regarding the measurements, I have a metric on the app that measures the time spent for updating the cache whenever a new event is received from the DB. In this update I'm not only propagating the update to

Re: lock and unlock the cache key?

2016-02-11 Thread Vladimir Ozerov
Hi Ravi, Method IgniteCache.lock(K) returns instance of Lock object. Use Lock.unlock() on this object to unlock the key. Vladimir. On Thu, Feb 11, 2016 at 10:57 AM, Ravi wrote: > how it can be performed as i want to lock a particular key and then unlock > it.Suggest me the way how can i check

Re: MyBatis-Ignite integration release

2016-02-11 Thread Dmitriy Setrakyan
Thanks Roman, this is awesome news! Do you know what is the process at MyBatis to move from beta into a final GA release? D. On Wed, Feb 10, 2016 at 11:41 PM, Roman Shtykh wrote: > Dear community, > > I would like to share the news about MyBatis-Ignite integration release, > as a result of the

lock and unlock the cache key?

2016-02-11 Thread Ravi
how it can be performed as i want to lock a particular key and then unlock it.Suggest me the way how can i check whether key is locked or not? cache.lock(key)- it locks the key but how to unlock the key?? -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/lock-and