Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
titleSetup Bootstrap Script
#Make a temp directory
mkdir tmp
cd tmp
#Get install script (minimal bootstrap script)
svn export https://svn.apache.org/repos/asf/oodt/trunk/cluster-tools/setup/
#Setup environment variables
cd setup
mv env-vars.sh.tmpl env-vars.sh

Setup Environment Variables

Now edit "env-vars.sh" 

```

mkdir tmp
cd tmp
svn export https://svn.apache.org/repos/asf/oodt/trunk/cluster-tools/setup/
cd setup/
vi hosts
mv env-vars.sh.tmpl env-vars.sh
chmod +x install.sh
mkdir /data/cluster-local/software (and all)
./install.sh

and set the following environment variables (found in the top section):

  • RUN_DIR: This is a directory to store log files, scratch files, and any other storage the system needs.
  • INSTALL_DIR: A directory in which to install the software
  • TMP_DIR: A temporary directory used for downloads and other scratch space during installation

Note 1: Make sure to create the above directories and grant read, write and execute permissions.

Note 2: It is inadvisable to change the versions of the installed software at this time.  The software is tested as a set.

Setup Hosts File

Now edit "hosts". This is a list of nodes used by your cluster.  This first host is the head-node, and the rest represent slaves.  Add all hosts in your cluster to this file.

 

Code Block
languagebash
titleRun Cluster Installation
# Add execute permission to scripts
chmod +x install.sh env-vars.sh deploy.sh
# Run installation (will take some time)
./install.sh
#NOTE: Bootstrap finished, use installed software at ${INSTALL_DIR}.
# Navigate to installed setup scripts
. env-vars.sh
cd ${INSTALL_DIR}/cluster-tools/setup

 

 ```