Re: Plug in custom binary serializer for Ignite.Net

2016-06-23 Thread mrinalkamboj
My code is based on the details on the following link: https://apacheignite-net.readme.io/docs/serialization Here the Address entity implements IBinarizable interface Can you please confirm that understanding of the document is not correct, or I am missing some part I am just implementing the

DataStreamer pool

2016-06-23 Thread Dmitry Karachentsev
Hi igniters! Using data streamer from compute tasks may cause starvation, because both operations are executed in the same public pool. Is it possible to add configuration for separate thread pool for data streamer? Thanks! Dmitry.

Re: transaction not timing out

2016-06-23 Thread Denis Magda
Hi Binti, Probably the issue is related to the fact that you’re working with the cache inside of CacheStore.writeAll method. Have you tried to use PESSIMISTIC/REPEATABLE_READ mode? Is the situation the same? Please attach thread dumps from all the nodes after the hang is reproduced one more tim

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

2016-06-23 Thread Denis Magda
Hi Gareth, To control data location/disposal you need to write your own AffinityFunction (just refer to this interface). Using AffinityFunction you can select a range of nodes that will hold primary replicas and a range of nodes that will be stored the rest of data. Probably even more simple s

Re: performance issues

2016-06-23 Thread Denis Magda
Hi Pradeep, Member-member (server-server) performance is better than client-server one in the scenario because in the first case roughly a half of data will be stored on the server that executes the benchmark (meaning that there won’t be I/O at all). While in case with client-server case the cl

Re: How do I know the cache rebalance is finished?

2016-06-23 Thread Andrew
Hello, Denis. Did you check my sample code? And I have another question. On testing with my sample code above, when a new node is joined, as I don't complete executing received event, ignite does not finish rebalance. For example, If I put a line of code to sample test code which I attached befo

Re: Ignite support for .net and Java

2016-06-23 Thread gaurangpatelng
Cause: Local node's binary configuration is not equal to remote node's binary configuration Ignite .NET & java Solution: set below setting in server. BinaryConfiguration bCfg = new BinaryConfiguration(); bCfg.setCompactFooter(false); bCfg.setNameMapper(new BinaryBasicNameMapper(true)); bCfg.setI

Re: SQL Queries - propagate "new" CacheConfiguration.queryEntities over the cluster on an already started cache

2016-06-23 Thread Manu
Done. Time to :P -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/SQL-Queries-propagate-new-CacheConfiguration-queryEntities-over-the-cluster-on-an-already-started-cae-tp5802p5851.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: How to accelerate the query speed in Partitioned Mode

2016-06-23 Thread AndreyVel
Could you tell more details about result size, cache size. Does cache have index? -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/How-to-accelerate-the-query-speed-in-Partitioned-Mode-tp5826p5850.html Sent from the Apache Ignite Users mailing list archive at Nabb

Re: Adding a third node to REPLICATED cluster fails to get correct number of elements

