First, the installation of Cassandra
Cassandra now has a much larger version than it used to be, with 2.1.11 Version: http://www.apache.org/dyn/closer.lua/cassandra/2.1.11/ Apache-cassandra-2.1.11-bin.tar.gz of course, you can also use the latest stable version, must be stable version, I just started to learn when the use of the latest release to eat a lot of hardship.
Second, the configuration of Cassandra
The main configuration is the JDK, the requirement version is more than 1.65, and then configure the environment variables, java_home and Cassandra_home, the path name is added to the line, here do not do a detailed statement.
Third, the start of Cassandra
We can run Cassandra.bat in the bin directory if the flash is running in compatibility mode. Of course we had better go into the DOS window, switch to the destination directory to run the command, if there is a problem, we will find C:\windows\system32\cmd.exe as an administrator to run. A successful run will give the following response:
Detected PowerShell execution permissions. Running with enhanced startup scripts. Setting up Cassandra environment*---------------------------------------------------------------------* *--------- ------------------------------------------------------------* warning! 1 swap file (s) detected Name:d:\pagefile.sys It is recommended so disable swap when running Cassandra F or performance and stability reasons.*---------------------------------------------------------------------* *----- ----------------------------------------------------------------*cassandra Port already in use (storage_port:7000). Aborting
All sorts of data are initialized under Window8, and a lot of stuff pops up.
Iv. configuration files for Cassandra
The configuration file is mainly Conf\cassandra.yaml, and most of the configuration is in this area. If it's just practice or personal use, you can use the default configuration. Below we talk about a few major configurations, here I recommend you download an editor editplus or UltraEdit (UE) or Sublime_text, after all, always use Word open looks very uncomfortable. (Haha, I was the classmate only word's computer pits dazzling) because the author is simply a single node using Cassandra, say a few parameters to be used, the values given below are the default values.
1, cluster_name: ' Test cluster ' This is the node name, a single node there is no need to consider so much
2, Data_file_directories: ' $CASSANDRA _home/data/data ' data file storage directory
3. Commitlog_directory: ' $CASSANDRA _home/data/commitlog ' log file storage directory
4. Saved_caches_directory: ' $CASSANDRA _home/data/saved_caches ' cache file storage directory
5, Rpc_address:localhost remote connection when you need to change to the database location IP
6, rpc_port:9160 port number, Cassandra client use
7, rpc_keepalive:true whether to allow remote connection
Cassandra single node installation and configuration--cassandra Summary (ii)