The latest version for DAS is WSO2 Data Analytics Server 3.1.0. View documentation for the latest release.
WSO2 Data Analytics Server is succeeded by WSO2 Stream Processor. To view the latest documentation for WSO2 SP, see WSO2 Stream Processor Documentation.

All docs This doc
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
||
Skip to end of metadata
Go to start of metadata

Cassandra datasource is used to set up a connection to a Cassandra storage. In WSO2 DAS, you can create a Cassandra datasource by specifying the datasource configuration in the <DAS_HOME>/repository/conf/datasources/ analytics-datasources.xml file   as follows.

<datasource>
    <name>WSO2_ANALYTICS_DS_CASSANDRA</name>
    <description>The Cassandra datasource used for analytics</description>
    <definition type="CASSANDRA">
        <configuration>
            <contactPoints>localhost</contactPoints>
            <port>9042</port>
            <username>admin</username>
            <password>admin</password>
            <clusterName>cluster1</clusterName>
            <compression>NONE</compression>
            <poolingOptions>
                <coreConnectionsPerHost hostDistance="LOCAL">8</coreConnectionsPerHost>
                <maxSimultaneousRequestsPerHostThreshold hostDistance="LOCAL">1024</maxSimultaneousRequestsPerHostThreshold>
            </poolingOptions>
            <queryOptions>
                <fetchSize>5000</fetchSize>
                <consistencyLevel>ONE</consistencyLevel>
                <serialConsistencyLevel>SERIAL</serialConsistencyLevel>
            </queryOptions>
            <socketOptions>
                <keepAlive>false</keepAlive>
                <sendBufferSize>150000</sendBufferSize>
                <connectTimeoutMillis>12000</connectTimeoutMillis>
                <readTimeoutMillis>12000</readTimeoutMillis>
            </socketOptions>
        </configuration>
    </definition>
</datasource>

For information on the above properties, and other properties that you can specify in this datasource configuration, go to Java Driver 2.0 for Apache Cassandra Documentation.

  • No labels