You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-12-18 13:54:11 +03:00
move down some of the config variables
This commit is contained in:
@@ -130,53 +130,6 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
setlocale(LC_ALL, systemLang.c_str());
|
setlocale(LC_ALL, systemLang.c_str());
|
||||||
|
|
||||||
// if amazon cloud, check and update Instance IP Addresses and volumes
|
|
||||||
try {
|
|
||||||
oam.getSystemConfig( "Cloud", cloud);
|
|
||||||
}
|
|
||||||
catch(...) {}
|
|
||||||
|
|
||||||
if ( cloud == "amazon-ec2" ) {
|
|
||||||
if(!aMonitor.amazonIPCheck()) {
|
|
||||||
log.writeLog(__LINE__, "ERROR: amazonIPCheck failed, exiting", LOG_TYPE_CRITICAL);
|
|
||||||
sleep(2);
|
|
||||||
string cmd = startup::StartUp::installDir() + "/bin/columnstore stop > /dev/null 2>&1";
|
|
||||||
system(cmd.c_str());
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//get gluster config
|
|
||||||
try {
|
|
||||||
oam.getSystemConfig( "GlusterConfig", GlusterConfig);
|
|
||||||
}
|
|
||||||
catch(...)
|
|
||||||
{
|
|
||||||
GlusterConfig = "n";
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( GlusterConfig == "y" ) {
|
|
||||||
system("mount -a > /dev/null 2>&1");
|
|
||||||
}
|
|
||||||
|
|
||||||
//hdfs / hadoop config
|
|
||||||
string DBRootStorageType;
|
|
||||||
try {
|
|
||||||
oam.getSystemConfig( "DBRootStorageType", DBRootStorageType);
|
|
||||||
}
|
|
||||||
catch(...) {}
|
|
||||||
|
|
||||||
if ( DBRootStorageType == "hdfs" )
|
|
||||||
HDFS = true;
|
|
||||||
|
|
||||||
//PMwithUM config
|
|
||||||
try {
|
|
||||||
oam.getSystemConfig( "PMwithUM", PMwithUM);
|
|
||||||
}
|
|
||||||
catch(...) {
|
|
||||||
PMwithUM = "n";
|
|
||||||
}
|
|
||||||
|
|
||||||
//define entry if missing
|
//define entry if missing
|
||||||
Config* sysConfig = Config::makeConfig();
|
Config* sysConfig = Config::makeConfig();
|
||||||
if ( gOAMParentModuleFlag )
|
if ( gOAMParentModuleFlag )
|
||||||
@@ -416,6 +369,53 @@ int main(int argc, char **argv)
|
|||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// if amazon cloud, check and update Instance IP Addresses and volumes
|
||||||
|
try {
|
||||||
|
oam.getSystemConfig( "Cloud", cloud);
|
||||||
|
}
|
||||||
|
catch(...) {}
|
||||||
|
|
||||||
|
if ( cloud == "amazon-ec2" ) {
|
||||||
|
if(!aMonitor.amazonIPCheck()) {
|
||||||
|
log.writeLog(__LINE__, "ERROR: amazonIPCheck failed, exiting", LOG_TYPE_CRITICAL);
|
||||||
|
sleep(2);
|
||||||
|
string cmd = startup::StartUp::installDir() + "/bin/columnstore stop > /dev/null 2>&1";
|
||||||
|
system(cmd.c_str());
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//get gluster config
|
||||||
|
try {
|
||||||
|
oam.getSystemConfig( "GlusterConfig", GlusterConfig);
|
||||||
|
}
|
||||||
|
catch(...)
|
||||||
|
{
|
||||||
|
GlusterConfig = "n";
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( GlusterConfig == "y" ) {
|
||||||
|
system("mount -a > /dev/null 2>&1");
|
||||||
|
}
|
||||||
|
|
||||||
|
//hdfs / hadoop config
|
||||||
|
string DBRootStorageType;
|
||||||
|
try {
|
||||||
|
oam.getSystemConfig( "DBRootStorageType", DBRootStorageType);
|
||||||
|
}
|
||||||
|
catch(...) {}
|
||||||
|
|
||||||
|
if ( DBRootStorageType == "hdfs" )
|
||||||
|
HDFS = true;
|
||||||
|
|
||||||
|
//PMwithUM config
|
||||||
|
try {
|
||||||
|
oam.getSystemConfig( "PMwithUM", PMwithUM);
|
||||||
|
}
|
||||||
|
catch(...) {
|
||||||
|
PMwithUM = "n";
|
||||||
|
}
|
||||||
|
|
||||||
//check if module is in a DISABLED state
|
//check if module is in a DISABLED state
|
||||||
bool DISABLED = false;
|
bool DISABLED = false;
|
||||||
if ( moduleStatus == oam::MAN_DISABLED ||
|
if ( moduleStatus == oam::MAN_DISABLED ||
|
||||||
|
|||||||
Reference in New Issue
Block a user