No appropriate python interpreter found. - Cassandra - cassandra

I am new to Cassandra . I installed Cassandra in RHEL 6.5 , and installed Cassandra 3.5 .
When launch the cqlsh , it gives me the error
No appropriate python interpreter found.
What could be the reason , should I try a lower Cassandra version ? any one encountered the same issue ?

If your Python version is below 2.7, you should upgrade it to at least Python 2.7.
It might be a version between 2.4.x and 2.6.x.
Cassandra versions 3 and greater need at least Python2.7

Related

Unable to run Cassandra 4.0.7 using Java 17

Trying to install cassandra 4.0.7 on my laptop. When i type cassandra in cmd it simply exits.
Used gitbash for running the cassandra. Here the output looks like.
enter image description hereerror
removed UseConcMarkSweepGC from the jvm11-server.options file. But not working.
Cassandra 4.0.7 does not support java17. This support is expected for Cassandra 5.x (late 2023 as of today). Please downgrade to Java 11 with tools like jenv
Check the current status here
https://issues.apache.org/jira/browse/CASSANDRA-16895
Apache Cassandra 4.x does not support Java 17.
Support for Java 11 was added in Cassandra 4.0 (CASSANDRA-9608, CASSANDRA-16894). At this point, Cassandra 4.x releases support both Java 8 and Java 11. Note that C* 3.0 + 3.11 (and older releases) only support Java 8.
Support for Java 17 LTS will be added in a future release of Cassandra (CASSANDRA-16895). When that does land, support for Java 8 will be dropped paving the way for just Java 11 + Java 17. Cheers!

How to determine which Latest stable Python3.x suits best for HDP3.1.5 and RHEL7.9

We are currently using Python2.7 with HDP3.1.5 (PySpark | Spark2.3) and RHEL 7.9.
We are planning to upgrade to Python3.x as Python2.7 support has ended.
If anyone could please help with determining the latest stable Python3.x? version that will best suit or compatible with HDP3.1.5 (Spark2.3) and RHEL 7.9?
OR
Let me know necessary steps I should follow to determine the best stable Python3.x? version for our HDP stack?
Thanks,
PB
The max Python version supported is 2.7.5, Python Version 3.x is not supported as it will create conflict with the versions shipped (HDP3.1.5 + Ambari2.7.5).
Python3 support is not on the road map of HDP 3x and even for Ambari.
This is something which may be done in future to make Python3 as the default for the OS Cloudera supports.

Why can't I run CassandraDB on Windows 10 with the latest Java installed?

When I try to start up Cassandra DB under windows 10, It complains about the Java version:
Cassandra 3.0 and later require Java 8u40 or later.
I believe I have the latest Java installed:
java --version
java 13.0.2 2020-01-14
Java(TM) SE Runtime Environment (build 13.0.2+8)
Java HotSpot(TM) 64-Bit Server VM (build 13.0.2+8, mixed mode, sharing)
I've installed Apache Cassandra 3.11.9 (the open source version not the Datastax version).
Why doesn't Cassandra recognize this version of Java? Do I need to install a different version of Java to get this working?
Yes, you need to install Java 8 to run Cassandra 3.11 - it will not work with Java 13 (yes, I understand that error message isn't clear). Support for Java > 8 was added only to Cassandra 4.0, that is currently in beta.
Also, on Windows it would be easier to use Docker to run Cassandra - there are different difficulties with running Cassandra on Windows.

No appropriate Python interpreter found Cassandra Python 3.1,3.4

I've installed Cassandra 3.9 on Centos 6.7 which has Python 3.1.1 installed at /usr/local/bin/python.
When I try to start the cql shell, it says no appropriate python interpreter found. I tried installing python 3.4 and alias it. but that gives the same error.
I have a few questions on this.
what are the compatible Python versions that Cassandra 3.9 supports?
How do I change the Python version permanently from the existing version which is mounted on a read-only file system(which python) to the version I install now?(using cshell)
I echo'd the pyver variable being used. It says 2.7 which should be compatible with Cassandra 3.9 but still gives an error.

Cassandra : cqlsh not working on version 3.3 nor 2.2.5

I am new to Cassandra and trying to setup it on Linux version 2.6.18-404.el5 with Java 8 64 bit. I have tried Cassandra version 3.3. and 2.2.5 and getting an error:
cqlsh
File "./cqlsh.py", line 686
ssl_options=sslhandling.ssl_settings(hostname, CONFIG_FILE) if ssl else None, ^
SyntaxError: invalid syntax
It is reporting a syntax error on 'if'
You need to install python 2.7. Probably in parallel to your system installation so not to break your Linux distribution. For Centos 6.5 the instructions here worked like a charm for me. As Centos is a Redhat clone it should work for you as well.
Install dependencies
Download the python 2.7 sources.
Configure and build python; note that you have to make altinstall so not to mess with your system installation of python!
Verify the installation: try python2.7 --version, if everything worked out OK this will print the version info of your python 2.7 installation
Then edit the cqlsh shell script. It contains just one code line. At the start of that line replace python with python2.7, save the file, and now you should be able to run cqlsh.

Resources