1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-01 06:46:55 +03:00

name changes

This commit is contained in:
david hill
2016-05-11 16:24:17 -05:00
parent 12fbdfb4cd
commit a02049ba6a
269 changed files with 14983 additions and 704 deletions

View File

@ -9,23 +9,23 @@ prefix=/usr/local
#get instance name from called
instanceName="$1"
ec2=`$prefix/Calpont/bin/getConfig Installation EC2_HOME`
ec2=`$prefix/MariaDB/Columnstore/bin/getConfig Installation EC2_HOME`
if [ $ec2 == "unassigned" ]; then
echo "stopped"
exit 1
fi
java=`$prefix/Calpont/bin/getConfig Installation JAVA_HOME`
path=`$prefix/Calpont/bin/getConfig Installation EC2_PATH`
java=`$prefix/MariaDB/Columnstore/bin/getConfig Installation JAVA_HOME`
path=`$prefix/MariaDB/Columnstore/bin/getConfig Installation EC2_PATH`
export PATH=$path
export EC2_HOME=$ec2
export JAVA_HOME=$java
# get x509 Certification and Private Key
x509Cert=`$prefix/Calpont/bin/getConfig Installation AmazonX509Certificate`
x509PriKey=`$prefix/Calpont/bin/getConfig Installation AmazonX509PrivateKey`
x509Cert=`$prefix/MariaDB/Columnstore/bin/getConfig Installation AmazonX509Certificate`
x509PriKey=`$prefix/MariaDB/Columnstore/bin/getConfig Installation AmazonX509PrivateKey`
#get instance info
ec2-describe-instances -C $x509Cert -K $x509PriKey $instanceName > /tmp/instanceInfo 2> /dev/null

View File

