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

Andy Tolbert commented on CASSANDRA-15206:
------------------------------------------

I'm somewhat confident this isn't related to building with JDK11.  Just to 
verify I built latest trunk (149caf01) and everything seems in working order.  
Rather I suspect a compatibility issue with cqlsh and the python-driver being 
used.

cqlsh scans your lib directory for a file name starting with 
'cassandra-driver-internal-only-' and adds it to the beginning of the python 
lib path.  In the case of trunk, there should be a file named 
'cassandra-driver-internal-only-3.12.0.post0-5838e2fd.zip'.   Can you verify 
whether or not that is the case?  What could be happening is the file is not 
found, and python is falling back on your installed libraries, and maybe you 
have a different version of the python driver installed than expected.  Or 
maybe there are multiple files prefixed with 'cassandra-driver-internal-only-' 
in your path and an older one is being used.

Another possibility is that you may have moved cqlsh/cqlsh.py out of the bin 
directory and therefore the zip file can't be found in a relative way, and 
cqlsh is falling back on your installed libraries, which may contain a 
different version of the python driver.  Although I see in your stack trace 
that the script is running out of cassandra/bin, so maybe that isn't the case.

> cassandra 4.0 cqlsh not working with jdk 11
> -------------------------------------------
>
>                 Key: CASSANDRA-15206
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-15206
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tool/cqlsh
>            Reporter: RamyaK
>            Priority: Urgent
>
> Im able to start cassandra by compiling the latest git code with OpenJDK11, 
> but facing below error with cqlsh. please suggest.
>  
> Traceback (most recent call last):
>   File "/home/id/cassandra/bin/cqlsh.py", line 2520, in <module>
>     main(*read_options(sys.argv[1:], os.environ))
>   File "/home/id/cassandra/bin/cqlsh.py", line 2498, in main
>     allow_server_port_discovery=options.allow_server_port_discovery)
>   File "/home/id/cassandra/bin/cqlsh.py", line 491, in __init__
>     **kwargs)
>   File "cassandra/cluster.py", line 802, in cassandra.cluster.Cluster.__init__
> TypeError: __init__() got an unexpected keyword argument 
> 'allow_server_port_discovery'



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to