GreenPlum 大数据平台--web监控
一,安装web监控界面
01,准备
下载greenplum cc包,>>
解压缩
02,安装前配置
vim /greenplum/data/master/gpseg-/pg_hba.conf
local gpperfmon gpmon trust
host all gpmon 127.0.0.1/ trust
host all gpmon ::/ trust 配置 export PGDATA=/greenplum/data/master/gpseg-1/
03,安装
./gpccinstall-4.1.1
缺少用户,执行以下命令
gpperfmon_install --enable --password 123456 --port 5432
然后继续执行安装命令
[gpadmin@greenplum01 greenplum-cc-web-4.6.-LINUX-x86_64]$ ./gpccinstall-4.6.
*** IMPORTANT INFORMATION - PLEASE READ CAREFULLY *** PIVOTAL GREENPLUM DATABASE END USER LICENSE AGREEMENT IMPORTANT - READ CAREFULLY: This Software contains computer programs and
other proprietary material and information, the use of which is subject to
and expressly conditioned upon acceptance of this End User License
Agreement ("EULA"). .................(慢慢点跳过)
Rev: Pivotal_GPDB_EULA_03182014.txt
I HAVE READ AND AGREE TO THE TERMS OF THE ABOVE PIVOTAL GREENPLUM DATABASE
END USER LICENSE AGREEMENT.
Do you agree to the Pivotal Greenplum Command Center End User License Agreement? Yy/Nn (Default=Y)
Y Where would you like to install Greenplum Command Center? (Default=/usr/local)
/home/gpadmin/greenplum-web Path not exist, create it? Yy/Nn (Default=Y)
y What would you like to name this installation of Greenplum Command Center? (Default=gpcc) What port would you like gpcc webserver to use? (Default=) Would you like to enable kerberos? Yy/Nn (Default=N) Would you like enable SSL? Yy/Nn (Default=N) Please choose a display language (Default=English)
. English
. Chinese // :: GPCC [version 4.6.] may not be fully compatible with GPDB [installed version 5.16].
Please reference the version compatibility in the GPCC documentation (gpcc.docs.pivotal.io/) Installation in progress...
// ::
Successfully installed Greenplum Command Center.
gpscp -h greenplum02 $MASTER_DATA_DIRECTORY/pg_hba.conf =:$MASTER_DATA_DIRECTORY/
gpscp -h greenplum02 ~/.pgpass =:~/
04,查看
[gpadmin@greenplum01 greenplum-cc-web-4.6.-LINUX-x86_64]$ psql -d 'gpperfmon' -c 'select * from system_now;' ctime | hostname | mem_total | mem_used | mem_actual_used | mem_actual_free | swap_total | swap_used | swap_
page_in | swap_page_out | cpu_user | cpu_sys | cpu_idle | load0 | load1 | load2 | quantum | disk_ro_rate | di
sk_wo_rate | disk_rb_rate | disk_wb_rate | net_rp_rate | net_wp_rate | net_rb_rate | net_wb_rate
-------+----------+-----------+----------+-----------------+-----------------+------------+-----------+------
--------+---------------+----------+---------+----------+-------+-------+-------+---------+--------------+---
-----------+--------------+--------------+-------------+-------------+-------------+-------------
( rows) [gpadmin@greenplum01 greenplum-cc-web-4.6.-LINUX-x86_64]$
二,配置环境变量
01,所有机器:
.bash_profile里面添加 source /home/gpadmin/greenplum-web/greenplum-cc-web-4.6./gpcc_path.sh
然后source .bashrc
02,启动服务
gpcc start
添加允许客户端
host all gpmon 192.168.0.221/ md5
03,访问
账号:gpmon 密码123456
常用:
gpstart 默认安装完成会自动开启,启动数据库 gpstate{-f 查看standby状态} 查看数据库状态 gpstop 关闭数据库 psql -l 列出所有数据库 gpstop -M fast 快速关闭 gpstop –r 重启 gpstop –u 重新加载配置文件 createdb -p -e -U gpadmin dbname 创建数据库 gpconfig -c 参数名称 -v 参数值(若果master和segment不一样,name在后面指定-m master参数值) 批量修改系统配置文件参数
alter role gpadmin with password '123456'; --户名创建密码 select * from gp_segment_configuration; --查看segment配置 select * from pg_filespace_entry; --查看文件系统 \d+ <tablename> --查看表结构 \dt --显示表 \l --显示数据库 \q 退出
GreenPlum 大数据平台--web监控的更多相关文章
- GreenPlum 大数据平台--监控
数据库状态监控活动 活动 过程 纠正措施 列出当前状态为down的Segment.如果有任何行被返回,就会生成一个警告或者告警. 推荐频率:每5到10分钟 重要度: IMPORTANT 在postgr ...
- GreenPlum 大数据平台--介绍
一,GreenPlum 01,介绍: Greenplum是一种基于PostgreSQL的分布式数据库,其采用shared-nothing架构,主机.操作系统.内存.存储都是自我控制的,不存在共享. 官 ...
- GreenPlum 大数据平台--外部表(三)
一,外部表介绍 Greenplum 在数据加载上有一个明显的优势,就是支持数据的并发加载,gpfdisk是并发加载的工具,数据库中对应的就是外部表 所谓外部表,就是在数据库中只有表定义.没有数据,数据 ...
- GreenPlum 大数据平台--非并行备份(六)
一,非并行备份(pg_dump) 1) GP依然支持常规的PostgreSQL备份命令pg_dump和pg_dumpall 2) 备份将在Master主机上创建一个包含所有Segment数据的大的备份 ...
- GreenPlum 大数据平台--安装
1. 环境准备 01, 安装包准备: Greenplum : >>>>链接地址 Pgadmin客户端 : >>>链接地址 greenplum-cc-web ...
- GreenPlum 大数据平台--运维(三)
一,操作命令 01,启动gpstart 参数说明 COMMAND NAME: gpstart Starts a Greenplum Database system. ***************** ...
- GreenPlum 大数据平台--备份-邮件配置-gpcrondump & gpdbrestore(五)
01,备份 生成备份数据库 [gpadmin@greenplum01 ~]$ gpcrondump -l /gpbackup/back2/gpcorndump.log -x postgres -v [ ...
- GreenPlum 大数据平台--并行备份(四)
01,并行备份(gp_dump) 1) GP同时备份Master和所有活动的Segment实例 2) 备份消耗的时间与系统中实例的数量没有关系 3) 在Master主机上备份所有DDL文件和GP相关的 ...
- GreenPlum 大数据平台--基础使用(一)
一,操作语法 01,创建数据库 --创建用户-- [gpadmin@greenplum01 ~]$ export PGDATABASE=testDB --指定数据库名字 [gpadmin@greenp ...
随机推荐
- Unity破解不成功解决方案
你是不是遇到过Unity新版本出来的时候就急着使用,但是安装好了,却破解不成功的问题(你之前的版本破解过).这是由于你的注册表没有彻底的删除,接下来我们图解如何清理. 1.卸载以前的版本,卸载完了删除 ...
- channel_id以及type_id的内容
- HTML5权威指南 中文版 高清PDF扫描版
HTML5权威指南是一本系统学习网页设计的权威参考图书.<HTML5权威指南>分为五部分:第一部分介绍学习本书的预备知识和HTML.CSS和JavaScript的最新进展:第二部分讨论HT ...
- 【转】Android自定义控件(三)——有弹性的ListView
原文地址:http://blog.csdn.net/a105865708/article/details/17959459 上一次我们试验了有弹性的ScrollView.详情 这一次,我们来试验有弹性 ...
- webservice不能序列化接口问题,返回值为IList或者参数为接口的解决办法。
1. webservice 不能返回泛型接口集合IList,解决办法如下链接: 参考资料:http://www.cnblogs.com/yinhaiming/articles/1379424.html ...
- 灯塔AOI简易实现
首先我们来讨论下游戏开发中的几个坐标系,为了方便解释,我截取了灯塔AOI DEMO当NPC数目为0时候的样子(代码地址觉得有帮助的童鞋记得给我代码点个星^_^) 先对这张图简单说明下: 蓝色的坐标轴表 ...
- vi—终端中的编辑器
*:first-child { margin-top: 0 !important; } .markdown-body>*:last-child { margin-bottom: 0 !impor ...
- &(引用) 和 *(指针)
引用: 引用相当于给引用的对象起一个别名,对引用的操作即是对原对象的操作. 使用方式: int cnt = 1024; int &x = cnt; 一般情况下引用的类型要和被引用对象一致(例外 ...
- mybatis 学习笔记(一):mybatis 初认识
mybatis 学习笔记(一):mybatis 初认识 简介 MyBatis是一个Java持久层框架,它通过XML描述符或注解把对象与存储过程或SQL语句关联起来.mybatis 可以将 prepar ...
- Thinkphp5.0 路由
路由定义: 有两种方式: (1).动态注册: eg: Route::rule('hello','index/index/hello','GET'); (2)配置式: eg: return [ 'pat ...