2016-06-23 Thread Kristian Rosenvold
I assume the use case of passing the hashCode is to be able to put the object directly into a hashmap bucket without constructing its state. Would it be realistic to do something like this: The first time *ever* an object arrives for a given cache (or when the first object arrives in the cache emp

Re: System.exit() not exiting cleanly (locked on IgnitionEx$IgniteNamedInstance)

2016-06-23 Thread bintisepaha
I will give that a try to set the port to -1. Could you explain why that might be causing this? I tried with -DIGNITE_NO_SHUTDOWN_HOOK=true and that lets us exit the process cleanly. This was not an issue for last 6 weeks and it suddenly became an issue for us this week and I am trying to underst

Re: Ignite with Cassandra and SSL

2016-06-23 Thread ChickyDutt
Attached is my connection-setting.xml file. I have enabled the useSSL property to true. Can you show me the way to refer the Cassandra node keystore file and the password through SSLOptions and then include it in the attached file. Please let me know if you need any further information. Regards.

Re: System.exit() not exiting cleanly (locked on IgnitionEx$IgniteNamedInstance)

2016-06-23 Thread AndreyVel
Hello bintisepaha, Try disable shared memory in config file TcpCommunicationSpi/setSharedMemoryPort(-1) Maybe Runtime.getRuntime().halt(int) can terminate the program. -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/System-exit-not-exiting-cleanly-locked-on-Ign

Re: Pre Hook before actual Ignite commit

2016-06-23 Thread amitpa
Okay...I think in our case the CacheSToreFactory had an instance of DataSource so that might have been the problem, let me try that -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Pre-Hook-before-actual-Ignite-commit-tp5679p5845.html Sent from the Apache Ignite U

Re: schema import example ClassNotFoundException: org.apache.ignite.schema.H2DataSourceFactory

2016-06-23 Thread Alexei Scherbakov
Hi, I was not able to reproduce your problem using simple code like: public static void main(String[] args) throws ClassNotFoundException, SQLException { // Register JDBC driver. Class.forName("org.apache.ignite.IgniteJdbcDriver"); Connection conn = DriverManager.getConnection("jdbc:

Re: Ignite with Cassandra and SSL

2016-06-23 Thread ChickyDutt
A gentle reminder. Could you please help me out on this? How do I pass the Keystore and the password in SSLOptions in Cassandra.DataSource? Regards, Ashish Sharma On Fri, Jun 17, 2016 at 12:53 AM, Denis Magda [via Apache Ignite Users] < ml-node+s70518n5700...@n6.nabble.com> wrote: > Igor R., Al

Re: Enable Binary Reflective Serializer in the app.config

2016-06-23 Thread Pavel Tupitsyn
Please provide the exception details. On Thu, Jun 23, 2016 at 4:24 PM, mrinalkamboj wrote: > Thanks it works but it doesn't recognize the rawMode="true", this > configuration is not available and leads to exception > > > > -- > View this message in context: > http://apache-ignite-users.70518.x6.

Jetty configuration for adding new Handler

2016-06-23 Thread Saurabh Sharma
Hi, We are using ignite-rest-http module to make Rest http calls. For that we have included ignite-rest-http dependency in our ignite module and are able to make http calls successfully. Now when we are trying to configure Jetty's RewriteHandler to set HeaderPatternRule to set "Access-Control-

Re: Plug in custom binary serializer for Ignite.Net

2016-06-23 Thread Pavel Tupitsyn
BinaryReader and BinaryWriter implement internal Ignite data exchange protocol. It can not be customized. You can implement your own serializer (IBinarySerializer interface, BinaryTypeConfiguration.Serializer property). Use Protobuf inside your custom IBinarySerializer code to produce a byte array

RE: isolate/group ignite instances on same machine based on name

2016-06-23 Thread Pradeep Badiger
Thanks Denis. From: Denis Magda [mailto:dma...@gridgain.com] Sent: Thursday, June 23, 2016 4:07 AM To: user@ignite.apache.org Subject: Re: isolate/group ignite instances on same machine based on name Hi, No, there is no way to isolate ignite instances by name. The name is just used for convenie

Re: Enable Binary Reflective Serializer in the app.config

2016-06-23 Thread mrinalkamboj
Thanks it works but it doesn't recognize the rawMode="true", this configuration is not available and leads to exception -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Enable-Binary-Reflective-Serializer-in-the-app-config-tp5819p5838.html Sent from the Apache Ign

Re: How to accelerate the query speed in Partitioned Mode

2016-06-23 Thread AndreyVel
Hello ght230 Do you use setAffinityMapper to put selected rows in one partition? cacheCfg.setAffinityMapper(new AffinityKeyMapper() { @Override public Object affinityKey(Object key) { if (key instanceof PersonKey){ PersonKey det =

Plug in custom binary serializer for Ignite.Net

2016-06-23 Thread mrinalkamboj
Based on documentation, I have tried following to plug in the Protobuf.Net, using following steps. - Implemented the interface IBinarizable for the OrderEntity - Implemented the class, with all the relevant methods public class CustomBinaryReaderWriter : IBinaryWriter, IBinaryReader Now I am not

Re: Ignite client reads old metadata even after cache is destroyed and recreated

2016-06-23 Thread pragmaticbigdata
Ok. Thanks for your inputs. I understand the binary object better than before. Few follow up questions. About the second point > 2. It seems ignite starts reading the metadata in the background even > before > Ignite instance is created. Where does it read the metadata from? > Metadata is acc

Re: SQL Queries - propagate "new" CacheConfiguration.queryEntities over the cluster on an already started cache

2016-06-23 Thread Manu
Thanks! I almost have the change, queryEntities changes are propagated on H2 tables and index tree over the cluster... preserving old indexes. I'll let you know when done... working on version 1.6.0 -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/SQL-Queries-pro

Re: SQL Queries - propagate "new" CacheConfiguration.queryEntities over the cluster on an already started cache

2016-06-23 Thread Alexei Scherbakov
Hi, Please properly subscribe to the user list. All you need to do is send an email to ì user-subscr...@ignite.apache.orgî and follow simple instructions in the reply. Unfortunately, DDL is not currently supported by Ignite, but may appear in next releases. Probably someone on dev list knows mor

Re: How to implement SSL/TLS in Ignite using .NET code.

2016-06-23 Thread ptupitsyn
Hi, Please properly subscribe to the user list (this way we will not have to manually approve your emails). All you need to do is send an email to ì user-subscr...@ignite.apache.orgî and follow simple instructions in the reply. --- You can configure SSL in Ignite.NET via Spring XML (IgniteConfig

Re: Ignite support for .net and Java Cross Platform

2016-06-23 Thread ptupitsyn
Hi, Please properly subscribe to the user list (this way we will not have to manually approve your emails). All you need to do is send an email to user-subscr...@ignite.apache.org and follow simple instructions in the reply. --- Ignition.allGrids returns a list of nodes started within current pr

Re: Difference between TcpCommunicationSpi(CommunicationSpi) and TcpDiscoverySpi(DiscoverySpi)

2016-06-23 Thread Denis Magda
Hi, Please properly subscribe to the user list (this way we will not have to manually approve your emails). All you need to do is send an email to ì user-subscr...@ignite.apache.orgî and follow simple instructions in the reply. As I see you have already asked the same question on StackOverflow a

Re: Enable Binary Reflective Serializer in the app.config

2016-06-23 Thread Pavel Tupitsyn
Hi, you can do it like this: http://ignite.apache.org/schema/dotnet/IgniteConfigurationSection";> On Thu, Jun 23, 2016 at 11:06 AM, mrinalkamboj wrote: > What is the App.Config replacement to enable the following c# code in the > documents or this can be only done in C# code > > var bin

Re: Regarding Ingite cluster setup

2016-06-23 Thread Denis Magda
Hi, Please properly subscribe to the user list (this way we will not have to manually approve your emails). All you need to do is send an email to ì user-subscr...@ignite.apache.orgî and follow simple instructions in the reply. Can each machine see each other using these interfaces below? 10.205.

How to accelerate the query speed in Partitioned Mode

2016-06-23 Thread ght230
I want to do simple SQL query such "select ... from ... where id = ?" on cache. But the amount of data to be stored in the cache is quite large, I have to save it to several nodes with Partitioned Mode. The result is: the more server nodes, the slower the query. How to accelerate the query spe

Re: Adding a third node to REPLICATED cluster fails to get correct number of elements

2016-06-23 Thread Denis Magda
Seems that this.getClass().hashCode() executed on different VMs can produce different result (but it should always produce the same result on a single VM which doesn’t violate JVM specification). Ignite requires the hashCode of a key to be consistent cluster-wide. So Ignite has even more stronge

Re: transaction not timing out

2016-06-23 Thread Denis Magda
Hi Binti, I’ll take a look and reply soon, sorry for delay. — Denis > On Jun 22, 2016, at 8:28 PM, bintisepaha wrote: > > Denis, did you get a chance to look at this? > any help will be greatly appreciated. > > Thanks, > Binti > > > > -- > View this message in context: > http://apache-ign

Re: Ignite client reads old metadata even after cache is destroyed and recreated

2016-06-23 Thread Denis Magda
Hi Amit, In fact this is expected behavior because once an object is serialized and stored in a cache it’s metadata is placed in one of the internal caches and won’t be cleaned out of there until the cluster is fully restarted. The reason of this is because an object type is not bound to a part

Re: Pre Hook before actual Ignite commit

2016-06-23 Thread Denis Magda
Hi, Cache store factory and cache store session listener factory must be serializable. If you make them serializable and create a cache store and cache store instances upon a call to this factories then there won’t be any need to make serializable data source. If you need more assistance on th

Re: Adding a third node to REPLICATED cluster fails to get correct number of elements

2016-06-23 Thread Kristian Rosenvold
We think the issue may regard transportability of the hashCode across nodes, because the hashcode in question included the hashcode of a class (in other words this.getClass().hashCode() as opposed to the more robust this.getClass().getName().hashCode()) Does ignite require the hashCode of a key to

Re: More nodes spend more time

2016-06-23 Thread Vladislav Pyatkov
Hi, Please, can you explain are comparing? In first time you run client and server in same machine. In second time you run client and one server in same machine and one server in another. Is it correct? If that true. In first time client communicate with server through shared memory (it quite fas

Enable Binary Reflective Serializer in the app.config

2016-06-23 Thread mrinalkamboj
What is the App.Config replacement to enable the following c# code in the documents or this can be only done in C# code var binaryConfiguration = new BinaryConfiguration { TypeConfigurations = new[] { new BinaryTypeConfiguration(typeof(MyClass)) { Serializer = n

Re: How do i expose a cluster singleton service through REST

2016-06-23 Thread Denis Magda
Hi, You can refer to this example that showcase how to start and use devices https://github.com/apache/ignite/blob/master/examples/src/main/java/org/apache/ignite/examples/servicegrid/ServicesExample.java

Re: isolate/group ignite instances on same machine based on name

2016-06-23 Thread Denis Magda
Hi, No, there is no way to isolate ignite instances by name. The name is just used for convenience by application code. The isolation is achieved by using different configuration for communication and discovery SPIs as shown here https://apacheignite.readme.io/v1.6/docs/cluster-config#isolated-i

Re: Adding a third node to REPLICATED cluster fails to get correct number of elements

2016-06-23 Thread Denis Magda
Hi Kristian, Could you share the source of a class that has inconsistent equals/hashCode implementation? Probably we will be able to detect your case internally somehow and print a warning. — Denis > On Jun 17, 2016, at 10:27 PM, Kristian Rosenvold > wrote: > > This whole issue was caused b