Uninstalling Greenplum Command Center
To uninstall Greenplum Command Center, you must stop both the Command Center Console and disable the data collection agents. Optionally, you may also remove any data associated with Greenplum Command Center by removing your Command Center Console installation and the Command Center database.
Stop Command Center Console if it is currently running. For example:
$ gpcmdr --stop
Remove the Command Center installation directory from all hosts. For example:
$ rm -rf /usr/local/greenplum-cc-web-version
Disable the Data Collection Agents.
Log in to the master host as the Greenplum administrative user (
$ su - gpadmin
$MASTER_DATA_DIRECTORY/postgresql.conffile and disable the data collection agents:
gp_enable_gpperfmon = off
Remove or comment out the gpmon entries in
pg_hba.conf. For example:
#local gpperfmon gpmon md5 #host gpperfmon gpmon 0.0.0.0/0 md5
Drop the Command Center superuser role from the database. For example:
$ psql template1 -c 'DROP ROLE gpmon;'
Restart the Greenplum Database instance:
$ gpstop -r
Clean up any uncommitted Command Center data and log files that reside on the master file system:
$ rm -rf $MASTER_DATA_DIRECTORY/gpperfmon/data/* $ rm -rf $MASTER_DATA_DIRECTORY/gpperfmon/logs/*
If you do not want to keep your historical Command Center data, drop the gpperfmon database:
$ dropdb gpperfmon