Re: org.apache.ignite.IgniteCheckedException: Failed to register query type: TypeDescriptor

2016-03-19 Thread Vasiliy Sisko
Hello. I reproduced this issue. Schema import utility generate wrong code in special case. You may watch this issue https://issues.apache.org/jira/browse/IGNITE-2856. The reason of that exception is that columns [CARD_NO] for @navy and [P_PRODUCTORDERLIMIT] for @minisoft_rm are configured as inde

Re: CacheStore handles persistence in client node for transactional cache

2016-03-19 Thread knowak
Thanks Vladmir. Unfortunately we need write-through to guarantee persistence. Which means we'll need to modify approach so that client nodes are allowed to write to the store. You also wrote that ATOMIC cache doesn't give any transactional guarantees. Does it mean that if we have write-through cac

Re: How to solve the data lost?

2016-03-19 Thread Vladimir Ozerov
Hi, Can you please properly subscribe to the mailing list so that the community receives email notifications? Follow the instruction here: http://apache-ignite-users.70518.x6.nabble.com/mailing_list/MailingListOptions.jtp?forum=1 I am not sure I understand your question. Do you want to loose data

Re: org.apache.ignite.IgniteCheckedException: Failed to register query type: TypeDescriptor

2016-03-19 Thread minisoft_rm
super cool So before ver1.6, let me test more things about "SELECT". -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/org-apache-ignite-IgniteCheckedException-Failed-to-register-query-type-TypeDescriptor-tp3447p3579.html Sent from the Apache Ignite Users mailing

Re: Server node info when client disconnects

2016-03-19 Thread vkulichenko
Hi Alper, I'm not sure I understand the issue and the fix. EVT_NODE_LEFT/FAILED and EVT_CLIENT_NODE_DISCONNECTED are different events that are fired in different situations. For example, EVT_CLIENT_NODE_DISCONNECTED can happen due to network outage, even without any server failures. And on the ot

Re: Reducing memory footprint

2016-03-19 Thread Andrey Gura
Alexander, from my point of view you should use only server nodes because Vert.x use cluster manager distributed datastructures (caches in case of Ignite) for storing information about event bus subscribers and deployed verticles. In order to reduce memory footprint you can also reduce the follow

How to implement a custom ExpiryPolicy based on Entity attributes

