Closed espinoj closed 7 years ago
Created post install bash script, and uploaded to S3 bucket. Configured CfnCluster to read this script from S3 and run it on master node.
So far this script does the following:
#!/bin/bash
# Install Java Runtime 1.8
yum -y install java-1.8.0
# Then use the alternatives command to make Java 1.8 the default.
alternatives --config java <<< 2
# Let's also remove Java 1.7
yum -y remove java-1.7.0-openjdk
# Install MySQL server
yum -y install mysql-server
# Start MySQL
service mysqld start
Since this script is the post install script, CfnCluster will run it on all the cluster nodes. I verified the results on both Master node and compute node.
Since only the master node needs MySQL, no need to install it via the CfnCluster post install script.
Things need to be covered in the bash script:
causal-web.jar
to the mounted EBS volumecausal-web.jar
ccd
database