hazelcast

Hazelcast ClassNotFoundError on dedicated Member for HazelClient Replicated Map remove

喜你入骨 提交于 2019-12-24 19:02:02
问题 I recently had trouble with Hazelcast using ReplicatedMaps in a Dedicated Server / Hazelcast Client environment. I made a Stackoverflow post for it and a Hazelcast Ticket was made for it. Hazelcast ClassNotFound using Near Cache in Client I continued to work in my Environment and stumbled on another Error. I am not sure if it will be covered by a fix for my other problem so I post a new question here: My Environment is: I got a Dedicated Hazelcast 3.9.3 Server with a slightly modified

Camel HazelCast component throwing HazelcastSerializationException

ⅰ亾dé卋堺 提交于 2019-12-24 17:48:00
问题 I have the following route in Camel: <route> <from uri="servlet:///user?matchOnUriPrefix=true"/> <setHeader headerName="cachename"> <simple>${header.CamelHttpPath.split("/")[1]}</simple> </setHeader> <setHeader headerName="key1"> <simple>${header.CamelHttpPath.split("/")[2]}</simple> </setHeader> <to uri="direct:put"/> </route> <route> <from uri="direct:put" /> <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" --> <setHeader headerName=

hazelcast not getting MapStore from spring beans (autowired dependency is null)

女生的网名这么多〃 提交于 2019-12-24 17:34:09
问题 I am implementing the hazelcast map store for persistence. But could not autowired spring beans(DataSource below) into the hazelcast mapstore object (meaning hazelcast not getting the map store object from spring beans). I read that hazelcast supports spring DI. What am i missing ? Below is my partial map store code If I get the bean from context using get bean like below MySQLStore store = (MySQLStore)context.getBean(MySQLStore.class); I get mysql store with the datasource dependency

Getting SerializationException on hazelcast management center Console with custom objects used as key, value in map

不羁岁月 提交于 2019-12-24 09:27:03
问题 I have created a map in Hazelcast cluster. I can see the increased count of Entries on Hazelcast management center UI for my map. On console I can also get the size using m.size command. I know for primitive wrapper classes like Integer and String I can use m.get command to see the values for any key. I am using custom objects as key and value for map, so I am not able to use m.keys or m.values command on console. It gives Error with HazelcastSerializationException. What should I change on

Hazelcast near-cache eviction doesn't work

喜欢而已 提交于 2019-12-24 07:26:44
问题 I'm using Hazelcast 3.7.4, and I have both lite and non-lite members. On my lite members I'm setting near-cache as follows: NearCacheConfig nearCacheConfig = new NearCacheConfig(0, cacheSize, EvictionPolicy.LRU.name(), 0, true, InMemoryFormat.OBJECT); config.getMapConfig(mapName).setNearCacheConfig(nearCacheConfig); I have configured entry listener on my lite member and could verify that it is called on change. Moreover, the old and new value content is correct. But when I'm trying to get the

Hazelcast distributed map processor execution on a single node

女生的网名这么多〃 提交于 2019-12-24 06:20:36
问题 I use Hazelcast within Spring Boot MVC application that supports high availability, it has 4 instances of the same logic which run as active-active. All of the 4 share one distributed map of objects. As a result of user action (access to specific controller) I trigger a EntryProcessor (map.submitToKey) on the shared map. I thought that such action would run the processor only once, on a single node, but instead all of the 4 nodes run the same processor at the same time. Is there an option to

Not able to retrieve element from Hazelcast's Map if using custom object as a key

╄→尐↘猪︶ㄣ 提交于 2019-12-24 05:46:04
问题 I am using Hazelast Map and trying to store Objects against key which is object of my custom class i.e. HMapKey . Here is snippet of HMapKey class. public class HMapKey implements Serializable{ private String keyCode; private long time; public HMapKey(String keyCode, long time) { this.keyCode = keyCode; this.time = time; } public String getKeyCode() { return keyCode; } public void setKeyCode(String keyCode) { this.keyCode = keyCode; } public long getTime() { return time; } public void setTime

Exception while trying to make Hazelcast cluster work with JCache compliant client

岁酱吖の 提交于 2019-12-24 03:01:22
问题 I am trying to make a small Hazelcast cluster cooperate with simple JCache compliant client. Unfortunately, I get the exception: "java.lang.IllegalArgumentException: No service registered with name: hz:impl:cacheService". I would appreciate a clue how to fix that. I am using version 3.4 of Hazelcast (got the same behavior with 3.3 and 3.4-EA). Here is a snippet from hazelcast-client.xml: <group> <name>group1</name> </group> <network> <cluster-members> <address>192.168.56.10:5701</address>

Exception while trying to make Hazelcast cluster work with JCache compliant client

三世轮回 提交于 2019-12-24 03:01:20
问题 I am trying to make a small Hazelcast cluster cooperate with simple JCache compliant client. Unfortunately, I get the exception: "java.lang.IllegalArgumentException: No service registered with name: hz:impl:cacheService". I would appreciate a clue how to fix that. I am using version 3.4 of Hazelcast (got the same behavior with 3.3 and 3.4-EA). Here is a snippet from hazelcast-client.xml: <group> <name>group1</name> </group> <network> <cluster-members> <address>192.168.56.10:5701</address>

Setting TTL/Record Expiry in hazelcast

夙愿已清 提交于 2019-12-23 17:51:45
问题 Is there any way to set TTL per record in hazelcast DB?Preferably in Map or Ringbuffer. 回答1: I guess you're looking for that: IMap::put(Key, Value, TTL, TimeUnit) IMap: http://docs.hazelcast.org/docs/3.6/manual/html-single/index.html#evicting-specific-entries http://docs.hazelcast.org/docs/3.6/javadoc/com/hazelcast/core/IMap.html#put(K,%20V,%20long,%20java.util.concurrent.TimeUnit) http://docs.hazelcast.org/docs/3.6/javadoc/com/hazelcast/core/IMap.html#putAsync(K,%20V,%20long,%20java.util