@ -88,9 +88,9 @@ if [ "$1" = "deassignElasticIP" ]; then
fi
test -f /usr/local/Calpont/post/functions && . /usr/local/Calpont/post/functions
test -f /usr/local/MariaDB/Columnstore/post/functions && . /usr/local/MariaDB/Columnstore/post/functions
ec2=`$prefix/Calpont/bin/getConfig Installation EC2_HOME`
ec2=`$prefix/MariaDB/Columnstore/bin/getConfig Installation EC2_HOME`
if [ $ec2 == "unassigned" ]; then
if [ "$1" = "getPrivateIP" ]; then
@ -102,21 +102,21 @@ if [ $ec2 == "unassigned" ]; then
fi
fi
java=`$prefix/Calpont/bin/getConfig Installation JAVA_HOME`
path=`$prefix/Calpont/bin/getConfig Installation EC2_PATH`
java=`$prefix/MariaDB/Columnstore/bin/getConfig Installation JAVA_HOME`
path=`$prefix/MariaDB/Columnstore/bin/getConfig Installation EC2_PATH`
export PATH=$path
export EC2_HOME=$ec2
export JAVA_HOME=$java
# get Keys and region
AmazonAccessKeyFile=`$prefix/Calpont/bin/getConfig Installation AmazonAccessKey`
AmazonAccessKeyFile=`$prefix/MariaDB/Columnstore/bin/getConfig Installation AmazonAccessKey`
if [ $AmazonAccessKeyFile == "unassigned" ]; then
echo "FAILED: missing Config Setting AmazonAccessKey : $AmazonAccessKeyfile"
exit 1
fi
AmazonSecretKeyFile=`$prefix/Calpont/bin/getConfig Installation AmazonSecretKey`
AmazonSecretKeyFile=`$prefix/MariaDB/Columnstore/bin/getConfig Installation AmazonSecretKey`
if [ $AmazonSecretKeyFile == "unassigned" ]; then
echo "FAILED: missing Config Setting AmazonSecretKeyFile : $AmazonSecretKeyFile"
exit 1
@ -125,8 +125,8 @@ fi
AmazonAccessKey=`cat $AmazonAccessKeyFile`
AmazonSecretKey=`cat $AmazonSecretKeyFile`
Region=`$prefix/Calpont/bin/getConfig Installation AmazonRegion`
subnet=`$prefix/Calpont/bin/getConfig Installation AmazonSubNetID`
Region=`$prefix/MariaDB/Columnstore/bin/getConfig Installation AmazonRegion`
subnet=`$prefix/MariaDB/Columnstore/bin/getConfig Installation AmazonSubNetID`
if test ! -f $AmazonAccessKeyfile ; then
echo "FAILED: missing AmazonAccessKeyfile : $AmazonAccessKeyfile"
@ -193,7 +193,7 @@ getInstancePrivate() {
getZone() {
#get from Calpont.xml if it's there, if not, get from instance then store
zone=`$prefix/Calpont/bin/getConfig Installation AmazonZone`
zone=`$prefix/MariaDB/Columnstore/bin/getConfig Installation AmazonZone`
if [ "$zone" = "unassigned" ] || [ "$zone" = "" ]; then
#get local Instance ID
@ -213,7 +213,7 @@ getZone() {
fi
zone=`cat $describeInstanceFile | grep -m 1 $instance | awk '{gsub(/^[ \t]+|[ \t]+$/,"");print $11}'`
fi
$prefix/Calpont/bin/setConfig Installation AmazonZone $zone
$prefix/MariaDB/Columnstore/bin/setConfig Installation AmazonZone $zone
fi
echo $zone

View File

@ -93,30 +93,30 @@ if [ "$1" = "createTag" ]; then
fi
test -f /usr/local/Calpont/post/functions && . /usr/local/Calpont/post/functions
test -f /usr/local/MariaDB/Columnstore/post/functions && . /usr/local/MariaDB/Columnstore/post/functions
ec2=`$prefix/Calpont/bin/getConfig Installation EC2_HOME`
ec2=`$prefix/MariaDB/Columnstore/bin/getConfig Installation EC2_HOME`
if [ $ec2 == "unassigned" ]; then
STATUS="unknown"
RETVAL=1
fi
java=`$prefix/Calpont/bin/getConfig Installation JAVA_HOME`
path=`$prefix/Calpont/bin/getConfig Installation EC2_PATH`
java=`$prefix/MariaDB/Columnstore/bin/getConfig Installation JAVA_HOME`
path=`$prefix/MariaDB/Columnstore/bin/getConfig Installation EC2_PATH`
export PATH=$path
export EC2_HOME=$ec2
export JAVA_HOME=$java
# get Keys and region
AmazonAccessKeyFile=`$prefix/Calpont/bin/getConfig Installation AmazonAccessKey`
AmazonAccessKeyFile=`$prefix/MariaDB/Columnstore/bin/getConfig Installation AmazonAccessKey`
if [ $AmazonAccessKeyFile == "unassigned" ]; then
echo "FAILED: missing Config Setting AmazonAccessKey : $AmazonAccessKeyfile"
exit 1
fi
AmazonSecretKeyFile=`$prefix/Calpont/bin/getConfig Installation AmazonSecretKey`
AmazonSecretKeyFile=`$prefix/MariaDB/Columnstore/bin/getConfig Installation AmazonSecretKey`
if [ $AmazonSecretKeyFile == "unassigned" ]; then
echo "FAILED: missing Config Setting AmazonSecretKeyFile : $AmazonSecretKeyFile"
exit 1
@ -135,7 +135,7 @@ if test ! -f $AmazonSecretKeyfile ; then
exit 1
fi
Region=`$prefix/Calpont/bin/getConfig Installation AmazonRegion`
Region=`$prefix/MariaDB/Columnstore/bin/getConfig Installation AmazonRegion`
checkInfostatus() {
@ -189,21 +189,21 @@ checkInfostatus() {
createvolume() {
# get zone
zone=`$prefix/Calpont/bin/IDBInstanceCmds.sh getZone`
zone=`$prefix/MariaDB/Columnstore/bin/IDBInstanceCmds.sh getZone`
if [ $moduleType == "um" ]; then
# get type
volumeType=`$prefix/Calpont/bin/getConfig Installation UMVolumeType`
volumeType=`$prefix/MariaDB/Columnstore/bin/getConfig Installation UMVolumeType`
if [ $volumeType == "io1" ]; then
# get IOPS
volumeIOPS=`$prefix/Calpont/bin/getConfig Installation UMVolumeIOPS`
volumeIOPS=`$prefix/MariaDB/Columnstore/bin/getConfig Installation UMVolumeIOPS`
fi
else # pm
# get type
volumeType=`$prefix/Calpont/bin/getConfig Installation PMVolumeType`
volumeType=`$prefix/MariaDB/Columnstore/bin/getConfig Installation PMVolumeType`
if [ $volumeType == "io1" ]; then
# get IOPS
volumeIOPS=`$prefix/Calpont/bin/getConfig Installation PMVolumeIOPS`
volumeIOPS=`$prefix/MariaDB/Columnstore/bin/getConfig Installation PMVolumeIOPS`
fi
fi
@ -246,7 +246,7 @@ detachvolume() {
((retries++))
sleep 1
done
test -f /usr/local/Calpont/post/functions && . /usr/local/Calpont/post/functions
test -f /usr/local/MariaDB/Columnstore/post/functions && . /usr/local/MariaDB/Columnstore/post/functions
cplogger -w 100 "detachvolume failed: $STATUS"
echo "failed"
exit 1
@ -257,7 +257,7 @@ detachvolume() {
exit 0
fi
test -f /usr/local/Calpont/post/functions && . /usr/local/Calpont/post/functions
test -f /usr/local/MariaDB/Columnstore/post/functions && . /usr/local/MariaDB/Columnstore/post/functions
cplogger -w 100 "detachvolume failed status: $STATUS"
echo $STATUS
exit 1
@ -281,7 +281,7 @@ attachvolume() {
((retries++))
sleep 1
done
test -f /usr/local/Calpont/post/functions && . /usr/local/Calpont/post/functions
test -f /usr/local/MariaDB/Columnstore/post/functions && . /usr/local/MariaDB/Columnstore/post/functions
cplogger -w 100 "attachvolume failed: $STATUS"
echo "failed"
exit 1
@ -292,7 +292,7 @@ attachvolume() {
exit 0
fi
test -f /usr/local/Calpont/post/functions && . /usr/local/Calpont/post/functions
test -f /usr/local/MariaDB/Columnstore/post/functions && . /usr/local/MariaDB/Columnstore/post/functions
cplogger -w 100 "attachvolume failed: $STATUS"
echo $STATUS
exit 1