Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To point to the Cassandra node/cluster, you need to edit the default datasource configuration defined as shown below in the bam-datasources.xml file.

Info

Replace the  url the  hosts, port,  username and  password  settings  settings with your custom values and also the other values accordingly in the  the  bam-datasources.xml file  file as shown in the below example.

Code Block
languagexml
   <datasource>
            <name>WSO2BAM_CASSANDRA_DATASOURCE</name>
            <description>The datasource used for Cassandra data</description>
            <definition type="CASSANDRA">
                <configuration>
                    <hosts>localhost</hosts>
                    <port>9160</port>
                    <username>admin</username>
                    <password>admin</password>
                    <keySpace>EVENT_KS</keySpace>
                    <externalCassandra>false</externalCassandra>
                    <replicationFactor>1</replicationFactor>
                    <strategyClass>org.apache.cassandra.locator.SimpleStrategy</strategyClass>
                    <readConsistencyLevel>QUORUM</readConsistencyLevel>
                    <writeConsistencyLevel>QUORUM</writeConsistencyLevel>
                    <gcGraceInterval>864000</gcGraceInterval>
                </configuration>
            </definition>
        </datasource>The datasource configuration options are as follows:  

...