hazelcast

Hazelcast Spring (boot) JPA - saving a new entity

℡╲_俬逩灬. 提交于 2019-12-12 03:39:39
问题 I have an existing client/server, Spring boot project that uses JPA. I followed the spring-data-jpa-hazelcast-migration sample to create a Hazelcast client & server. There is existing data in a db that populates the Hazelcast Map. Each of these db entries has an Integer id which becomes the Map key. During this loadAllKeys() on the server, I populate a Set which is distributed/managed by Hazelcast; in the MemCenter UI, I see the populated Map & the Set containing the expected number of

Hazelcast: Issue while adding index

夙愿已清 提交于 2019-12-12 02:54:45
问题 I have a hazelcast instance whose key is of type MyObject and value is an enum. Let's say one of the attributes of MyObject class is date which is of type java.sql.Date . class MyObject { private Date date; public Date getDate() { return date; } public void setDate(Date date) { this.date = date } } public enum MyEnum { TEST_ENUM; } Also I am using predicate to filter on the keys retrieve the enum value. For ex: EntryObject entryObject = new PredicateBuilder().getEntryObject(); PredicateBuiler

Distributed Event Processing

最后都变了- 提交于 2019-12-12 02:47:21
问题 Hi this might be a bit of a noob question, but I can't seem to find an appropriate solution for the following use case: On the backend we have x number of services distributed across VMs, each providing the same service (distributed replication). These services are all listening on a distributed event bus (such as Hazelcast). When an event arrives, say GetDataA, the EventBus infrastructure sends the event to each of the back end services one at a time. If a service decides its going to

Spring Boot webapp with embedded vertx fails to start

不问归期 提交于 2019-12-12 02:45:46
问题 I am trying to start a Spring Boot webapp(executable war) with embedded clustered vertx. It fails with below exception. java.lang.IllegalArgumentException: PortableFactory[-14] is already registered! com.hazelcast.concurrent.countdownlatch.client.CountDownLatchPortableHook$1@738ae532 -> com.hazelcast.concurrent.countdownlatch.client.CountDownLatchPortableHook$1@60d09d45 at com.hazelcast.nio.serialization.PortableHookLoader.register(PortableHookLoader.java:84) at com.hazelcast.nio

Web Session Replication with HazelCast in Grails - HazelcastSerializationException

南楼画角 提交于 2019-12-11 23:58:08
问题 I'm trying to do session replication with hazelcast in grails application as given in Hazelcast docs. Grails version: 1.2.1 Hazelcast: 2.5.1 (Opensource edition) I'm getting com.hazelcast.nio.HazelcastSerializationException: java.io.NotSerializableException: org.springframework.beans.factory.annotation.QualifierAnnotationAutowireCandidateResolver when login. All the domain objects that are added to session are serialized. But org.springframework.beans.factory.annotation

Does Hazelcast store metadata information?

筅森魡賤 提交于 2019-12-11 23:47:52
问题 As part of storing data. Does hazelcast stores metadata information like RIAK?. If so, whether we can store custom metadata information?. Thanks in advance Dinesh 回答1: What kind of metadata stores riak and what kind of data do you want to store? We store some internal metadata like last access timestamp or hits and similar but this probably not what you're asking for. We also do not have user custom metadata depending on what you expect to store. Custom metadata can for sure be stored in

vertx clustered mode hazelcast log config on linux

会有一股神秘感。 提交于 2019-12-11 20:14:24
问题 Using Eclipse on Windows, a vertx Verticle with a misconfigured cluster.xml shows the following error in the Eclipse console: 11:46:18.536 [hz._hzInstance_1_dev.generic-operation.thread-0] ERROR com.hazelcast.cluster - [192.168.25.8]:5701 [dev] [3.5.2] Node could not join cluster. A Configuration mismatch was detected: Incompatible joiners! expected: multicast, found: tcp-ip Node is going to shutdown now! 11:46:22.529 [vert.x-worker-thread-0] ERROR com.hazelcast.cluster.impl.TcpIpJoiner -

Hazelcast ClassNotFound using Near Cache in Client

天大地大妈咪最大 提交于 2019-12-11 18:08:22
问题 I try to use Hazelcast (3.9.2, 3.11 no difference) in the following way: I got Hazelcast servers (members). I run them dedicated, not embedded. I do not want to teach the Hazelcast members the classes I want to store within them. I used the bundled hazelcast.xml file and did the following addon (3.9.2) <replicatedmap name="default"> <in-memory-format>BINARY</in-memory-format> <statistics-enabled>true</statistics-enabled> </replicatedmap> I also activated TCP, not Multicast (true/false) That

Spring webflux session management

早过忘川 提交于 2019-12-11 14:53:08
问题 I am using Spring boot 2 with spring webflux running on netty. I would like to add session management without needing to have a backing database or redis server (so Spring Session doesn't seem to be a solution here). I could use WebSession in my controllers, but then I would need to enable sticky sessions on my load balancer, which I would prefer to avoid. What I would like is one of the following: Client side session like in Play framework (session is stored as a cookie and added onto each

Time Based Eviction in Hazelcast

我们两清 提交于 2019-12-11 14:09:31
问题 I am working on a requirement where i'd have N hazelcast instances running in a cluster and also have kafka consumers running on all of them. Now the ask is, each message that comes in on kafka, should be added to the distributed map and the entry must be evicted every 20 seconds, which i did by using a combination of time to live and max-idle seconds parameters in the map config. But what i really want is that when the entry is evicted, only one of the nodes should process it, right now, the