Re: javax.cache.CacheException: Failed to find mapping description

2016-08-29 Thread Alexey Kuznetsov
We are installing Hive right now. It is possible for you to give us some scripts that will create tables in Hive and populate it with some test data? This will help us with reproducing. Thanks. -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/javax-cache-CacheE

Re: javax.cache.CacheException: Failed to find mapping description

2016-08-29 Thread vikramT
Thanks Alexey. Please try to provide the solution as early as possible. -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/javax-cache-CacheException-Failed-to-find-mapping-description-tp7350p7397.html Sent from the Apache Ignite Users mailing list archive at Nabble

Re: javax.cache.CacheException: Failed to find mapping description

2016-08-29 Thread Alexey Kuznetsov
Hi, @vikramT. Actually we did not tested automatic persistence with Hive. We will try to reproduce and I will let you know in this thread. -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/javax-cache-CacheException-Failed-to-find-mapping-description-tp7350p7396.

Re: Ignite with Cassandra

2016-08-29 Thread Igor Rudyak
The reason is in *"id"* field. According to the persistence descriptor, cache key will be stored in "id" field, but at the same time User POJO class also has such field. There are several options to fix this: 1) Specify another column mapping for Ignite cache key. For example: ** 2) Specify non d

Re: data loss occurred sometimes when configured primary-backups with full_async

2016-08-29 Thread seyeony
hi alexey, thank you very much for your valuable advice. it works fine. -seyeon -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/data-loss-occurred-sometimes-when-configured-primary-backups-with-full-async-tp7297p7394.html Sent from the Apache Ignite Users mailin

Re: CacheWriter#writeAll javadocs inconsistent with implementations ?

2016-08-29 Thread Valentin Kulichenko
Hi Kristian, I looked through your pull request and left my comments in the ticket. Before continuing the work, please go though the page [1], write a 'Hi!' email to the dev list with your JIRA username so that they can add you to the contributors list, and then assign the ticket to yourself. Tha

Re: Embedded mode ignite on spark

2016-08-29 Thread vkulichenko
I guess there are some failures on containers. Can you share the logs? -Val -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Embedded-mode-ignite-on-spark-tp6942p7392.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Simulating network outage in tests

2016-08-29 Thread vkulichenko
Hi Anand, I recommend you to ask on the dev@ list about this. Most likely you will get better guidance there. -Val -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Simulating-network-outage-in-tests-tp7377p7391.html Sent from the Apache Ignite Users mailing list

Re: SPI has already been started (always create new configuration instance for each starting Ignite instances) Error

2016-08-29 Thread Anand Kumar Sankaran
Hi Val Got it. Thanks. On 8/29/16, 1:24 PM, "vkulichenko" wrote: Anand, Copy constructor does not make a deep copy, so instances of SPIs is the same. This is by design, because I'm not sure this is even possible in general case (SPIs can be provided by users and in this c

Re: how to automatically exit JVM when the node stops?

2016-08-29 Thread vkulichenko
Hi, I don't think there is a generic solution for cases when an Ignite node is embedded into other application. You will always need to figure out what to do with other components of this application. You can listen to Ignite events (e.g., EVT_NODE_SEGMENTED) and act accordingly in the listener.

Re: Ignite Cache Update(k,v)

2016-08-29 Thread vkulichenko
You can call bin/ignite.sh script on that machine. In addition, IgniteCluster API provides startNodes() method that allows to do this programmatically on the remote machines (it uses SSH connection). -Val -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Ignite-Ca

Re: LOOK THORUGH THIS ERROR

2016-08-29 Thread vkulichenko
Ravi, You can use data streamer [1] as an alternative. But I'm pretty sure you app will fail on any interaction between Hibernate and Ignite. I strongly recommend to use Maven or any other dependency management tool. [1] https://apacheignite.readme.io/docs/data-loading -Val -- View this messa

Re: How to accomplish Master node failover - without resubmit

