Comments (2)
Hi @MASARIwot
You can use HazelcastJsonValue
to store JSON values in Hazelcast IMap. No need for a custom serializer for this. Check out this example: https://github.com/hazelcast/hazelcast-python-client/blob/master/examples/pandas/pandas_example.py.
If the fields of your object is known and stable, then it's better if you use Compact serialization which is our newest serialization mechanism.
I believe following docs can help:
https://hazelcast.com/blog/introduction-to-compact-serialization/
from hazelcast-python-client.
The issue here is the default serialiser can't handle special characters e.g. รค
(\u00e4
) and raises PythonObjectSerializer
. The workaround is to use json.dumps
serialisation that does handle it, but this is merely a workaround, which is the same as examples (df.to_json()
).
I get it, that using pickle.dumps
means you can pickle any Python object (that may not be JSON serialisable), if that is the intention please add support for non English characters.
In general using pickle for serialisation is a bad idea. For example see data protocols (here) so python versions need to match, and there are no guarantees of backwards compatibility. Moreover, as pickle doc says at the top The pickle module is not secure. Only unpickle data you trust.
clearly clients can can deserialise data stored by other clients in hazelcast, which makes it a path for malicious code execution.
from hazelcast-python-client.
Related Issues (20)
- Unable to recreate an IAtomicLong object with the same name [AtomicValue[myIAtomicLong] is already destroyed!] HOT 1
- Extreme slow down when using Map#lock/unlock from multiple threads [API-1968] HOT 2
- [TRACKING ISSUE] Do not try to connect to the old member list after the cluster changes [API-2038] HOT 1
- how to define long varchar in hazelcast python client? HOT 7
- [TRACKING ISSUE] Introduce a property to control the reconnection behavior of the client [API-2036]
- Reporting a vulnerability
- Make HazelcastClient context manager aware (PEP-343)
- [TRACKING ISSUE] [TPC] Allow TLS sockets in TPC Bootstrapping [HZ-2764]
- Potential memory leak: lock not removed from proxies when the lock is destroyed [API-2129] HOT 1
- [TRACKING ISSUE] Make tpcEnable for client configurable through system property.
- [TRACKING ISSUE] Promote alto auth codecs to stable [API-2134]
- [TRACKING ISSUE] TPC default to 1 connection
- [TRACKING ISSUE] Fix the `ReliableTopicConfig.setName` method to allow empty names [HZ-2274] [API-2172]
- [TRACKING ISSUE] Continue trying if initial membership event retrieval fails and client is failover [API-2171]
- [TRACKING ISSUE] NearCachedClientMapProxy getAsync fix double invocation [API-1811]
- `linter_docs_mypy.yaml` action fails due to `Sphinx version error`
- Python client serializes paging preciate differently than Java and .Net causing 5.4 compatibility breaks
- [FEATURE] Create anaconda python package
- Error while trying to connect to IPv6 cluster
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hazelcast-python-client.