You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
MCOL-520 amazon changes
This commit is contained in:
@ -805,12 +805,16 @@ int main(int argc, char* argv[])
|
||||
{
|
||||
cout << "===== Quick Install Multi-Server Configuration =====" << endl << endl;
|
||||
|
||||
cout << "Multi-Server install defaulting to using local storage" << endl;
|
||||
|
||||
singleServerInstall = "2";
|
||||
}
|
||||
else if (amazon_quick_install)
|
||||
{
|
||||
cout << "===== Quick Install Amazon Configuration =====" << endl << endl;
|
||||
|
||||
cout << "Amazon AMI EC2 install defaulting to using local storage" << endl;
|
||||
|
||||
singleServerInstall = "2";
|
||||
}
|
||||
else
|
||||
@ -856,7 +860,29 @@ int main(int argc, char* argv[])
|
||||
|
||||
if (temp == "1")
|
||||
{
|
||||
singleServerInstall = temp;
|
||||
singleServerInstall = "1";
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (temp == "2")
|
||||
{
|
||||
singleServerInstall = "2";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
cout << "Invalid Entry, please re-enter" << endl;
|
||||
|
||||
if ( noPrompting )
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// perform single server install
|
||||
if (singleServerInstall == "1")
|
||||
{
|
||||
cout << endl << "Performing the Single Server Install." << endl << endl;
|
||||
|
||||
if ( reuseConfig == "n" )
|
||||
@ -940,26 +966,8 @@ int main(int argc, char* argv[])
|
||||
system(cmd.c_str());
|
||||
exit(0);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (temp == "2")
|
||||
{
|
||||
singleServerInstall = temp;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
cout << "Invalid Entry, please re-enter" << endl;
|
||||
|
||||
if ( noPrompting )
|
||||
exit(1);
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
// perform multi-node install
|
||||
|
||||
try
|
||||
{
|
||||
|
@ -55,6 +55,7 @@ else
|
||||
fi
|
||||
|
||||
if [[ $HOME = "/root" ]]; then
|
||||
echo ""
|
||||
echo "${bold}Run post-install script${normal}"
|
||||
echo ""
|
||||
/usr/local/mariadb/columnstore/bin/post-install
|
||||
@ -70,13 +71,14 @@ else
|
||||
echo ""
|
||||
$HOME/mariadb/columnstore/bin/post-install --installdir=$HOME/mariadb/columnstore
|
||||
|
||||
tmpDir=`$HOME/mariadb/columnstore/bin/getConfig SystemConfig SystemTempFileDir`
|
||||
export COLUMNSTORE_INSTALL_DIR=$HOME/mariadb/columnstore
|
||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/mariadb/columnstore/lib:$HOME/mariadb/columnstore/mysql/lib
|
||||
|
||||
echo "${bold}Run postConfigure script${normal}"
|
||||
echo ""
|
||||
if [[ $umCount = "" ]]; then
|
||||
. $tmpDir;$HOME/mariadb/columnstore/bin/postConfigure -i $HOME/mariadb/columnstore -qa -pm-count $pmCount $systemName -d
|
||||
$HOME/mariadb/columnstore/bin/postConfigure -i $HOME/mariadb/columnstore -qa -pm-count $pmCount $systemName -d
|
||||
else
|
||||
. $tmpDir;$HOME/mariadb/columnstore/bin/postConfigure -i $HOME/mariadb/columnstore -qa -pm-count $pmCount -um-count $umCount $systemName -d
|
||||
$HOME/mariadb/columnstore/bin/postConfigure -i $HOME/mariadb/columnstore -qa -pm-count $pmCount -um-count $umCount $systemName -d
|
||||
fi
|
||||
fi
|
||||
|
@ -61,6 +61,7 @@ else
|
||||
fi
|
||||
|
||||
if [[ $HOME = "/root" ]]; then
|
||||
echo ""
|
||||
echo "${bold}Run post-install script${normal}"
|
||||
echo ""
|
||||
/usr/local/mariadb/columnstore/bin/post-install
|
||||
@ -72,17 +73,19 @@ if [[ $HOME = "/root" ]]; then
|
||||
/usr/local/mariadb/columnstore/bin/postConfigure -qm -pm-ip-addrs $pmIpAddrs -um-ip-addrs $umIpAddrs $nonDistrubutedInstall $systemName
|
||||
fi
|
||||
else
|
||||
echo ""
|
||||
echo "${bold}Run post-install script${normal}"
|
||||
echo ""
|
||||
$HOME/mariadb/columnstore/bin/post-install --installdir=$HOME/mariadb/columnstore
|
||||
|
||||
tmpDir=`$HOME/mariadb/columnstore/bin/getConfig SystemConfig SystemTempFileDir`
|
||||
export COLUMNSTORE_INSTALL_DIR=$HOME/mariadb/columnstore
|
||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/mariadb/columnstore/lib:$HOME/mariadb/columnstore/mysql/lib
|
||||
|
||||
echo "${bold}Run postConfigure script${normal}"
|
||||
echo ""
|
||||
if [[ $umIpAddrs = "" ]]; then
|
||||
. $tmpDir;$HOME/mariadb/columnstore/bin/postConfigure -i $HOME/mariadb/columnstore -qm -pm-ip-addrs $pmIpAddrs $nonDistrubutedInstall $systemName
|
||||
$HOME/mariadb/columnstore/bin/postConfigure -i $HOME/mariadb/columnstore -qm -pm-ip-addrs $pmIpAddrs $nonDistrubutedInstall $systemName
|
||||
else
|
||||
. $tmpDir;$HOME/mariadb/columnstore/bin/postConfigure -i $HOME/mariadb/columnstore -qm -pm-ip-addrs $pmIpAddrs -um-ip-addrs $umIpAddrs $nonDistrubutedInstall $systemName
|
||||
$HOME/mariadb/columnstore/bin/postConfigure -i $HOME/mariadb/columnstore -qm -pm-ip-addrs $pmIpAddrs -um-ip-addrs $umIpAddrs $nonDistrubutedInstall $systemName
|
||||
fi
|
||||
fi
|
||||
|
@ -18,6 +18,7 @@ done
|
||||
|
||||
|
||||
if [ $HOME == "/root" ]; then
|
||||
echo ""
|
||||
echo "Run post-install script"
|
||||
echo ""
|
||||
/usr/local/mariadb/columnstore/bin/post-install
|
||||
@ -29,9 +30,10 @@ else
|
||||
echo ""
|
||||
$HOME/mariadb/columnstore/bin/post-install --installdir=$HOME/mariadb/columnstore
|
||||
|
||||
tmpDir=`$HOME/mariadb/columnstore/bin/getConfig SystemConfig SystemTempFileDir`
|
||||
export COLUMNSTORE_INSTALL_DIR=$HOME/mariadb/columnstore
|
||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/mariadb/columnstore/lib:$HOME/mariadb/columnstore/mysql/lib
|
||||
|
||||
echo "Run postConfigure script"
|
||||
echo ""
|
||||
. $tmpDir; $HOME/mariadb/columnstore/bin/postConfigure -i $HOME/mariadb/columnstore -qs
|
||||
$HOME/mariadb/columnstore/bin/postConfigure -i $HOME/mariadb/columnstore -qs
|
||||
fi
|
||||
|
Reference in New Issue
Block a user