Jump to: navigation, search
(Verifying the Cassandra Installation)
Line 22: Line 22:
 
*You have installed the latest [http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html Java 1.7 JDK 64bit for Linux]. For more information, refer to the [http://docs.oracle.com/javase/7/docs/webnotes/install/linux/linux-jdk.html Java documentation].
 
*You have installed the latest [http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html Java 1.7 JDK 64bit for Linux]. For more information, refer to the [http://docs.oracle.com/javase/7/docs/webnotes/install/linux/linux-jdk.html Java documentation].
  
'''Start of Procedure'''<br/>
+
'''Start'''<br/>
  
 
#[http://cassandra.apache.org/download/ Download the latest 1.2.x version of Cassandra].<br/>
 
#[http://cassandra.apache.org/download/ Download the latest 1.2.x version of Cassandra].<br/>
Line 32: Line 32:
 
#* /var/lib/cassandra/saved_caches
 
#* /var/lib/cassandra/saved_caches
 
#Add a directory for logging. You can create this directory anywhere, such as <tt>/var/log/cassandra/</tt>.
 
#Add a directory for logging. You can create this directory anywhere, such as <tt>/var/log/cassandra/</tt>.
'''End of Procedure'''<br/><br/>
+
'''End'''<br/><br/>
 
'''Next Steps'''<br/>
 
'''Next Steps'''<br/>
 
*[[InstallingAndDeployingCassandra#Configuring_Cassandra|Configuring Cassandra]]
 
*[[InstallingAndDeployingCassandra#Configuring_Cassandra|Configuring Cassandra]]
Line 42: Line 42:
 
{{NoteFormat|The files modified in this procedure are typically found in the <tt>[Cassandra install dir]/conf</tt> directory.}}
 
{{NoteFormat|The files modified in this procedure are typically found in the <tt>[Cassandra install dir]/conf</tt> directory.}}
  
'''Start of Procedure'''<br/>
+
'''Start'''<br/>
 
Complete the following steps for each Cassandra node:
 
Complete the following steps for each Cassandra node:
 
<ol>
 
<ol>
Line 77: Line 77:
 
<li>Save your changes and close the file.</li>
 
<li>Save your changes and close the file.</li>
 
</ol>
 
</ol>
'''End of Procedure'''<br/><br/>
+
'''End'''<br/><br/>
 
'''Next Steps'''<br/>
 
'''Next Steps'''<br/>
 
*[[InstallingAndDeployingCassandra#Verifying_the_Cassandra_Installation|Verifying the Cassandra Installation]]
 
*[[InstallingAndDeployingCassandra#Verifying_the_Cassandra_Installation|Verifying the Cassandra Installation]]
Line 87: Line 87:
 
{{NoteFormat|The files modified in this procedure are typically found in the <tt>[Cassandra install dir]/conf</tt> directory.}}
 
{{NoteFormat|The files modified in this procedure are typically found in the <tt>[Cassandra install dir]/conf</tt> directory.}}
  
'''Start of Procedure'''<br/>
+
'''Start'''<br/>
 
Complete the following steps for each Cassandra node:
 
Complete the following steps for each Cassandra node:
 
<ol>
 
<ol>
Line 103: Line 103:
 
<li>Save your changes and close the file.</li>
 
<li>Save your changes and close the file.</li>
 
</ol>
 
</ol>
'''End of Procedure'''<br/><br/>
+
'''End'''<br/><br/>
 
'''Next Steps'''<br/>
 
'''Next Steps'''<br/>
 
*[[InstallingAndDeployingCassandra#Verifying_the_Cassandra_Installation|Verifying the Cassandra Installation]]
 
*[[InstallingAndDeployingCassandra#Verifying_the_Cassandra_Installation|Verifying the Cassandra Installation]]
  
 
===Verifying the Cassandra Installation===
 
===Verifying the Cassandra Installation===
'''Start of Procedure'''<br/>
+
'''Start'''<br/>
 
<ol>
 
<ol>
 
<li>Start all Cassandra nodes using the following command:</li>
 
<li>Start all Cassandra nodes using the following command:</li>
Line 135: Line 135:
 
</pre>
 
</pre>
  
'''End of Procedure'''<br/><br/>
+
'''End'''<br/><br/>
 
'''Next Steps'''
 
'''Next Steps'''
*[[InstallationProcedures|Install Workspace Web Edition & Web Services]]
+
*[[InstallationProcedures|Installing Workspace Web Edition & Web Services]]
 
 
 
 
 
 
 
 
 
 
  
  
 
[[Category:V:HTCC:8.5.2DRAFT]]
 
[[Category:V:HTCC:8.5.2DRAFT]]

Revision as of 15:10, February 25, 2015

Installing and Configuring Cassandra

Cassandra is mandatory for Workspace Web Edition & Web Services and must be installed and configured prior to starting the installation and configuration of Workspace Web Edition & Web Services.

Currently, Genesys Web Services is using Cassandra version 1.2.

Important
For more details about Cassandra, refer to the Cassandra documentation for version 1.2.

The following steps are intended to serve as a quick guide to installing and configuring Cassandra:

Installing Cassandra

Complete this procedure for each Cassandra node.

Prerequisites

Start

  1. Download the latest 1.2.x version of Cassandra.
  2. Copy the Cassandra archive to the installation directory. For example, /usr/local
  3. Use a tar utility to extract the files. For example, tar -zxvf apache-cassandra-1.2.15-bin.tar.gz
  4. Add directories for data, commitlog, and saved_caches. You can create these directories anywhere or in the default locations configured in the cassandra.yaml. For example:
    • /var/lib/cassandra/data
    • /var/lib/cassandra/commitlog
    • /var/lib/cassandra/saved_caches
  5. Add a directory for logging. You can create this directory anywhere, such as /var/log/cassandra/.

End

Next Steps

Configuring Cassandra

This procedure shows you how to configure a three-node Cassandra cluster in a single datacenter.

Important
The files modified in this procedure are typically found in the [Cassandra install dir]/conf directory.

Start
Complete the following steps for each Cassandra node:

  1. Modify the cassandra.yaml file:
    1. Set the cluster_name. It must be the same name on all nodes.
    2. Set the initial_token according to the node's place in ring. It must be one of the following:
    3. Node #1:  -9223372036854775808
      Node #2:  -3074457345618258603
      Node #3:   3074457345618258602
      
      Important
      The tokens shown here can be used for a three-node Cassandra cluster in a single datacenter. If you are using a different topology or cluster size, consult the Cassandra documentation.
    4. Set seeds to the list of host names of all nodes. For example: -seeds: “node1, node2, node3”
    5. Set listen_address and rpc_address to the host name.
    6. Set data_file_directories, commitlog_directory, and saved_caches_directory to the directories you created in Step 4 of the Installing Cassandra procedure.
    7. Change endpoint_snitch to PropertyFileSnitch.
    8. Save your changes and close the file.
  2. Open the log4j-server.properties file and set the log4j.appender.R.File property to the directory you created in Step 5 of the Installing Cassandra procedure.
  3. Save your changes and close the file.
  4. Open the cassandra-topology.properties file and update for you cluster topology. For each node in your cluster, add the following line:
  5. [node]=[datacenter]:[rack]
    
  • [node] — The IP address of the node
  • [datacenter] — The name of the datacenter for this node.
  • [rack] — The name of the rack for this node.

The following is a sample cassandra-topology.properties file for a Single Datacenter scenario:

192.0.2.10=datacenter1:rack1
192.0.2.11=datacenter1:rack1
192.0.2.12=datacenter1:rack1

  • Save your changes and close the file.
  • End

    Next Steps

    Configuring Cassandra with only one node

    This procedure shows you how to configure a one-node Cassandra. This could be valuable for a lab or a simple test installation.

    Important
    The files modified in this procedure are typically found in the [Cassandra install dir]/conf directory.

    Start
    Complete the following steps for each Cassandra node:

    1. Modify the cassandra.yaml file:
      1. Set the cluster_name. It must be the same name on all nodes.
      2. Set seeds to the list of host names of all nodes. For example: -seeds: “127.0.0.1”
      3. Set listen_address and rpc_address to the host name.
      4. Set data_file_directories, commitlog_directory, and saved_caches_directory to the directories you created in Step 4 of the Installing Cassandra procedure.
      5. Save your changes and close the file.
    2. Open the log4j-server.properties file and set the log4j.appender.R.File property to the directory you created in Step 5 of the Installing Cassandra procedure.
    3. Save your changes and close the file.
    4. Save your changes and close the file.

    End

    Next Steps

    Verifying the Cassandra Installation

    Start

    1. Start all Cassandra nodes using the following command:
    2. [cassandra install dir]/bin/cassandra
    3. Use the nodetool utility to verify that all nodes have connected by entering the following command:
    4. [cassandra install dir]/bin/nodetool -h [cassandra host] ring

      The following is sample output for a Single Datacenter scenario:

      /genesys/apache-cassandra-1.2/bin$ ./nodetool ring
      Address     DC           Rack   Status  State   Load      Owns     Token
      192.0.2.10  datacenter1  rack1  Up      Normal  14.97 MB  100.00%  -9223372036854775808
      192.0.2.11  datacenter1  rack1  Up      Normal  14.97 MB  100.00%  -3074457345618258603
      192.0.2.12  datacenter1  rack1  Up      Normal  14.97 MB  100.00%   3074457345618258602
      


      The following is sample output for a Single Node scenario:

      /genesys/apache-cassandra-1.2/bin$ ./nodetool ring
      Address         DC          Rack        Status State   Load            Effective-Ownership Token                                       
      127.0.0.1       datacenter1 rack1       Up     Normal  1.89 MB         100.00%             76880863635469966884037445232169973201
      
      
      

      End

      Next Steps

    Comments or questions about this documentation? Contact us for support!