I'm trying to work with Apache Ignite and use it to cache data from Bigquery. To understand how it works, I started with the steps here: https://apacheignite.readme.io/docs/docker-deployment to get the Ignite server up and running. Then, I followed the steps here: https://apacheignite.readme.io/docs/memcached-support#python just to see if I could see what I was supposed to and then move on to more involved coding.
However, with the sample code provided, I run into this error:
ConnectionErrorTraceback (most recent call last)
<ipython-input-11-44ed3158fbe9> in <module>()
3 client = pylibmc.Client (["127.0.0.1:11211"], binary=True)
4
----> 5 client.set("key", "val")
6
7 print "Value for 'key': %s"%client.get("key")
ConnectionError: error 3 from memcached_set: (0x27a87b0) CONNECTION FAILURE(Connection refused), host: 127.0.0.1:11211 -> libmemcached/connect.cc:156
What am I doing wrong?
How I connect to GCP:
- I have Google's Datalab set up as a VM. I start the VM.
- I use the Secure Shell extension to port forward and connect to the VM.
- I start the Apache Ignite server using the steps in the first link.
- I access the Datalab notebooks etc by typing: localhost:8081 and create a new notebook with the code posted in the second link.
- I get an error.
I guess the port number should be changed in the connection parameters? I've tried all sorts of combinations, but to no avail. Should I be using the VM's internal/external IP address instead? Please advise.