zoukankan      html  css  js  c++  java
  • greenplum-cc-web4.0监控安装

    简介:

    本文是基于greenplum5.7,greenplum-cc-web4.0安装的。

    一、安装greenplum监控的数据库以及创建用户(在gpadmin用户下安装)

    1、开启greenplum数据库

    [gpadmin@master ~]$ gpstart -a

    2、安装gpperfmon数据库,以及为gpmon用户创建密码,端口是greenplum配置的端口

    [gpadmin@master ~]$ gpperfmon_install --enable --password gpmon --port 2345

    3、重启数据库

    [gpadmin@master ~]$ gpstop -M fast -a
    [gpadmin@master ~]$ gpstart -a

    4、检查gp监控是否启动

    [gpadmin@master ~]$ ps -ef | grep gpmmon

    5、检查gp监控是否监测到greenplum集群中的每台主机

    [gpadmin@master ~]$ psql -d 'gpperfmon' -c 'select * from system_now;'

     二、正式安装greenplum-cc-web(在gpadmin用户下安装)

    1、创建安装目录

    [gpadmin@master ~]$ gpssh -f /home/gpadmin/conf/hostlist
    => cd /data/greenplum-db  
    [master1]
    [slave1]
    [slave2]
    [slave3]
    => mkdir greenplum-cc-web
    [master1]
    [slave1]
    [slave2]
    [slave3]
    => exit

    2、解压,安装

    [gpadmin@master ~]$ unzip greenplum-cc-web-4.0.0-LINUX-x86_64.zip
    [gpadmin@master ~]$ cd greenplum-cc-web-4.0.0-LINUX-x86_64
    [gpadmin@master greenplum-cc-web-4.0.0-LINUX-x86_64]$ ./gpccinstall-4.0.0 
    #一直空格
    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)
             
    
    Where would you like to install Greenplum Command Center? (Default=/usr/local)
    /opt/greenplum/greenplum-cc-web
    
    What would you like to name this installation of Greenplum Command Center? (Default=gpcc)
    
    
    What port would you like gpcc webserver to use? (Default=28080)
    
    
    Would you like to enable kerberos? Yy/Nn (Default=N)
    
    
    Would you like enable SSL? Yy/Nn (Default=N)
    
    
    Installation in progress...
    
    Successfully installed Greenplum Command Center.
    
    We recommend ssh to standby master before starting GPCC webserver
    
    To start the GPCC webserver on the current host, run gpcc start

    3、修改环境变量(所有机器)

    [gpadmin@master ~]$ vi .bash_profile
    #添加
    source /opt/greenplum/greenplum-cc-web/greenplum-cc-web-4.0.0/gpcc_path.sh
    [gpadmin@master ~]$ source .bash_profile

    4、修改pg_hba.conf文件连接

    [gpadmin@master ~]$ vi /data/greenplum-db/gpdata/gpmaster/gpseg-1/pg_hba.conf 
    #在最后一行添加这句
    host     all         gpmon         (本机的ip)/24     md5
    [gpadmin@master ~]$ gpstop -M fast -a  
    [gpadmin@master ~]$ gpstart -a
    [gpadmin@master ~]$ gpcc start

     三、登录访问

    1、打开网址访问http://192.168.12.101:28080/login,密码为前面设置的密码

    2、常用gpcc命令

    gpcc stop

    gpcc start

  • 相关阅读:
    CodeForces1152CNeko does Maths
    π的计算公式
    IFS变量对加双引号和不加双引号变量的区别对待
    各种距离
    ADO.NET Data Service 二 绑定数据类
    向客户端注入JavaScript代码
    Ajax ModelPopu and Progress 示例学习
    Sliverlight 入门教程七
    (牛人莫入)Jquery plugin 多文件上传
    自定义控件的验证使用
  • 原文地址:https://www.cnblogs.com/zhang-ke/p/9009531.html
Copyright © 2011-2022 走看看