Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-11708

sstableloader not work with ssl options

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 2.2.7, 3.0.7, 3.7
    • Legacy/Tools
    • None
    • Low

    Description

      My cassandra server start with client_encryption_options.

      client_encryption_options:
          enabled: true
          keystore: /path/to/keystore.node0
          keystore_password: cassandra
          require_client_auth: true
          truststore: /path/to/truststore.node0
          truststore_password: cassandra
      

      when I use sstableloader with -ts/-tspw/-ks/-kspw, I get

      All host(s) tried for query failed (tried: localhost/127.0.0.1:9042 (com.datastax.driver.core.TransportException: [localhost/127.0.0.1:9042] Channel has been closed))
      com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: localhost/127.0.0.1:9042 (com.datastax.driver.core.TransportException: [localhost/127.0.0.1:9042] Channel has been closed))
      

      after looked at the code, I found only one way to active ssl is use -f with a configuration yaml file which has

      client_encryption_options:
          enabled: true
      

      so I think it's a bug, better to active ssl when I set -ts and -tspw.

      Attachments

        Issue Links

          Activity

            People

              yukim Yuki Morishita
              bchen Bin Chen
              Yuki Morishita
              Alex Petrov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: