Follow the steps below to configure the Cassandra cluster.
It is recommended to use only external Apache Cassandra versions 1.2.18 – 2.x with BAM 2.5.0 clustered deployment setups. For information on using external Cassandra with WSO2 BAM, see Connecting to External Cassandra.
- Download Apache Cassandra, and extract it in a preferred location in all nodes (Cassandra Node 1, Cassandra Node 2, Cassandra Node 3, and Cassandra Node 4 as shown in the deployment diagram.)
Add the following configurations in the
<CASSANDRA_HOME>/conf/cassandra.yamlfile as follows for the respective nodes.
Start all the Cassandra severs.
Log in to one of the Cassandra nodes via cqlsh. Execute the following commands to create a new super user for the Cassandra cluster, which can be used for communication between BAM and Cassandra.
When configuring the Cassandra cluster in this setup, you need to do the following for the Cassandra keyspaces feature to function and list the Cassandra keyspaces in the Main menu of the WSO2 BAM maangement console.
If you are using internal Cassandra, which is shipped with WSO2 BAM, both BAM nodes and Cassandra nodes should be in the same clustering domain.
If you are using external Cassandra, to change the following configuration in the
<BAM_HOME>/repository/conf/etc/cassandra.yamlfile to use the
AllowAllAuthenticator. For information on using external Cassandra with WSO2 BAM, see Connecting to External Cassandra.