[
https://issues.apache.org/jira/browse/CASSANDRA-7899?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16185549#comment-16185549
]
jahar commented on CASSANDRA-7899:
----------------------------------
Hi what is correct command to run cli with SSL. I am using cassandra 2.1.16 and
running following command.
/etc/bin/cassandra-cli -u <user_name> -pw <password> -p 10760 -h <hostname>
--jmxusername <user_name> --jmxpassword <password> -ts /var/opt/keypath/abc.jks
-tspw <password> --debug
It gives me following error: "Login failure. Did you specify 'keyspace',
'username' and 'password'?"
When looking at source code, it simply returns the error message there is no
stacktrace.
> SSL does not work in cassandra-cli
> ----------------------------------
>
> Key: CASSANDRA-7899
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7899
> Project: Cassandra
> Issue Type: Bug
> Components: Tools
> Environment: Linux 2.6.32-431.20.3.el6.x86_64 #1 SMP Thu Jun 19
> 21:14:45 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
> java version "1.7.0_17"
> Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
> Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
> [cqlsh 4.1.1 | Cassandra 2.0.10 | CQL spec 3.1.1 | Thrift protocol 19.39.0]
> Reporter: Zdenek Ott
> Assignee: Jason Brown
> Fix For: 2.0.11, 2.1.1
>
> Attachments: 7899-v1.txt, 7899-v2.txt
>
>
> When specify transport factory parameter '-tf
> org.apache.cassandra.cli.transport.SSLTransportFactory' it throws exception,
> see below, because SSLTransportFactory extends TTransportFactory not
> ITransportFactory.
> Exception in thread "main" java.lang.IllegalArgumentException: Cannot create
> a transport factory 'org.apache.cassandra.cli.transport.SSLTransportFactory'.
> at
> org.apache.cassandra.cli.CliOptions.validateAndSetTransportFactory(CliOptions.java:288)
> at
> org.apache.cassandra.cli.CliOptions.processArgs(CliOptions.java:223)
> at org.apache.cassandra.cli.CliMain.main(CliMain.java:230)
> Caused by: java.lang.IllegalArgumentException: transport factory
> 'org.apache.cassandra.cli.transport.SSLTransportFactory' not derived from
> ITransportFactory
> at
> org.apache.cassandra.cli.CliOptions.validateAndSetTransportFactory(CliOptions.java:282)
> ... 2 more
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]