Follow the below steps to connect WSO2 BAM to an external Cassandra server/cluster.
Do the following changes in the datasources with the type CASSANDRA in the
<BAM_HOME>/repository/conf/datasources/bam_datasources.xmlfile to point to the external Cassandra server/cluster. (According to the default configurations, datasources need to be changed are
- Set the
externalCassandraproperty to true within the
configurationelement as follows.
- Change the
- Set the
<BAM_HOME>/repository/conf/etc/hector-config.xmlfile set the
externalCassandraproperty to true, and change the Cassandra host name and ports accordingly as shown below.
Change the following properties in the
Change the below properties if you are using the incremental data processing and notification task features.
- To stop running Cassandra, which is bundled with BAM by default, execute the following command (on Linux) when starting the server:
sh wso2server.sh -Ddisable.cassandra.server.startup=true