如何在Python中使用django_cassandra_engine通过SSL连接到Cassandra DB?

时间:2018-12-10 10:25:12

标签: python cassandra

'cassandra': {

    'ENGINE': 'django_cassandra_engine',

    'NAME': '',

    'USER': config.get("database", "cassandra_user"),

    'PASSWORD': config.get("database", "cassandra_password"),

    'HOST': '',

    'connection': {

        'consistency': ConsistencyLevel.LOCAL_ONE,

        'retry_connect': True

        # + All connection options for cassandra.cluster.Cluster()

    },

    'session': {

        'default_timeout': 30,

        'default_fetch_size': 10000,

        'retry_connect' : True
    }
}

如何通过具有以下属性的ssl连接

cassandra.ssl.enabled= cassandra.ssl.cipher.suites=TLS_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_256_CBC_SHA truststore.path= keystore.path= truststore.password= keystore.password=

0 个答案:

没有答案