Alces Clusterware currently operates on the following platforms/distributions:
- Enterprise Linux 7 distributions: RHEL, CentOS, Scientific Linux (
el7
) - Enterprise Linux 6 distributions: RHEL, CentOS, Scientific Linux (
el6
) - Ubuntu LTS 16.04 (Xenial Xerus) (
ubuntu1604
)
The install scripts handle the installation of all required packages from your distribution and will install on a minimal base. For Enterprise Linux distributions installation of the @core
and @base
package groups is sufficient.
Clusterware is a system-level package and must be installed by the root
user.
-
Become root.
sudo -s
-
Set the
cw_DIST
environment variable to match the distribution on which you are installing. Currently available options areel7
,el6
andubuntu1604
:export cw_DIST=el7
-
Invoke installation by piping output from
curl
tobash
:curl -sL http://git.io/clusterware-installer | /bin/bash
If you want to you can download the script first. You might want to do this if you want to inspect what it's going to do, or if you're nervous about it being truncated during download:
curl -sL http://git.io/clusterware-installer > /tmp/bootstrap.sh less /tmp/bootstrap.sh bash /tmp/bootstrap.sh
-
After installation, you can logout and login again in order to set up the appropriate shell configuration, or you can source the shell configuration manually:
source /etc/profile.d/alces-clusterware.sh
Additional environment variables may be set to influence the installation process.
Set the cw_BUILD_fetch_handling
variable to indicate that you want to build from upstream source code rather than installing prebuilt binaries for your distribution. Choose source
to download and build components from upstream sources, or dist
to use prebuilt binaries downloaded from Amazon S3.
export cw_BUILD_fetch_handling=source
curl -sL http://git.io/clusterware-installer | /bin/bash
Set the cw_BUILD_source_dir
variable to point to an existing clone of the repository. If a clone isn't available in the path you specify the path will be used to house the downloaded code rather than the default /tmp/clusterware
temporary directory.
cd /usr/src
git clone https://github.com/alces-software/clusterware
export cw_BUILD_source_dir=/usr/src/clusterware
/usr/src/clusterware/scripts/bootstrap
Set the cw_BUILD_source_branch
variable with the name of the branch you wish to build. Defaults to master
. e.g.:
export cw_BUILD_source_branch=0.1.0
curl -sL http://git.io/clusterware-installer | /bin/bash
Set the cw_BUILD_source_url
variable with the URL to a tarball of the Clusterware source code in tar.gz
format. Defaults to https://github.com/alces-software/clusterware/archive/<branch>
. e.g.:
export cw_BUILD_source_url=http://symphony-app.mgt.symphony.local/clusterware/clusterware.tar.gz
curl -sL http://symphony-app.mgt.symphony.local/clusterware/bootstrap | /bin/bash
Set the cw_BUILD_dist_url
variable with a base URL for suitable tarballs. Defaults to https://s3-eu-west-1.amazonaws.com/packages.alces-software.com/clusterware/dist
. e.g.:
export cw_BUILD_dist_url=http://symphony-app.mgt.symphony.local/clusterware/dist
export cw_BUILD_source_url=http://symphony-app.mgt.symphony.local/clusterware/clusterware.tar.gz
curl -sL http://symphony-app.mgt.symphony.local/clusterware/bootstrap | /bin/bash
Set the cw_BUILD_repo_url
variable with a base URL for suitable tarballs. Defaults to unset. e.g.:
export cw_BUILD_repo_url=http://symphony-app.mgt.symphony.local/clusterware
export cw_BUILD_dist_url=http://symphony-app.mgt.symphony.local/clusterware/dist
export cw_BUILD_source_url=http://symphony-app.mgt.symphony.local/clusterware/clusterware.tar.gz
curl -sL http://symphony-app.mgt.symphony.local/clusterware/bootstrap | /bin/bash
Set the cw_BUILD_target_dir
variable with the filesystem location for installation of Alces Clusterware. Defaults to /opt/clusterware
. e.g.:
export cw_BUILD_target_dir=/opt/sw/cluster/clusterware
curl -sL http://git.io/clusterware-installer | /bin/bash