--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/redis-db/3b76e927-4581-4567-ad56-a4df21580419%40googlegroups.com.
Itamar Haber ![]() |
Disclaimer
The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful.
This email has been scanned for viruses and malware, and may have been automatically archived by Mimecast Ltd, an innovator in Software as a Service (SaaS) for business. Providing a safer and more useful place for your human generated data. Specializing in; Security, archiving and compliance. To find out more Click Here.
Hi Jasleen,Creating the cluster is done by installing the machines (servers) and starting up Redis on them in cluster mode. Once the cluster is up, you can connect to it from your code. The error you're getting indicates that the redis-py package (e.g. `pip install redis`) is not installed. The redis-py package is a dependency of the redis-cluster-py package, so I'm guessing redis-cluster-py wasn't installed correctly in your environment.Cheers,
On Thu, Apr 30, 2020 at 11:50 AM Jasleen Kaur <jasleen...@gmail.com> wrote:
Hi,--Can someone tell me how to create a redis cluster with 6 machines(3 masters and 3 slaves) using redis-py-cluster?I tried creating a cluster by installing redis from source on all the 6 machines, but when i try to run my python scripts on it using my anaconda environment(which has other dependencies installed needed for running my python scripts) , it doesn't seem to work and i get an error saying:"No module name redis: import redis"Thanks
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/redis-db/3b76e927-4581-4567-ad56-a4df21580419%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/redis-db/0da26e3f-b1c4-41d8-a4a0-9685b80ab7c3%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/redis-db/5ADEF9AD-6B63-436C-9881-6157683D6AE0%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/redis-db/0da26e3f-b1c4-41d8-a4a0-9685b80ab7c3%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/redis-db/0da26e3f-b1c4-41d8-a4a0-9685b80ab7c3%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/redis-db/5ADEF9AD-6B63-436C-9881-6157683D6AE0%40gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/redis-db/fbcb658a-6aa4-4b35-ac16-e504cc6e7aeb%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/redis-db/fbcb658a-6aa4-4b35-ac16-e504cc6e7aeb%40googlegroups.com.
Latest stable release from pypi
$ pip install redis-py-cluster
This major version of redis-py-cluster supports redis-py >=3.0.0, <3.5.0.
Small sample script that shows how to get started with RedisCluster. It can also be found in examples/basic.py
>>> from rediscluster import RedisCluster >>> # Requires at least one node for cluster discovery. Multiple nodes is recommended. >>> startup_nodes = [{"host": "127.0.0.1", "port": "7000"}] >>> rc = RedisCluster(startup_nodes=startup_nodes, decode_responses=True) >>> rc.set("foo", "bar") True >>> print(rc.get("foo")) 'bar'
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/redis-db/3c1bde57-d482-4bc0-8449-d6f41cb35934%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/redis-db/3c1bde57-d482-4bc0-8449-d6f41cb35934%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/redis-db/1c34a573-9210-424a-9e89-600dbc5161b4%40googlegroups.com.
from rediscluster import RedisCluster >>> # Requires at least one node for cluster discovery. Multiple nodes is recommended. >>> startup_nodes = [{"host": "127.0.0.1", "port": "7000"}] >>> rc = RedisCluster(startup_nodes=startup_nodes, decode_responses=True) >>> rc.set("foo", "bar") True >>> print(rc.get("foo")) 'bar'
To view this discussion on the web visit https://groups.google.com/d/msgid/redis-db/1c34a573-9210-424a-9e89-600dbc5161b4%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/redis-db/7f815888-3dcc-49b2-b9bb-9a5455b508e3%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/redis-db/7f815888-3dcc-49b2-b9bb-9a5455b508e3%40googlegroups.com.