You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-07 03:22:57 +03:00
MCOL-462
This commit is contained in:
@@ -443,10 +443,6 @@
|
||||
<SystemLogConfigFile>unassigned</SystemLogConfigFile>
|
||||
<rpw>mariadb1</rpw>
|
||||
<Cloud>unassigned</Cloud>
|
||||
<AmazonAccessKey>unassigned</AmazonAccessKey>
|
||||
<AmazonSecretKey>unassigned</AmazonSecretKey>
|
||||
<AmazonZone>unassigned</AmazonZone>
|
||||
<AmazonSubNetID>unassigned</AmazonSubNetID>
|
||||
<AmazonVPCNextPrivateIP>autoassign</AmazonVPCNextPrivateIP>
|
||||
<UMInstanceType>unassigned</UMInstanceType>
|
||||
<UMSecurityGroup>unassigned</UMSecurityGroup>
|
||||
@@ -466,8 +462,6 @@
|
||||
<GlusterCopies>0</GlusterCopies>
|
||||
<GlusterStorageType>unassigned</GlusterStorageType>
|
||||
<CoreFileFlag>n</CoreFileFlag>
|
||||
<JavaHome>unassigned</JavaHome>
|
||||
<JavaPath>unassigned</JavaPath>
|
||||
<MySQLPort>3306</MySQLPort>
|
||||
<MySQLPasswordConfig>unassigned</MySQLPasswordConfig>
|
||||
<AmazonDeviceName>/dev/xvd</AmazonDeviceName>
|
||||
|
@@ -4863,16 +4863,6 @@ int processCommand(string* arguments)
|
||||
}
|
||||
catch(...) {}
|
||||
|
||||
if ( cloud == "amazon-vpc" )
|
||||
{
|
||||
string AmazonSubNetID = oam::UnassignedName;
|
||||
try{
|
||||
oam.getSystemConfig("AmazonSubNetID", AmazonSubNetID);
|
||||
|
||||
cout << "AmazonSubNetID = " << AmazonSubNetID << endl;
|
||||
}
|
||||
catch(...) {}
|
||||
}
|
||||
}
|
||||
|
||||
cout << endl;
|
||||
|
@@ -153,7 +153,6 @@ bool thread_remote_installer = true;
|
||||
string singleServerInstall = "1";
|
||||
string reuseConfig ="n";
|
||||
string oldFileName;
|
||||
string AmazonRegion;
|
||||
string glusterCopies;
|
||||
string glusterInstalled = "n";
|
||||
string hadoopInstalled = "n";
|
||||
@@ -833,7 +832,6 @@ int main(int argc, char *argv[])
|
||||
|
||||
//amazon install setup check
|
||||
bool amazonInstall = false;
|
||||
string amazonSubNet = oam::UnassignedName;
|
||||
string cloud = oam::UnassignedName;
|
||||
system("aws --version > /tmp/amazon.log 2>&1");
|
||||
|
||||
@@ -905,8 +903,6 @@ int main(int argc, char *argv[])
|
||||
|
||||
if ( amazonInstall )
|
||||
{
|
||||
bool noKey = false;
|
||||
|
||||
string cmd = installDir + "/bin/MCSgetCredentials.sh >/dev/null 2>&1";
|
||||
int rtnCode = system(cmd.c_str());
|
||||
if ( WEXITSTATUS(rtnCode) != 0 ) {
|
||||
@@ -921,50 +917,8 @@ int main(int argc, char *argv[])
|
||||
exit(1);
|
||||
}
|
||||
|
||||
sleep(1);
|
||||
|
||||
//get subnetID
|
||||
try {
|
||||
amazonSubNet = sysConfig->getConfig(InstallSection, "AmazonSubNetID");
|
||||
}
|
||||
catch(...)
|
||||
{}
|
||||
|
||||
if ( amazonSubNet == oam::UnassignedName )
|
||||
{
|
||||
//check if this is a vpc system by checking for subnet setup
|
||||
amazonSubNet = oam.getEC2LocalInstanceSubnet();
|
||||
// cout << "amazonSubNet = " << amazonSubNet << endl;
|
||||
if ( amazonSubNet == "failed" || amazonSubNet == "" )
|
||||
{
|
||||
amazonSubNet = oam::UnassignedName;
|
||||
cloud = "amazon-ec2";
|
||||
}
|
||||
else
|
||||
{
|
||||
cloud = "amazon-vpc";
|
||||
}
|
||||
|
||||
//set subnetID
|
||||
try {
|
||||
sysConfig->setConfig(InstallSection, "AmazonSubNetID", amazonSubNet);
|
||||
}
|
||||
catch(...)
|
||||
{}
|
||||
}
|
||||
else
|
||||
cloud = "amazon-vpc";
|
||||
|
||||
try {
|
||||
sysConfig->setConfig(InstallSection, "Cloud", cloud);
|
||||
}
|
||||
catch(...)
|
||||
{}
|
||||
}
|
||||
else
|
||||
{
|
||||
try {
|
||||
sysConfig->setConfig(InstallSection, "Cloud", oam::UnassignedName);
|
||||
sysConfig->setConfig(InstallSection, "Cloud", "amazon-vpc");
|
||||
}
|
||||
catch(...)
|
||||
{}
|
||||
@@ -993,6 +947,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
cout << endl;
|
||||
|
||||
// prompt for system name
|
||||
setSystemName();
|
||||
|
||||
cout << endl;
|
||||
|
@@ -147,20 +147,7 @@ int main(int argc, char *argv[])
|
||||
{}
|
||||
|
||||
bool build40 = false;
|
||||
if ( !CoreFileFlag.empty() )
|
||||
build40 = true;
|
||||
|
||||
//build 4.0.1 flag
|
||||
string AmazonSubNetID;
|
||||
try {
|
||||
AmazonSubNetID = sysConfigNew->getConfig(InstallSection, "AmazonSubNetID");
|
||||
}
|
||||
catch(...)
|
||||
{}
|
||||
|
||||
bool build401 = false;
|
||||
if ( !AmazonSubNetID.empty() )
|
||||
build401 = true;
|
||||
bool build401 = true;
|
||||
|
||||
//set install config flag
|
||||
try {
|
||||
@@ -1283,18 +1270,13 @@ int main(int argc, char *argv[])
|
||||
//
|
||||
if (build3) {
|
||||
//setup cloud parameters
|
||||
string x509Cert;
|
||||
string x509PriKey;
|
||||
string UMStorageType;
|
||||
string rpw;
|
||||
string PMInstanceType;
|
||||
string UMInstanceType;
|
||||
string UMSecurityGroup;
|
||||
string UMVolumeSize;
|
||||
string PMVolumeSize;
|
||||
string AmazonAutoTagging;
|
||||
string AmazonRegion;
|
||||
string AmazonZone;
|
||||
string AmazonVPCNextPrivateIP;
|
||||
string AmazonDeviceName;
|
||||
string UMVolumeType;
|
||||
@@ -1305,20 +1287,14 @@ int main(int argc, char *argv[])
|
||||
|
||||
try {
|
||||
cloud = sysConfigOld->getConfig(InstallSection, "Cloud");
|
||||
x509Cert = sysConfigOld->getConfig(InstallSection, "AmazonX509Certificate");
|
||||
x509PriKey = sysConfigOld->getConfig(InstallSection, "AmazonX509PrivateKey");
|
||||
UMStorageType = sysConfigOld->getConfig(InstallSection, "UMStorageType");
|
||||
rpw = sysConfigOld->getConfig(InstallSection, "rpw");
|
||||
PMInstanceType = sysConfigOld->getConfig(InstallSection, "PMInstanceType");
|
||||
UMInstanceType = sysConfigOld->getConfig(InstallSection, "UMInstanceType");
|
||||
UMSecurityGroup = sysConfigOld->getConfig(InstallSection, "UMSecurityGroup");
|
||||
UMVolumeSize = sysConfigOld->getConfig(InstallSection, "UMVolumeSize");
|
||||
PMVolumeSize = sysConfigOld->getConfig(InstallSection, "PMVolumeSize");
|
||||
AmazonAutoTagging = sysConfigOld->getConfig(InstallSection, "AmazonAutoTagging");
|
||||
AmazonRegion = sysConfigOld->getConfig(InstallSection, "AmazonRegion");
|
||||
AmazonZone = sysConfigOld->getConfig(InstallSection, "AmazonZone");
|
||||
AmazonVPCNextPrivateIP = sysConfigOld->getConfig(InstallSection, "AmazonVPCNextPrivateIP");
|
||||
AmazonSubNetID = sysConfigOld->getConfig(InstallSection, "AmazonSubNetID");
|
||||
AmazonDeviceName = sysConfigOld->getConfig(InstallSection, "AmazonDeviceName");
|
||||
UMVolumeType = sysConfigOld->getConfig(InstallSection, "UMVolumeType");
|
||||
UMVolumeIOPS = sysConfigOld->getConfig(InstallSection, "UMVolumeIOPS");
|
||||
@@ -1355,13 +1331,10 @@ int main(int argc, char *argv[])
|
||||
cloud = oam::UnassignedName;
|
||||
if ( cloud == "amazon")
|
||||
cloud = "amazon-ec2";
|
||||
if ( AmazonSubNetID.empty() )
|
||||
AmazonSubNetID = oam::UnassignedName;
|
||||
if ( AmazonVPCNextPrivateIP.empty() )
|
||||
AmazonVPCNextPrivateIP = oam::UnassignedName;
|
||||
|
||||
try {
|
||||
sysConfigNew->setConfig(InstallSection, "AmazonSubNetID", AmazonSubNetID);
|
||||
sysConfigNew->setConfig(InstallSection, "AmazonVPCNextPrivateIP", AmazonVPCNextPrivateIP);
|
||||
}
|
||||
catch(...)
|
||||
@@ -1373,18 +1346,13 @@ int main(int argc, char *argv[])
|
||||
|
||||
try {
|
||||
sysConfigNew->setConfig(InstallSection, "Cloud", cloud);
|
||||
sysConfigNew->setConfig(InstallSection, "AmazonX509Certificate", x509Cert);
|
||||
sysConfigNew->setConfig(InstallSection, "AmazonX509PrivateKey", x509PriKey);
|
||||
sysConfigNew->setConfig(InstallSection, "UMStorageType", UMStorageType);
|
||||
sysConfigNew->setConfig(InstallSection, "rpw", rpw);
|
||||
sysConfigNew->setConfig(InstallSection, "PMInstanceType", PMInstanceType);
|
||||
sysConfigNew->setConfig(InstallSection, "UMInstanceType", UMInstanceType);
|
||||
sysConfigNew->setConfig(InstallSection, "UMSecurityGroup", UMSecurityGroup);
|
||||
sysConfigNew->setConfig(InstallSection, "UMVolumeSize", UMVolumeSize);
|
||||
sysConfigNew->setConfig(InstallSection, "PMVolumeSize", PMVolumeSize);
|
||||
sysConfigNew->setConfig(InstallSection, "AmazonAutoTagging", AmazonAutoTagging);
|
||||
sysConfigNew->setConfig(InstallSection, "AmazonRegion", AmazonRegion);
|
||||
sysConfigNew->setConfig(InstallSection, "AmazonZone", AmazonZone);
|
||||
sysConfigNew->setConfig(InstallSection, "AmazonDeviceName", AmazonDeviceName);
|
||||
|
||||
sysConfigNew->setConfig(InstallSection, "UMVolumeType", UMVolumeType);
|
||||
|
Reference in New Issue
Block a user