Once you have completed file system and OS configuration, you are now ready to install ClustrixDB.
Log into each ClustrixDB node as either the root Linux user, or a non-root Linux user that has sudo privileges.
Download the ClustrixDB installation, then untar and run the installer script using the non-root option.
|shell> tar xvfj current_version.el7.tar.bz2|
shell> cd current_version
shell> sudo ./clxnode_install.py --non-root
|By default, these commands will configure the clxd Linux user as the ClustrixDB daemon user, and clxm as the ClustrixDB management user. Please see ClustrixDB Operating System Users for more information. Once installation is complete, these users cannot be modified.|
The installer will present you with a list of options based on your server specifications. You may use the default values for most.
Repeat these steps on each node using the same configuration options.
ClustrixDB requires a number of ports to be accessible by external applications and for internode communication. This step should be performed for all nodes.
Clustrix recommends placing nodes within a secure environment and allowing access between all nodes on all ports.
From a single node only, connect to ClustrixDB using the default mysql (MariaDB) client.
shell> sudo mysql
You can confirm you are running ClustrixDB by examining the clustrix_version variable:
sql> SELECT @@clustrix_version;
Next, set a password for the root user, set the license and form a cluster:
Then run the following SQL commands to set the cluster's license:
sql> SET GLOBAL license = 'license key';
You are now ready to cluster your nodes.
shell> ALTER CLUSTER ADD ' node2_ip_address', 'node3_ip_address';
After the ALTER CLUSTER command, there will be a brief period of unavailability while the cluster forms.
To verify that all nodes are in the cluster, run the following query:
|select * from system.nodeinfo;|
All the nodes you added to the cluster should appear in this list.
Now that you have completed installation, proceed to Configure SSH Authentication.