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.