2016-08-29 Thread vkulichenko
Vinay, If job implements ComputeJobMasterLeaveAware it will not be cancelled when the master node fails. It also gives you a callback that notifies you about the event so that you can save the results to be collected by something else. You can save results in cache or use checkpoints [1]. [1] htt

Re: SPI has already been started (always create new configuration instance for each starting Ignite instances) Error

2016-08-29 Thread vkulichenko
Anand, Copy constructor does not make a deep copy, so instances of SPIs is the same. This is by design, because I'm not sure this is even possible in general case (SPIs can be provided by users and in this case we know nothing about them - sounds risky). I would not recommend to use copy construct

Re: Dynamic caches over JCache

2016-08-29 Thread vkulichenko
Josh, You should use CacheManager.createCache to create it. As per spec, the getCache() method returns 'the Cache or null if it does exist or can't be pre-configured'. Unfortunately, CacheManager doesn't have anything like getOrCreateCache. -Val -- View this message in context: http://apache-

Re: failureDetectionTimeout tuning

2016-08-29 Thread vkulichenko
Binti, Try to increase failure detection timeout. Note that if do this, you should remove all other timeouts from the config (ackTimeout, networkTimeout, etc.) as they override the failure detection timeout. I would also check the memory usage on the node and make sure it's not running out of memo

Re: GET with LIKE operator for keys

2016-08-29 Thread vkulichenko
Hi Sam, You can use SQL query [1] for this. The actual query should look like '_key = %January%'. But keep in mind that this is actually a cache scan and will not be very effective from performance standpoint. [1] https://apacheignite.readme.io/docs/sql-queries -Val -- View this message in co

GET with LIKE operator for keys

2016-08-29 Thread javastuff....@gmail.com
Is there a way to query matching keys with wild card characters? Here is the usecase - We have few cache defined as local and few off-heap distributed. Some business logic need to capture all cache entries whose keys having text "January". (key='%January%') cache.getLike('%January%') --Sam

Re: Near Cache

2016-08-29 Thread javastuff....@gmail.com
Thanks. This should help analyzing OOM with incorrect sizing configuration. -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Near-Cache-tp7033p7380.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: failureDetectionTimeout tuning

2016-08-29 Thread Anand Kumar Sankaran
http://apacheignite.gridgain.org/v1.7/docs/cluster-config#failure-detection-timeout Most likely a hardware or network issue (or your node could be very busy as well). On 8/29/16, 8:54 AM, "bintisepaha" wrote: We see this message logged in our logs from time to time. Is this a potential

Dynamic caches over JCache

2016-08-29 Thread Josh Cummings
I am trying to do the following: CacheManager cm = Caching.getCachingProvider().getCacheManager(); Cache cache = cm.getCache("my-cache"); At this point, cm points to an instance of org.apache.ignite.cache.CacheManager and cache points to null. I figured that Ignite would simply create the cache

Simulating network outage in tests

2016-08-29 Thread Anand Kumar Sankaran
Hi I am implementing a segmentation resolver to handle split brain scenarios. I need to simulate network outages to unit test this behavior. Any suggestions on how to simulate this? I see that the TcpDiscoverySpi has timeouts, is there a way to mock TcpDiscoverySpi to think that there is a n

Re: SPI has already been started (always create new configuration instance for each starting Ignite instances) Error

2016-08-29 Thread Anand Kumar Sankaran
Hi Vladislav Thanks. I got this to work by re-constructing the IgniteConfiguration. However, the Javadoc of the IgniteConfiguration copy constructor is incorrect or there is a bug in the copy constructor. I will create a JIRA. http://ignite.apache.org/releases/1.0.0/javadoc/org/apache/ignite

Re: data loss occurred sometimes when configured primary-backups with full_async

2016-08-29 Thread Alexey Goncharuk
Hi, In FULL_ASYNC mode the API call returns before the update message is sent to a remote node, let alone the response receipt from the remote node. This means that in FULL_ASYNC mode you can stop your client even before the grid knows that you wanted to put something in the cache. You need to use

