GreenPlum安裝greenplum-cc-web監控

來源:互聯網
上載者:User

標籤:ges   pcc   叢集安裝   unzip   http   開啟   export   檔案   name   

一、 GreenPlum叢集安裝環境

  由虛擬機器搭建的一台master兩台segment。

 

二、安裝前準備

  1) 所需安裝包

  GreenPlum監控安裝包: greenplum-cc-web-3.0.2-LINUX-x86_64.zip

  2) 修改postgresql.conf設定檔

    進入你master的檔案系統中的gpseg-1檔案夾下

    $ cd /data/master/gpseg-1

    編輯postgresql.conf,添加以下參數:      

      gp_enable_gpperfmon=on     gpperfmon_port=8888     gp_external_enable_exec=on     gpperfmon_log_alert_level=warning    

 

三、安裝GreenPlum監控的資料庫以及建立使用者(此步驟在gpadmin使用者下安裝)

    開啟greenplum資料庫

    $ gpstart -a

    安裝gpperfmon資料庫,以及為gpmon使用者建立密碼

    $ gpperfmon_install --enable --password gpmon --port 5432

    重啟資料庫

    $ gpstop -r

    檢查gp監控是否啟動

    $ ps -ef | grep gpmmon

 

    檢查gp監控是否監測到greenplum叢集中的每台主機

    $ psql -d ‘gpperfmon‘ -c ‘select * from system_now;‘

    

 

 

四、正式安裝GreenPlum-CC-Web(在root使用者下安裝)

    解壓安裝包

    # unzip greenplum-cc-web-3.0.2-LINUX-x86_64.zip

    運行解壓後的greenplum-cc-web-3.0.2-LINUX-x86_64.bin

    #./greenplum-cc-web-3.0.2-LINUX-x86_64.bin

    如果看到以上提示,那麼greenplum-cc-web安裝第一步完畢。

    greenplum-cc-web預設安裝在/usr/local/目錄下

    配置root下的.bashrc檔案,在該檔案中添加以下環境變數,並生效該./bashrc設定檔

      # vi ~/.bashrc
    source /usr/local/greenplum-cc-web/gpcc_path.sh     srouce /usr/local/greenplum-db-4.3.12.0/greenplum_path.sh

    因為是用root許可權來安裝的,為了避免許可權問題,我將安裝的greenplum-cc-web檔案夾全部授予gpadmin許可權

1      # chown -R gpadmin /usr/local/greenplum-cc-web2      # chown -R gpadmin /usr/local/greenplum-cc-web-3.0.2 

    然後切換到gpadmin使用者下,配置gpadmin的.bashrc檔案,在該檔案中添加以下環境變數,並生效該./bashrc設定檔     

        source /usr/local/greenplum-cc-web/gpcc_path.sh      srouce /usr/local/greenplum-db-4.3.12.0/greenplum_path.sh     export MASTER_DATA_DIRECTORY=/data/master/gpseg-1

    將gpadmin下的.bashrc檔案以gpadmin使用者的身份分配到除master之外的機器上

    $ gpscp -f all_segs ~/.bashrc =:~

    用root使用者,在除master之外的機器上安裝greenplum-cc-web

   

1       $ exit(gpadmin使用者下)2 3     # gpccinstall -f all_segs(你的除master之外的主機清單)4 5     # gpssh -f all_segs -e ‘chown -R gpadmin /usr/local/greenplum-cc-web‘67     # gpssh -f all_segs -e ‘chown -R gpadmin /usr/local/greenplum-cc-web-3.0.2‘

    然後切換到gpadmin使用者下,將all_segs中所有主機的.bashrc檔案生效

1    # su gpadmin2 3    $ gpssh -f all_segs -e ‘source ~/.bashrc‘

    在pg_hbc_conf中添加使用者登入許可權(如果不添加可能會導致不能建立gpcc執行個體)

    host  all   all   ::1/128  trust

    最後就是配置gpcc執行個體

    $ gpcmdr --setup

    

    現在我們可以啟動該執行個體

    $ gpcmdr --start [your instance name]

    開啟瀏覽器,在地址欄輸入http://mastert[或者你主機的ip地址]:28080,如果出現以下介面,那麼恭喜你,你的greenplum-cc-web全部安裝成功!

 

 

 

GreenPlum安裝greenplum-cc-web監控

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.