To successfully run Cassandra CQLSH, openssl-devel packages must be installed. During operating system installation, openssl package is installed, but not openssl-devel.
To overcome this error, install openssl-devel as supplied with the operating system. In RedHat Linux 6, this rpm is present in Packages directory.
[cassandra@orcl1 bin]$ ./cqlsh
Traceback (most recent call last):
File "/home/cassandra/apache-cassandra-3.7/bin/cqlsh.py", line 167, in <module>
from cqlshlib import cql3handling, cqlhandling, pylexotron, sslhandling
File "/home/cassandra/apache-cassandra-3.7/bin/../pylib/cqlshlib/sslhandling.py", line 20, in <module>
File "/usr/local/lib/python2.7/ssl.py", line 97, in <module>
import _ssl # if we can't import it, let the error propagate
ImportError: No module named _ssl
Install following packages. openssl-devel has dependens with other rpms. Hence, install all the packages mentioned below :