failureDetectionTimeout tuning

2016-08-29 Thread bintisepaha
We see this message logged in our logs from time to time. Is this a potential issue with one of the nodes? [tcp-disco-sock-reader-#41%DataGridServer-Staging%] ERROR (Log4JLogger.java:495) Failed to initialize connection [sock=Socket[addr=/10.22.50.193,port=35612,localport=47501]] class org.apach

How to accomplish Master node failover - without resubmit

2016-08-29 Thread Vinay B,
In our implementation, the master node submits tasks to the grid. How can we achieve high availability by having multiple master nodes so that if the master node dies or leaves the grid, another node can collect the results - without having to resubmit the jobs. Also, is it possible to implement lo

how to automatically exit JVM when the node stops?

2016-08-29 Thread Marasoiu Nicolae
Hi, When the Ignite node.stop() is called (e.g. the default segmentation strategy), or when the "main" thread exists, we would like to have the JVM automatically exit as well. We have threads from Ignite, from RxJava, Vert.x, Netty, and a "main" thread, for boot. We understand why the JVM

Re: Spring application context resource is not injected exception while starting ignite in jdbc driver mode

2016-08-29 Thread san
Thanks Sir. thanks for the info. Regards, San -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Spring-application-context-resource-is-not-injected-exception-while-starting-ignite-in-jdbc-driver-me-tp7299p7371.html Sent from the Apache Ignite Users mailing list ar

Re: Web Console on Local Machine not working

2016-08-29 Thread pawantlor
Thats great!! Thanks for quick update. And you were supposed to update backend/frontend folder to master as per below reply? (It seems that we forget to push changes to ignite-1.7. I will push all changes to master tomorrow and you will be able to start Web Console from master.) -- View this

Re: Spring application context resource is not injected exception while starting ignite in jdbc driver mode

2016-08-29 Thread Andrey Gura
Yes, SQL queries are read-only, so DB updates aren't possible. CRUD operations using SQL are in progress now. On Mon, Aug 29, 2016 at 10:24 AM, san wrote: > Hi, > > please let know "SQL Queries" are read-only? is cache and database update > possible using SQL Queries? > > https://apacheignite.

Re: Web Console on Local Machine not working

2016-08-29 Thread Alexey Kuznetsov
@Pawantlor, we already prepared docker and doing some internal testing of it. I hope it will be available this week. I will post in this thread when it will be ready. On Mon, Aug 29, 2016 at 4:31 PM, pawantlor wrote: > @Alexey Do you know if the changes are pushed. Also any update on docker? >

Re: Web Console on Local Machine not working

2016-08-29 Thread pawantlor
@Alexey Do you know if the changes are pushed. Also any update on docker? -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Web-Console-on-Local-Machine-not-working-tp7229p7367.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: SPI has already been started (always create new configuration instance for each starting Ignite instances) Error

2016-08-29 Thread Vladislav Pyatkov
Hello Anand, Ignite configuration is not reusable, because SPI stores data in internal fields. You can made copy of configuration before first start of Ignite instance. I see a solution do it, using Spring scope bean attribute (if youuse Spring configuration) like this: On Sun, Aug 28, 2016 at

Re: data loss occurred sometimes when configured primary-backups with full_async

2016-08-29 Thread seyeony
hi Val, thank you very much for your reply and recommendations on my problem. i changed my id due to the problem with mailing list... i use the option FULL_ASYNC dut to the insert performance. i ran 3 nodes of empty ignite in each server. i tried to put 10 Person object as client mode. i got t

Re: Spring application context resource is not injected exception while starting ignite in jdbc driver mode

2016-08-29 Thread san
Hi, please let know "SQL Queries" are read-only? is cache and database update possible using SQL Queries? https://apacheignite.readme.io/v1.7/docs/sql-queries Regards, Sanjeev -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Spring-application-context-resour