2016-03-19 Thread techbysample
Support, I would like to implement a custom ExpiryPolicy that based on entity (ie: Employee object) attributes and time. For example, if Employee objects are added to the cache, I want Employee objects removed where Employee.has401k=false after 5 seconds; Example: Employee { private boolean

Re: Reducing memory footprint

2016-03-19 Thread vkulichenko
Alexander, No, there is no way to change cache topology in runtime. Client node doesn't store any data and by default never executes jobs or runs services. It also uses more lightweight discovery protocol, which allows to have a lot of clients to be connected to a single cluster. But I'm still a

Re: How to implement a custom ExpiryPolicy based on Entity attributes

2016-03-19 Thread vkulichenko
Hi, You can define the expiry policy for a particular update when doing a put: if (!employee.has401k) cache.withExpiryPolicy(new CreatedExpiryPolicy(new Duration(TimeUnit.SECONDS, 5))).put(key, employee); else cache.put(key, employee); Will this work for you? -Val -- View this messag

any example of iptables rules for apache ignite ?

2016-03-19 Thread X Yang
Dear All, I have set up a cluster of 6 nodes (RHEL6.6) using apache-ignite-fabric-1.5.0.final-bin and it works without iptables. However, once I enable iptables, even with the most generous rule as following, it stops working. Any tips? - Yang --IPTABLES-

Re: Two nodes in one JVM/Tomcat

2016-03-19 Thread vkulichenko
Hi, hemanta wrote > I hit on subscription button but I am not getting any email. I tried > couple of times. Can you try another email? hemanta wrote > Thanks for your reply. I would like to share the data between applications > but we have two web applications running in same tomcat. They have

Re: Cross cache query cannot query data

2016-03-19 Thread vkulichenko
Hi, It's really hard to understand your issue. Please refer to CacheQueryExample [1] that shows how to execute cross-cache queries. Most likely you get empty result because persons and organization are not properly collocated. Note how AffinityKey class is used as a key for Person to make sure th

Ignite still support Scala API

2016-03-19 Thread timothy
if ignite still support Scala API, I can not find its API document on ignite official website -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Ignite-still-support-Scala-API-tp3567.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.

How to deploy CacheJdbcPojoStore on a cluster of "non-embedded" Ignite node?

2016-03-19 Thread tomli
Hi All, I want to deploy a CacheJdbcPojoStore on a cluster formed by some "non-embedded" Ignite node, the closest thing I can find in "https://apacheignite.readme.io/"; is "https://apacheignite.readme.io/docs/automatic-persistence";. By following the instructions, I am able to run the Demo appli

Re: Semaphore blocking on tryAcquire() while holding a cache-lock

2016-03-19 Thread Yakov Zhdanov
Vlad, did you have a chance to review my latest comments? Thanks! -- Yakov Zhdanov, Director R&D *GridGain Systems* www.gridgain.com 2016-03-06 12:21 GMT+03:00 Yakov Zhdanov : > Vlad and all (esp Val and Anton V.), > > I reviewed the PR. My comments are in the ticket. > > Anton V. there is a que

Re: Hibernate loadcache error?

2016-03-19 Thread vkulichenko
Ravi, Is it failing on the server node? How do you start it? Did you enable ignite-hibernate module? -Val -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Hibernate-loadcache-error-tp3534p3544.html Sent from the Apache Ignite Users mailing list archive at Nabble

Re: How to deploy CacheJdbcPojoStore on a cluster of "non-embedded" Ignite node?

2016-03-19 Thread tomli
Thanks Sisko, it works. -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/How-to-deploy-CacheJdbcPojoStore-on-a-cluster-of-non-embedded-Ignite-node-tp3555p3559.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Server node info when client disconnects

2016-03-19 Thread Alper Tekinalp
Hi Val. When I listen discovery events from server I get EVT_NODE_LEFT events even if client or server disconnects. If I listen events from client side if I have 1 server 1 client when I close server I get EVT_CLIENT_NODE_DISCONNECTED event and that event not contains any information about server

Re: How to deploy CacheJdbcPojoStore on a cluster of "non-embedded" Ignite node?

2016-03-19 Thread Vasiliy Sisko
Hello. Your server node should contains in classpath store factory class. To run example follow to next steps: 1. Execute steps from file IGNITE_HOME/examples/schema-import/README.txt 2. Build example by command “mvn clean package” in “$IGNITE_HOME/examples/schema-import” directory 3. copy “$I

Re: Reducing memory footprint

2016-03-19 Thread alexGalushka
Val, Yes you are correct. We have a Vert.x instance that embeds each node. --Alexander. -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Reducing-memory-footprint-tp3494p3588.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Nodes not rebalancing evenly

2016-03-19 Thread kberthelot
I've created a partitioned cache with the following configuration: cacheConfiguration.setCacheMode(CacheMode.PARTITIONED); cacheConfiguration.setName(CACHE_NAME); cacheConfiguration.setRebalanceMode(CacheRebalanceMode.SYNC); When I bring up a new node some of the keys get "rebalanced" to the

Re: Reducing memory footprint

2016-03-19 Thread alexGalushka
Val, Good point on the clients vs. server nodes, we might not necessarily need all of the 16 nodes as servers. As I understand from the Ignite doc on server vs. client nodes the major difference between server and client nodes is t

Re: How can I achieve performance

2016-03-19 Thread Andrew
Thank you for your reply. I'll try it. Sincerely, Andrew. -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/How-can-I-achieve-performance-tp3535p3553.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Server node info when client disconnects

2016-03-19 Thread vkulichenko
Hi Alper, You can listen for EVT_NODE_FAILED and EVT_NODE_LEFT to get notifications about nodes that leave topology. Will this work for you? -Val -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Re-Server-node-info-when-client-disconnects-tp3562p3565.html Sent f

Re: Ignite still support Scala API

2016-03-19 Thread vkulichenko
Hi Timothy, I believe you're referring to the Scalar: https://ignite.apache.org/releases/1.5.0.final/scaladoc/scalar/#org.apache.ignite.scalar.scalar$ It's still in the project, but it's a bit legacy and I would not recommend to use it unless there is no other way around. In vast majority (if not

Re: Semaphore blocking on tryAcquire() while holding a cache-lock

2016-03-19 Thread Dmitriy Setrakyan
On Fri, Mar 18, 2016 at 7:57 AM, Vladisav Jelisavcic wrote: > Hi Yakov, > > yes, thanks for the comments, I think everything should be ok now, > please review the PR and tell me if you think anything else is needed. > > Once ignite-642 is merged into master, > I'll submit a PR for IgniteReadWrite

Re: org.apache.ignite.IgniteCheckedException: Failed to register query type: TypeDescriptor

2016-03-19 Thread Vasiliy Sisko
I am always glad to help you. Writing to cache with sql string is not implemented yet, but issue to its implementation already exist. You can watch to this issue: https://issues.apache.org/jira/browse/IGNITE-2294 -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/

Re: org.apache.ignite.IgniteCheckedException: Failed to register query type: TypeDescriptor

2016-03-19 Thread Vasiliy Sisko
Also I notice that in generated index declaration database field name was used instead of java name. Please fix index field names to java name. -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/org-apache-ignite-IgniteCheckedException-Failed-to-register-query-ty

Re: Server node info when client disconnects

2016-03-19 Thread Alper Tekinalp
Hi. If I have 2 servers(serv1, serv2) and a client(cli1) and I connect serv1 with static ip configuration, when I close serv1 I get EVT_CLIENT_NODE_DISCONNECTED event from client side. If I close serv2 instead of serv1 this time I get EVT_NODE_LEFT event. As I test it seems that I should provide

Re: websession clustering problem

2016-03-19 Thread vkulichenko
Hi Slavo, ClassCastException is caused by this issue: https://issues.apache.org/jira/browse/IGNITE-2852 Essentially, you have a TreeMap somewhere and it can't be converted to binary object. As a workaround you can create a wrapper class that will contain this map as a field. Can you try this and

JMS Data Streamer: Not writing to data to cache when message received by Streamer

2016-03-19 Thread techbysample
Support, Given the following: Background: JBoss ESB 4.12(JMS messaging) Apache Ignite 1.5 final 1. To begin, I am starting to 2 server nodes with same configuration that comes with Ignite (ie: ..\apache-ignite-fabric-1.5.0.final-bin\\examples\\config\\example-ignite.xml) 2. Next I start

Re: JMS Data Streamer: Not writing to data to cache when message received by Streamer

2016-03-19 Thread Raul Kripalani
Hi, I see you're using clientMode=true. Could you try setting a low autoFlushFrequency on the streamer, say of value 1 (ms)? dataStreamer.autoFlushFrequency(1); Cheers, Raúl. Support, Given the following: Background: JBoss ESB 4.12(JMS messaging) Apache Ignite 1.5 final 1. To begin,

Re: Reducing memory footprint

2016-03-19 Thread alexGalushka
Val, What do you mean by this question "Do you have a node embedded the application"? Our real world application will be represented by a set of nodes which are the docker containers runing inside of the host VM (CentOS) which processes high volume of HTTP requests. --Alexander. -- View this

Re: websession clustering problem

2016-03-19 Thread boulik
Hi Val. I'm newbie about apache ignite and after reading OptimizedMarshaller javadoc i was happy, that classes may not implement serializable interface. I haven't found which class is referencing "GeneratedMethodAccessor246". It's not intentional. After reading this blog( https://blogs.oracl

Re: JMS Data Streamer: Not writing to data to cache when message received by Streamer

2016-03-19 Thread techbysample
That worked. Thank you very much. Would you please elaborate on how property is used? Does it imply that by default autoflushFrequency is disabled and DataStreamer will NOT write data to cache unless explicitly set? I basically modeled my JMSStreamer after the following documentation here: https

Re: about mr accelerator question.

2016-03-19 Thread Vladimir Ozerov
Hi, The fact that you can work with 29G cluster with only 8G of memory might be caused by the following things: 1) Your job doesn't use all data form cluster and hence caches only part of it. This is the most likely case. 2) You have eviction policy configured for IGFS data cache. 3) Or may be you

Re: different application code on two ignite nodes on same machine

2016-03-19 Thread vkulichenko
Hi Saurabh, I'm not sure I completely understand the use case, can you give more details? If application node creates objects, how is it possible that it doesn't have classes? -Val -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/different-application-code-on-tw