hazelcast

hazelcast ScheduledExecutorService lost tasks after node shutdown

北城以北 提交于 2021-02-20 02:58:06
问题 I'm trying to use hazelcast ScheduledExecutorService to execute some periodic tasks. I'm using hazelcast 3.8.1. I start one node and then the other, and the tasks are distributed between both nodes and properly executed. If I shutdown the first node, then the second one will start to execute the periodic tasks that were previously on the first node. The problem is that, if I stop the second node instead of the first, then its tasks are not rescheduled to the first one. This happens even if I

How to instantiate object(Jdbc template) inside Hazelcast Map store

雨燕双飞 提交于 2021-02-17 06:06:34
问题 I'm trying to Autowire jdbc template inside mapStore.. but I'm getting null pointer exception. I worked on so many examples but sill not able to resolve this issue.. Here is my main class import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class TestCacheApplication { public static void main(String[] args) { SpringApplication.run(TestCacheApplication.class, args); System.err.println(".....

How to instantiate object(Jdbc template) inside Hazelcast Map store

落爺英雄遲暮 提交于 2021-02-17 06:05:52
问题 I'm trying to Autowire jdbc template inside mapStore.. but I'm getting null pointer exception. I worked on so many examples but sill not able to resolve this issue.. Here is my main class import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class TestCacheApplication { public static void main(String[] args) { SpringApplication.run(TestCacheApplication.class, args); System.err.println(".....

How to instantiate object(Jdbc template) inside Hazelcast Map store

别等时光非礼了梦想. 提交于 2021-02-17 06:05:25
问题 I'm trying to Autowire jdbc template inside mapStore.. but I'm getting null pointer exception. I worked on so many examples but sill not able to resolve this issue.. Here is my main class import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class TestCacheApplication { public static void main(String[] args) { SpringApplication.run(TestCacheApplication.class, args); System.err.println(".....

Loading sql table data into hazelcast

戏子无情 提交于 2021-02-10 14:25:03
问题 I'm using hazelcast IMap to store my application data. I'm facing small issue. Problem explanation:- When I start the spring-boot application I'm loading database table data into hazelcast. example:- HazelcastInstance hazelCast = Hazelcast.getOrCreateHazelcastInstance(HazelcastConfig.getConfig()); IMap<Integer, String> mapInstance= hazelCast.getMap("data"); mapInstance.put(1,"value1"); mapInstance.put(2,"value2"); mapInstance.put(3,"value3"); mapInstance.put(4,"value4"); But when I fetch same

Loading sql table data into hazelcast

ぐ巨炮叔叔 提交于 2021-02-10 14:22:16
问题 I'm using hazelcast IMap to store my application data. I'm facing small issue. Problem explanation:- When I start the spring-boot application I'm loading database table data into hazelcast. example:- HazelcastInstance hazelCast = Hazelcast.getOrCreateHazelcastInstance(HazelcastConfig.getConfig()); IMap<Integer, String> mapInstance= hazelCast.getMap("data"); mapInstance.put(1,"value1"); mapInstance.put(2,"value2"); mapInstance.put(3,"value3"); mapInstance.put(4,"value4"); But when I fetch same

Hazelcast Jet and Node.JS client serialization issue

*爱你&永不变心* 提交于 2021-02-10 06:26:13
问题 I am having Jet 0.6 as a backup and some Node.JS process with hazelcast-nodejs-client 0.8.0 installed. I am trying to push to map an object from Node process that is exactly a reflection of similar one on the Jet side. However I don't understand how to make sure on Jet's side this JS object will be serialized/deserialized respectively. I have a feeling I need to indicate to Jet that this JSON object is meant to be Data POJO and proper serialization/deserialization should be used. On the node

Does Istio support hazelcast-kubernetes?

江枫思渺然 提交于 2021-02-09 11:49:49
问题 I am using istio 1.0.2 version with istio-demo-auth .yaml, and I used hazelcast-kubernetes in the k8s cluster environment. I was using hazelcast-kubernetes in the k8s cluster before, when scale two hazelcast-kubernetes StatefulSet, they can join together, and working with my services. Not using istio that time. Recently our services injected with istio. I try to inject the hazelcast-kubernetes with istio, it was running, but those two hazelcast-kubernetes cannot join together. Do you know how

Replicated caching solutions compatible with AWS

核能气质少年 提交于 2021-02-08 09:52:43
问题 My use case is as follow: We have about 500 servers running in an autoscaling EC2 cluster that need to access the same configuration data (layed out in a key/value fashion) several million times per second. The configuration data isn't very large (1 or 2 GBs) and doesn't change much (a few dozen updates/deletes/inserts per minute during peak time). Latency is critical for us, so the data needs to be replicated and kept in memory on every single instance running our application. Eventual

@cacheput is not updating the existing cache

戏子无情 提交于 2021-02-07 14:15:05
问题 I am working with Spring 4 and Hazelcast 3.2. I am trying to add a new record to existing cache with below code. somehow cache is not getting updated and at the same time I don't see any errors also. below is the code snippet for reference. Note:- Cacheable is working fine, only cacheput is not working. Please throw light on this @SuppressWarnings("unchecked")`enter code here` @Transactional(readOnly = true, propagation = Propagation.REQUIRED) @Cacheable(value="user-role-data") public List