You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "philip (JIRA)" <ji...@apache.org> on 2015/08/03 16:21:05 UTC

[jira] [Commented] (CASSANDRA-9924) Error when invoking csqlsh

    [ https://issues.apache.org/jira/browse/CASSANDRA-9924?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14651902#comment-14651902 ] 

philip commented on CASSANDRA-9924:
-----------------------------------

Thanks For the help.

By following the link http://paltman.com/getting-ssl-support-in-python-251/ I was able to enable it.
I Followed below steps.

1. vi Modules/Setup.dist and uncomment as shown below
204:# Socket module helper for SSL support; you must comment out the other
205:# socket line above, and possibly edit the SSL variable:                             ======>uncomment this line
206:SSL=/usr/local/ssl                                                                                        ======>uncomment this line
207:_ssl _ssl.c \                                                                                                 ======>uncomment this line                                                          
208:    -DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \                        ======>uncomment this line
209:    -L$(SSL)/lib -lssl -lcrypto</pre>                                                               ======>uncomment this line

2. cd to Python s/w directory
3. ./config
4. make
5. make install

then invoke cqlsh as below and it worked fine.
cqlsh
Connected to POC at 10.239.133.189:9042.
[cqlsh 5.0.1 | Cassandra 2.1.5.469 | DSE 4.7.0 | CQL spec 3.2.0 | Native protocol v3]
Use HELP for help.
cqlsh>

> Error when invoking csqlsh
> --------------------------
>
>                 Key: CASSANDRA-9924
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-9924
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: philip
>              Labels: cqlsh
>
> Getting Error as below.
> {code}
>  bin]# ./cqlsh
> Traceback (most recent call last):
>   File "./cqlsh", line 134, in <module>
>     from cqlshlib import cqlhandling, cql3handling, pylexotron, sslhandling
>   File "/u01/cassandra/usr/share/dse/resources/cassandra/bin/../pylib/cqlshlib/sslhandling.py", line 20, in <module>
>     import ssl
>   File "/usr/local/lib/python2.6/ssl.py", line 60, in <module>
>     import _ssl             # if we can't import it, let the error propagate
> ImportError: No module named _ssl
> {code}
> Our versions are as below.
>  cat /etc/redhat-release
> Red Hat Enterprise Linux Server release 6.6 (Santiago)
>  bin]# python --version
> Python 2.6.9
> Pls help us resolve this issue.
> Thanks.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)