Quickstart Installation of Distributed Cluster

Download the script

Option 1 (Browser-based): Right-Click here and click "Save Link as" and save the ndbinstaller.sh file in a local directory (for example, /tmp/).

Option 2 (Command-line):

wget http://www.jimdowling.info/ndbinstaller/trunk/ndbinstaller.sh
# or
svn co http://www.jimdowling.info/ndbinstaller/trunk/ ndbinstaller

Run the Installer Script

  • You need to download the script, and run it on the following hosts:
    • Management Server Host
    • Data Node Host 1
    • ...
    • Data Node Host N
    • MySQL Server Hosts
# 1. Run the installer script on the Management Host - you have to have root privileges:
chmod +x ndbinstaller.sh 
# Recommended, but optional, step to install as root. NDB Processes will run as daemons when installed as root user.
su root 
# Ubuntu: sudo ./ndbinstaller.sh
./ndbinstaller.sh 

# On the Management Server Host, choose installation option, and finish installation of the management server:
    (3) Setup a management server for a distributed (non-localhost) cluster.

# 2. After having installed the Mgm Server, run the installer on the Data Node Hosts, choosing installation option:
    (4) Add a data node to a distributed cluster.

# Optional Step. You can add a MySQL Server Host to the cluster. (Note: currently patching the server startup scripts
# only works if the MySQL Server is installed on the same host as the Mgm Server);
(5) Add a MySQL server to an installed distributed cluster.

# Scripts for managing the cluster will be installed in the directory:
/var/lib/mysql-cluster/ndb/scripts
# On each host, the MySQL binaries will be installed in the directory 
/usr/local/mysql/
# The NDB Storage Engine and MySQL data directory will be installed in the $NDB_HOME directory:
/var/lib/mysql-cluster/ndb/
# All logs for the mgmt server, and data nodes will be written to the directory:
/var/lib/mysql-cluster/logs/