1. <ul id="0c1fb"></ul>

      <noscript id="0c1fb"><video id="0c1fb"></video></noscript>
      <noscript id="0c1fb"><listing id="0c1fb"><thead id="0c1fb"></thead></listing></noscript>

      99热在线精品一区二区三区_国产伦精品一区二区三区女破破_亚洲一区二区三区无码_精品国产欧美日韩另类一区

      RELATEED CONSULTING
      相關(guān)咨詢
      選擇下列產(chǎn)品馬上在線溝通
      服務(wù)時間:8:30-17:00
      你可能遇到了下面的問題
      關(guān)閉右側(cè)工具欄

      新聞中心

      這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
      centos6.6下怎么安裝GreenPlum4.3.5.2

      這篇文章主要介紹了centos6.6下怎么安裝GreenPlum4.3.5.2,具有一定借鑒價值,感興趣的朋友可以參考下,希望大家閱讀完這篇文章之后大有收獲,下面讓小編帶著大家一起了解一下。

      我們提供的服務(wù)有:成都做網(wǎng)站、網(wǎng)站設(shè)計、微信公眾號開發(fā)、網(wǎng)站優(yōu)化、網(wǎng)站認證、赤壁ssl等。為上1000家企事業(yè)單位解決了網(wǎng)站和推廣的問題。提供周到的售前咨詢和貼心的售后服務(wù),是有科學(xué)管理、有技術(shù)的赤壁網(wǎng)站制作公司

      前言:

      GP的安裝大致是這樣的,選擇一臺主機作為Master機,其他作為Segment機。由于沒那么多機子,就虛擬機開了三個centos6.6,采用1+2模式。

      安裝時候,記住 GP可以先在Master機上裝好,后續(xù)通過在Maser機和Segment機間建立互信(gpssh-exkeys)來進行類似遠程安裝,通過 gpssh 就可以登錄到所有機子上,進行你想要的包括建用戶,拷貝安裝好的GP,等等一系列操作。 當(dāng)然,在安裝前,有的人會配置下 內(nèi)核參數(shù)、限制參數(shù)等等,看你需要。因為我虛擬機,硬件基本達不到官網(wǎng)要求,就舍去這步了。

      安裝前準備(可選)

      1、在Master機的  /etc/sysctl.conf 中添加

      [html] view plaincopy

      kernel.shmmax = 500000000  
      kernel.shmmni = 4096  
      kernel.shmall = 4000000000  
      kernel.sem = 250 512000 100 2048  
      kernel.sysrq = 1  
      kernel.core_uses_pid = 1  
      kernel.msgmnb = 65536  
      kernel.msgmax = 65536  
      kernel.msgmni = 2048  
      net.ipv4.tcp_syncookies = 1  
      net.ipv4.ip_forward = 0  
      net.ipv4.conf.default.accept_source_route = 0  
      net.ipv4.tcp_tw_recycle = 1  
      net.ipv4.tcp_max_syn_backlog = 4096  
      net.ipv4.conf.all.arp_filter = 1  
      net.ipv4.ip_local_port_range = 1025 65535  
      net.core.netdev_max_backlog = 10000  
      net.core.rmem_max = 2097152  
      net.core.wmem_max = 2097152  
      vm.overcommit_memory = 2

      重啟下機子或者 sysctl -p 生效

      2、在Master機  /etc/security/limits.conf 添加

      [html] view plaincopy

      * soft nofile 65536  
      * hard nofile 65536  
      * soft nproc 131072  
      * hard nproc 131072

      !!! 注意,對于RedHat 6.x和Centos6.x的機子,在/etc/security/limits.d/90-nproc.conf  的參數(shù)會覆蓋上述文件參數(shù)。如果這兩個文件都設(shè)置參數(shù),保證參數(shù)在90-nproc.conf設(shè)置好了。

      3、關(guān)閉防火墻

      chkconfig iptables off  ;//永久關(guān)閉,重啟后不啟動

      service iptables stop ;//重啟后會啟動 ,用service iptables status檢查狀態(tài)。

      開始GP安裝

      1、在Master上安裝GP,root權(quán)限

      將下載好的 greenplum-db-4.3.5.2-build-1-RHEL5-x86_64.zip 放到一個目錄下,解壓(unzip),得到一個ReadMe和.bin文件,默認GP是裝到 /usr/local/greenplum下的,其實裝哪里都可以,這邊我們裝到 /opt/greenplum/  下。

      執(zhí)行 bin文件,解壓目錄下  ./ greenplum-db-4.3.5.2-build-1-RHEL5-x86_64.bin

      一路空格鍵下去,直到叫你輸 yes|no ,打yes

      選安裝目錄,將你要安裝的目錄輸入,這里 /opt/greenplum/greenplum-db-4.3.5.2

      再一路yes下去就安裝好了,很快。

      2、習(xí)慣先在Master機上建個 負責(zé)GP數(shù)據(jù)庫的用戶 gpadmin,后續(xù)segment機的用戶 gpadmin 再通過 gpssh添加

      一般一開始是沒gpadmin用戶的,直接新建

      groupadd -g 530 gpadmin

      useradd -g 530 -u 530 -m -d /home/gpadmin -s /bin/bash gpadmin

      passwd gpadmin ;添加密碼

      對GP安裝文件夾修改權(quán)限

      chown -R gpadmin:gpadmin /home/gpadmin

      chown -R gpadmin:gpadmin /opt/greenplum

      將GP安裝目錄下的一個環(huán)境變量文件添加到用戶中。

      source /opt/greenplum/greenplum-db/greenplum_path.sh ;/opt/greenplum/greenplum-db是/opt/greenplum/greenplum-db-4.3.5.2的鏈接,沒有就自己鏈接一個 ln -s /opt/greenplum/greenplum-db-4.3.5.2  /opt/greenplum/greenplum-db

      3、建立主機間的互信

      首先,在Master機上,編輯 /etc/hosts文件,

      將Master機和segment機的Ip ,hostname輸入。

      # /etc/hosts

      127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4

      ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

      192.168.127.136 mdw  #master機

      192.168.127.137 sdw1 #segment機

      192.168.127.138 sdw2 #segment機

      其次,在某個目錄下 如 /var 下建一個保護所有主機hostname的文件hostlists(名字隨便取)和含segment機hostname的seg_hosts。

      /var/hostlists:

      mdw

      sdw1

      sdw2

      /var/seg_hosts

      sdw1

      sdw2

      開始建立互信

      gpssh-exkeys -f /var/hostlists

      [root@localhost ~]$ gpssh-exkeys -f /var/hostlists 

      [STEP 1 of 5] create local ID and authorize on local host

        ... /home/root/.ssh/id_rsa file exists ... key generation skipped

      [STEP 2 of 5] keyscan all hosts and update known_hosts file

      [STEP 3 of 5] authorize current user on remote hosts

        ... send to mdw

        ... send to sdw1

        ***

        *** Enter password for sdw1: 

      [STEP 4 of 5] determine common authentication file content

      [STEP 5 of 5] copy authentication files to all remote hosts

        ... finished key exchange with mdw

        ... finished key exchange with sdw1

      [INFO] completed successfully

      注意:如果提示 沒有秘鑰就   ssh-keygen -t rsa ; ssh-add /root/.ssh/id_rsa 。 就可以得到秘鑰。   如果執(zhí)行 ssd-add 出現(xiàn),Could not open a connection to your authentication agent ,則執(zhí)行 ssh-agent bash. 即可。

      建立互信后,就可以通過 gpssh -f /var/seg_hosts 訪問所有的機子了。

      感謝你能夠認真閱讀完這篇文章,希望小編分享的“centos6.6下怎么安裝GreenPlum4.3.5.2”這篇文章對大家有幫助,同時也希望大家多多支持創(chuàng)新互聯(lián),關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道,更多相關(guān)知識等著你來學(xué)習(xí)!


      名稱欄目:centos6.6下怎么安裝GreenPlum4.3.5.2
      文章URL:http://www.ef60e0e.cn/article/gispgo.html
      99热在线精品一区二区三区_国产伦精品一区二区三区女破破_亚洲一区二区三区无码_精品国产欧美日韩另类一区
      1. <ul id="0c1fb"></ul>

        <noscript id="0c1fb"><video id="0c1fb"></video></noscript>
        <noscript id="0c1fb"><listing id="0c1fb"><thead id="0c1fb"></thead></listing></noscript>

        吐鲁番市| 仁怀市| 安西县| 定安县| 图木舒克市| 南投县| 霍城县| 泊头市| 莱芜市| 白城市| 米脂县| 固安县| 西城区| 招远市| 讷河市| 涞水县| 永丰县| 锡林郭勒盟| 平谷区| 清丰县| 桦甸市| 南召县| 松阳县| 青龙| 大名县| 建水县| 青田县| 姜堰市| 华池县| 永胜县| 延庆县| 新源县| 敦化市| 浦东新区| 富平县| 呼玛县| 双鸭山市| 蓝田县| 博白县| 丽江市| 大理市|