You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
MCOL-520
This commit is contained in:
@ -58,7 +58,6 @@ namespace execplan
|
|||||||
* SessionMonitor/SharedMemoryTmpFile: the file to store the shared memory segment
|
* SessionMonitor/SharedMemoryTmpFile: the file to store the shared memory segment
|
||||||
* data in. This needs to be a different file than
|
* data in. This needs to be a different file than
|
||||||
* file used for the SessionManager/SharedMemoryTmpFile.
|
* file used for the SessionManager/SharedMemoryTmpFile.
|
||||||
* The default is /tmp/CalpontMonShm.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -79,9 +79,6 @@ void setupCwd()
|
|||||||
workdir = ".";
|
workdir = ".";
|
||||||
|
|
||||||
(void)chdir(workdir.c_str());
|
(void)chdir(workdir.c_str());
|
||||||
|
|
||||||
if (access(".", W_OK) != 0)
|
|
||||||
(void)chdir("/tmp");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void added_a_pm(int)
|
void added_a_pm(int)
|
||||||
|
@ -1324,9 +1324,6 @@ void setupCwd(ResourceManager* rm)
|
|||||||
{
|
{
|
||||||
string workdir = startup::StartUp::tmpDir();
|
string workdir = startup::StartUp::tmpDir();
|
||||||
(void)chdir(workdir.c_str());
|
(void)chdir(workdir.c_str());
|
||||||
|
|
||||||
if (access(".", W_OK) != 0)
|
|
||||||
(void)chdir("/tmp");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void startRssMon(size_t maxPct, int pauseSeconds)
|
void startRssMon(size_t maxPct, int pauseSeconds)
|
||||||
|
@ -56,6 +56,8 @@ using namespace config;
|
|||||||
#include "helpers.h"
|
#include "helpers.h"
|
||||||
using namespace installer;
|
using namespace installer;
|
||||||
|
|
||||||
|
#include "installdir.h"
|
||||||
|
|
||||||
typedef struct Module_struct
|
typedef struct Module_struct
|
||||||
{
|
{
|
||||||
std::string moduleName;
|
std::string moduleName;
|
||||||
@ -169,6 +171,8 @@ int main(int argc, char* argv[])
|
|||||||
|
|
||||||
if (p && *p)
|
if (p && *p)
|
||||||
USER = p;
|
USER = p;
|
||||||
|
|
||||||
|
string tmpDir = startup::StartUp::tmpDir();
|
||||||
|
|
||||||
// setup to start on reboot, for non-root amazon installs
|
// setup to start on reboot, for non-root amazon installs
|
||||||
if ( !rootUser )
|
if ( !rootUser )
|
||||||
@ -882,17 +886,18 @@ int main(int argc, char* argv[])
|
|||||||
{
|
{
|
||||||
cout << " DONE" << endl;
|
cout << " DONE" << endl;
|
||||||
|
|
||||||
cmd = installDir + "/bin/dbbuilder 7 > /tmp/dbbuilder.log";
|
string logFile = tmpDir + "/dbbuilder.log";
|
||||||
|
cmd = installDir + "/bin/dbbuilder 7 > " + logFile;
|
||||||
system(cmd.c_str());
|
system(cmd.c_str());
|
||||||
|
|
||||||
if (oam.checkLogStatus("/tmp/dbbuilder.log", "System Catalog created") )
|
if (oam.checkLogStatus(logFile, "System Catalog created") )
|
||||||
cout << endl << "System Catalog Successfull Created" << endl;
|
cout << endl << "System Catalog Successfull Created" << endl;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ( !oam.checkLogStatus("/tmp/dbbuilder.log", "System catalog appears to exist") )
|
if ( !oam.checkLogStatus(logFile, "System catalog appears to exist") )
|
||||||
{
|
{
|
||||||
cout << endl << "System Catalog Create Failure" << endl;
|
cout << endl << "System Catalog Create Failure" << endl;
|
||||||
cout << "Check latest log file in /tmp/dbbuilder.log.*" << endl;
|
cout << "Check latest log file in " << logFile" << endl;
|
||||||
cout << " IMPORTANT: Once issue has been resolved, rerun postConfigure" << endl << endl;
|
cout << " IMPORTANT: Once issue has been resolved, rerun postConfigure" << endl << endl;
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
|
@ -34,6 +34,8 @@
|
|||||||
#include "loggingid.h"
|
#include "loggingid.h"
|
||||||
#include "alarmmanager.h"
|
#include "alarmmanager.h"
|
||||||
|
|
||||||
|
#include "installdir.h"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace oam;
|
using namespace oam;
|
||||||
using namespace alarmmanager;
|
using namespace alarmmanager;
|
||||||
@ -80,11 +82,15 @@ int main (int argc, char** argv)
|
|||||||
string highCritical;
|
string highCritical;
|
||||||
string highFatal;
|
string highFatal;
|
||||||
char* p;
|
char* p;
|
||||||
|
|
||||||
|
string tmpDir = startup::StartUp::tmpDir();
|
||||||
|
|
||||||
// loop forever reading the hardware status
|
// loop forever reading the hardware status
|
||||||
while (TRUE)
|
while (TRUE)
|
||||||
{
|
{
|
||||||
int returnCode = system("ipmitool sensor list > /tmp/harwareMonitor.txt");
|
string logFile = tmpDir + "/harwareMonitor.txt";
|
||||||
|
string cmd = "ipmitool sensor list > " + logFile;
|
||||||
|
int returnCode = system(cmd.c_str());
|
||||||
|
|
||||||
if (returnCode)
|
if (returnCode)
|
||||||
{
|
{
|
||||||
@ -95,12 +101,12 @@ int main (int argc, char** argv)
|
|||||||
|
|
||||||
// parse output file
|
// parse output file
|
||||||
|
|
||||||
ifstream File ("/tmp/harwareMonitor.txt");
|
ifstream File (logFile);
|
||||||
|
|
||||||
if (!File)
|
if (!File)
|
||||||
{
|
{
|
||||||
// System error
|
// System error
|
||||||
cout << "Error opening /tmp/harwareMonitor.txt!!!" << endl;
|
cout << "Error opening " << logFile << endl;
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user