Greenplum-cc-web监控软件安装
一环境列表
操作系统 centos6.5 64
Greenplum版本: greenplum-db-4.3.5.3-build-2-RHEL5-x86_64.tar
Greenplum集群环境搭建:参考http://blog.csdn.net/sunziyue/article/details/49026913
需求:在已经搭建的集群环境中安装Greenplum-cc-web
二操作步骤
1集群环境启动状态(在GreenplumMaster节点操作)
启动集群:
[gpadmin@master~]$su - gpadmin
[gpadmin@master~]$source/usr/local/greenplum-db/greenplum_path.sh
[gpadmin@master~]$exportMASTER_DATA_DIRECTORY=/gpmaster/gpseg-1
[gpadmin@master~]$gpstart
[gpadmin@master~]$gpstate
2运行gpperfmon_install命令
[gpadmin@master~]$gpperfmon_install --enable --password 123456 --port 5432
|
[gpadmin@master1 ~]$ gpperfmon_install --enable --password 123456 --port 5432 20160302:19:02:21:002810 gpperfmon_install:master1:gpadmin-[INFO]:-PGPORT=5432 psql -f /usr/local/greenplum-db/./lib/gpperfmon/gpperfmon3.sql template1 >& /dev/null 20160302:19:02:29:002810 gpperfmon_install:master1:gpadmin-[INFO]:-PGPORT=5432 psql -f /usr/local/greenplum-db/./lib/gpperfmon/gpperfmon4.sql gpperfmon >& /dev/null 20160302:19:02:29:002810 gpperfmon_install:master1:gpadmin-[INFO]:-PGPORT=5432 psql -f /usr/local/greenplum-db/./lib/gpperfmon/gpperfmon41.sql gpperfmon >& /dev/null 20160302:19:02:32:002810 gpperfmon_install:master1:gpadmin-[INFO]:-PGPORT=5432 psql -f /usr/local/greenplum-db/./lib/gpperfmon/gpperfmon42.sql gpperfmon >& /dev/null 20160302:19:02:34:002810 gpperfmon_install:master1:gpadmin-[INFO]:-PGPORT=5432 psql -f /usr/local/greenplum-db/./lib/gpperfmon/gpperfmonC.sql template1 >& /dev/null 20160302:19:02:34:002810 gpperfmon_install:master1:gpadmin-[INFO]:-PGPORT=5432 psql template1 -c "DROP ROLE IF EXISTS gpmon" >& /dev/null 20160302:19:02:34:002810 gpperfmon_install:master1:gpadmin-[INFO]:-PGPORT=5432 psql template1 -c "CREATE ROLE gpmon WITH SUPERUSER CREATEDB LOGIN ENCRYPTED PASSWORD '123456'" >& /dev/null 20160302:19:02:34:002810 gpperfmon_install:master1:gpadmin-[INFO]:-echo "local gpperfmon gpmon md5" >> /gpmaster/gpseg-1/pg_hba.conf 20160302:19:02:34:002810 gpperfmon_install:master1:gpadmin-[INFO]:-echo "host all gpmon 127.0.0.1/28 md5" >> /gpmaster/gpseg-1/pg_hba.conf 20160302:19:02:34:002810 gpperfmon_install:master1:gpadmin-[INFO]:-touch /home/gpadmin/.pgpass >& /dev/null 20160302:19:02:34:002810 gpperfmon_install:master1:gpadmin-[INFO]:-mv -f /home/gpadmin/.pgpass /home/gpadmin/.pgpass.1456974141 >& /dev/null 20160302:19:02:34:002810 gpperfmon_install:master1:gpadmin-[INFO]:-echo "*:5432:gpperfmon:gpmon:123456" >> /home/gpadmin/.pgpass 20160302:19:02:34:002810 gpperfmon_install:master1:gpadmin-[INFO]:-cat /home/gpadmin/.pgpass.1456974141 >> /home/gpadmin/.pgpass 20160302:19:02:34:002810 gpperfmon_install:master1:gpadmin-[INFO]:-chmod 0600 /home/gpadmin/.pgpass >& /dev/null 20160302:19:02:34:002810 gpperfmon_install:master1:gpadmin-[INFO]:-PGPORT=5432 gpconfig -c gp_enable_gpperfmon -v on >& /dev/null 20160302:19:02:42:002810 gpperfmon_install:master1:gpadmin-[INFO]:-PGPORT=5432 gpconfig -c gpperfmon_port -v 8888 >& /dev/null 20160302:19:02:48:002810 gpperfmon_install:master1:gpadmin-[INFO]:-PGPORT=5432 gpconfig -c gp_external_enable_exec -v on --masteronly >& /dev/null 20160302:19:02:54:002810 gpperfmon_install:master1:gpadmin-[INFO]:-PGPORT=5432 gpconfig -c gpperfmon_log_alert_level -v warning >& /dev/null 20160302:19:02:59:002810 gpperfmon_install:master1:gpadmin-[INFO]:-gpperfmon will be enabled after a full restart of GPDB |
gpperfmon_install 做以下工作:
创建greenplum监控用数据库(gpperfmon)
创建greenplum监控用数据库角色(gpmon),后面登陆网页时使用
配置greenplum数据库文件(pg_hba.conf和.pgpass)
设置postgresql.conf文件,增加启用监控相关的参数。
3重启greenplum数据库
[gpadmin@master~]$ gpstop -r
[gpadmin@master~]$ ps -ef |grep gpmmon |grep -v grep
4查看数据收集是否正常
[gpadmin@master~]$psql -d gpperfmon -c 'SELECT * FROM system_now;'
|
如果有Standby Master节点 配置Greenplum Standby Master节点: 在primarymaster上面执行: 1) 将primary master上面的$MASTER_DATA_DIRECTORY/pg_hba.conf拷贝到standby master的$MASTER_DATA_DIRECTORY/pg_hba.conf [gpadmin@master~]$ scp $MASTER_DATA_DIRECTORY/pg_hba.conf gpadmin@Standby:$MASTER_DATA_DIRECTORY/pg_hba.conf 2) 将primary master上面的~/.pgpass拷贝到standby master的~/.pgpass,并且文件权限修改为0600 [gpadmin@master~]$ scp ~/.pgpass gpadmin@Standby:~/.pgpass [gpadmin@master~]$ ssh gpadmin@ Standby -C "chmod 0600 ~/.pgpass" |
5安装GreenplumCommand Center Console
(1)下载greenplum-cc-web安装程序:greenplum-cc-web-1.3.0.2-build-14-RHEL5-x86_64 .zip
解压至/home/gpadmin/,执行 ./greenplum-cc-web-1.3.0.2-build-14-RHEL5-x86_64.bin
|
******************************************************************************** Do you accept the Pivotal Greenplum Database end user license agreement? [yes | no] ******************************************************************************** yes ******************************************************************************** Provide the installation path for Greenplum Command Center or press ENTER to accept the default installation path: /usr/local/greenplum-cc-web-1.3.0.2-build-14 ******************************************************************************** /home/gpadmin/greenplum-cc-web-1.3.0.2-build-14 ******************************************************************************** Install Greenplum Command Center into </home/gpadmin/greenplum-cc-web-1.3.0.2-build-14>? [yes | no] ******************************************************************************** yes ******************************************************************************** /home/gpadmin/greenplum-cc-web-1.3.0.2-build-14 does not exist. Create /home/gpadmin/greenplum-cc-web-1.3.0.2-build-14 ? [ yes | no ] (Selecting no will exit the installer) ******************************************************************************** yes Extracting product to /home/gpadmin/greenplum-cc-web-1.3.0.2-build-14 ******************************************************************************** Installation complete. Greenplum Command Center is installed in /home/gpadmin/greenplum-cc-web-1.3.0.2-build-14 To complete the environment configuration, please ensure that the gpcc_path.sh file is sourced. ******************************************************************************** |
(2) 将primary master的GP监控软件同时安装到到其他任何节点
[gpadmin@master~]$cd /home/gpadmin
[gpadmin@master~]$vi hostname
slave1
slave2
[gpadmin@master~]$source /home/gpadmin/greenplum-cc-web/gpcc_path.sh
[gpadmin@master~]$gpccinstall -f hostname //执行gpccinstall命令安装到其他节点
6设置CenterConsole(primary master节点操作)
(1)gpadmin用户,停止GP数据库
[gpadmin@master~]$gpstop
(2)启动GP数据库
[gpadmin@master~]source/usr/local/greenplum-db/greenplum_path.sh
[gpadmin@master~]exportMASTER_DATA_DIRECTORY=/gpmaster/gpseg-1
[gpadmin@master~]source /home/gpadmin/greenplum-cc-web/gpcc_path.sh
[gpadmin@master~]gpstart
(3)GP数据库实例起来后,用gpcmdr --setup命令设置Command Center Console:
[gpadmin@master~]gpcmdr --setup
|
Please enter a new instance name: > gpminsrtest //gp监控实例名,用于启停监控时指定 The web component of the Greenplum Command Center can connect to a monitor database on a remote Greenplum Database. Is the master host for the Greenplum Database remote? Yy|Nn (default=N): > n //监控节点是否和GP master同节点,N指同节点 The display name is shown in the web interface and does not need to be a hostname. What would you like to use for the display name for this instance: > srtest //GP监控页面显示的名字 What port does the Greenplum Database use? (default=5432): > 5432 Creating instance schema in GPDB. Please wait ... The Greenplum Command Center runs a small web server for the UI and web API. This web server by default runs on port 28080, but you may specify any available port. What port would you like the web server to use for this instance? (default=28080): > 28080 //访问端口 Users logging in to the Command Center must provide database user credentials. In order to protect user names and passwords, it is recommended that SSL be enabled. Do you want to enable SSL for the Web API Yy|Nn (default=N): > n Do you want to enable ipV6 for the Web API Yy|Nn (default=N): > n Do you want to enable Cross Site Request Forgery Protection for the Web API Yy|Nn (default=N): > n Do you want to copy the instance to a standby master host Yy|Nn (default=Y): > n Done writing lighttpd configuration to /home/gpadmin/greenplum-cc-web/./instances/gpminsrtest/conf/lighttpd.conf Done writing web UI configuration to /home/gpadmin/greenplum-cc-web/./instances/gpminsrtest/conf/gpperfmonui.conf Done writing web UI clustrs configuration to /home/gpadmin/greenplum-cc-web/./instances/gpminsrtest/conf/clusters.conf Greenplum Command Center UI configuration is now complete. If at a later date you want to change certain parameters, you can either re-run 'gpcmdr --setup' or edit the configuration file located at /home/gpadmin/greenplum-cc-web/./instances/gpminsrtest/conf/gpperfmonui.conf. The web UI for this instance is available at http://master1:28080/ You can now start the web UI for this instance by running: gpcmdr --start gpminsrtest No instances |
(4)启动GP监控
[gpadmin@master~]gpcmdr --start gpminsrtest
|
Starting instance gpminsrtest... Greenplum Command Center UI for instance 'gpminsrtest' - [RUNNING on PORT: 28080] |
[gpadmin@master~]lsof -i :28080 //查看端口状态
7使用浏览器访问http://master1:28080
用户名密码:gpmon/123456
- 顶
- 0
- 踩
Greenplum-cc-web监控软件安装的更多相关文章
- adobe cc最新版 软件安装与激活
adobe cc最新版 软件安装与激活:https://m.weike.fm/lecture/4912961 说明#:Adobe CC2017的所有软件都可以按照以上方法进行安装,如:Premier ...
- 普罗米修斯!Ubuntu下prometheus监控软件安装使用
*Prometheus* 是一个开源的服务监控系统和时间序列数据库 官方网站:prometheus.io 一.安装prometheus cd /usr/local/ #进入安装目录 wg ...
- Greenplum-cc-web监控软件安装时常见错误
错误error: 1.no pg_hba.conf entry for host “::1”, user “gpmon”, database “gpperfmon”, SSL off 解决: vi ...
- GreenPlum 大数据平台--web监控
一,安装web监控界面 01,准备 下载greenplum cc包,>> 解压缩 02,安装前配置 vim /greenplum/data/master/gpseg-/pg_hba.con ...
- Linux web工程部署远程必备软件安装
一.序 最近在将程序往linux上面部署,特此记录下部署步骤,待以后参考. web工程部署必备软件为:JDK.tomcat.数据库软件(oracle或mysql),远程监控.上传下载必备软件:VNC. ...
- 云锁Linux服务器安全软件安装及防护webshell、CC、XSS跨站攻击设置
无论我们在使用电脑,还是使用VPS/服务器的时候,最为担心的就是服务器是否有安全问题,尤其是网站服务器再遭受攻击的时候如何得到防护.对于大 部分站长用户来说,我们可能只会使用基础的环境,如果真遇到问题 ...
- Ubuntu 16.04安装ntopng流量监控软件
ntop官方在2012年就已经不再更新,取代的是ntopng.ntopng具有Web页面,适合做网络管理监控软件.比如监控局域网内多台机器的上网情况等. 不过这个东西感觉不太准,最好的方案应该把安装n ...
- 自动化监控软件之zabbix安装
自动化监控系统 cacti : 基于snmp(简单的网络管理协议)协议的监控软件,强大的绘图软件 缺点: 自带的监控模板比较少,不能默认 自带监控报警功能(只能自己去官网下载模板) Nagios: 插 ...
- 企业级监控软件zabbix搭建部署之zabbix server的安装
企业级监控软件zabbix搭建部署之zabbix server的安装 zabbix线上已经应用半年多了,关于zabbix在生产环境中的使用心得,以及一些经验写下来,希望让大家少走弯路,共同学习! 环境 ...
随机推荐
- PHP只显示姓名首尾字符,隐藏中间字符并用*替换
//测试时文件的编码方式要是UTF8 $str='中文a字1符'; echo strlen($str).'<br>';//14 echo mb_strlen($str,'utf8').'& ...
- JVM——代空间的划分
首先看在JVM的堆中,按代的划分: Young:主要是用来存放新生的对象. Old:主要存放应用程序中生命周期长的内存对象. Permanent:是指内存的永久保存区域,主要存放Class和Meta的 ...
- Deepin Linux已经做得相当不错了
很庆幸,用了MacBook Pro三四年后,还会想要用Linux做桌面,一方面说明自己还是年轻的,保持着愿意折腾的心态:另一方面,也确实发现macOS的桌面环境并不如传说中的稳定和好用. Deepin ...
- SQL SERVER 事务和锁
内容皆整理自网络 一.事务 作者:郭无心链接:https://www.zhihu.com/question/31346392/answer/59815366来源:知乎著作权归作者所有.商业转载请联系作 ...
- jQuery笔记三——text/html/val/attr/prop
1.获得内容 三个简单实用的用于 DOM 操作的 jQuery 方法: text() - 设置或返回所选元素的文本内容 html() - 设置或返回所选元素的内容(包括 HTML 标记) val() ...
- docker监控
[编者的话]这篇文章作者是Usman,他是服务器和基础架构工程师,有非常丰富的分布式构建经验.该篇文章主要分析评估了五种Docker监控工具,包括免费的和不免费的:Docker Stats.CAdvi ...
- Bootstrap 里的 popover 被挡住的解决方案
在Bootstarp 中我们可以使用 popover 插件做一些内容的展示, 代码如下: <a data-toggle="popover" data-placement=&q ...
- Java零拷贝
1.摘要 零拷贝的“零”是指用户态和内核态间copy数据的次数为零. 传统的数据copy(文件到文件.client到server等)涉及到四次用户态内核态切换.四次copy.四次copy中,两次在用户 ...
- Sword STL之仿函数概念介绍
--介绍 函数和类似函数的对象(仿函数)遍布STL.关联容器使用它们来使元素保持有序:find_if这样的算法使用它们来控制它们的行为: 如果缺少它们,那么比如for_each和transform这样 ...
- C++ 定时器任务类实现
#ifndef __TIMERTASK_H_ #define __TIMERTASK_H_ /* 定时器任务基类 */ #include "asr_taskinterface.h" ...