Cassandra & python 2.7

Hello,

I am trying to run cassandra on CLR, my first attempt was just run it with docker from docker hub

https://hub.docker.com/r/clearlinux/cassandra

However, I got the error:
No appropriate python interpreter found.
on step 2 of Deploy with Docker section.

It seems like this container image has default-provided Python 3 and according to C* docums, cqlsh is compatible only with Python 2.7
http://cassandra.apache.org/doc/latest/tools/cqlsh.html

If that’s the case, is it possible to tweak this container image to include only python 2.7 so cqlsh runs?

Thank you!

Long story short.

  1. Python 2 is near EOL and it’s very not likely it would ever be added to a docker image.
  2. cql relies on Apache Thrift, which explicitly relies on Python 2.7. Therefore porting it is nearly impossible.

Solution: Forget about Cassandra and find some reasonable replacement.

1 Like

uhm, ok. I guess the clr/cassandra docker image could be removed as it doesn’t and won’t ever work. Right?

We are avoiding removing content earlier than we have advertised to the community but yes that’s likely to be the end result.

2 Likes

People had been asking for porting Thrift as early as 2013. If their developers just don’t want to listen to the community, it is a very bad sign for the product.

2 Likes

What if you try to connect to Python via the provider Aiven Cassandra? That should be possible. Aiven is a cloud based provider which allows you to compare several known databases. Python and Cassandra are very well known, so nothing should stand in the way.

I use Aiven for Cassandra whenever I need a lot of storage space for my data. This is the case with my smart home for example.