• Outils en Ligne
  • - Calculatrices
    • Compteur de Caractères
  • - Téléchargement
    • Téléchargement TikTok
    • Téléchargement Douyin
  • - Outils Web
    • BASE64
    • Base64 vers image
    • Image vers Base64
    • Encodage URL
    • JavaScript
    • Timestamp
    • Convertisseur Unicode
    • Formatage JSON
    • Modifier l’Extension
    • Créer une Liste
    • Optimiseur CSS
  • - Outils de Chiffrement
    • Chiffrement MD5
    • Générateur Aléatoire
  • - Outils d’Image
    • Compression d’Images
    • Générateur de QR Code
    • Lecteur de QR Code
    • Prévisualisation de Fond
    • EXIF d’image
  • - Fiches d'information
    • Hérédité du Groupe Sanguin
    • Tailles Vêtements
  • [email protected]
DopuBox
  • English
  • Español
  • Français
  • 日本語
  • 한국어
  • 简体中文
  • 繁體中文
全部 ニュース Meta Code 文化・アート
centos6.6 GreenPlum 4のインストール方法を説明します。3.5.2?
2021-12-11

GP公式サイトでは、最新GPのCentosでの対応バージョンが見えないので、RedHatのバージョンを使えば良いです。

前言:

GPの実装は概ねこのようなもので,マスター機として1台,その他をSegment機として選択する.それほど多くのマシンがないため、仮想マシンは3つのcentos 6を開いた。6、1+2モードを採用。

インストール時、GPはまずMaster機に装着することができ、その後、Maser機とSegment機の間で相互信頼(gpssh-exkeys)を確立することでリモートインストールのようなものを行うことができ、gpsshを通じてすべての機に登録することができ、ユーザーの構築、インストールされたGPのコピーなど、一連の操作を行うことができることを覚えておいてください。もちろん、インストール前にカーネルパラメータ、制限パラメータなどを構成する人もいますが、必要に応じて。私の仮想マシンのため、ハードウェアはほとんど公式サイトの要求に達しないので、このステップを捨てました。

インストール前の準備(オプション) 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]
* soft nofile 65536  
* hard nofile 65536  
* soft nproc 131072  
* hard nproc 131072  

!!! 注意RedHat 6.xとCentos 6.xのマシンは/etc/security/limits.d/90-nproc.confのパラメータは、上記のファイルパラメータを上書きします。両方のファイルにパラメータを設定場合は、パラメータが90-nprocであることを保証します。confが設定されています。

3、ファイアウォールを閉じる

chkconfig iptables off  ;//永久停止、再起動後は起動しない

service iptables stop ;//再起動すると起動し、サービスiptables statusでステータスをチェックします。

GP実装開始 1.MasterにGP,root権限をインストールする

ダウンロードしたgreenplum-db-4.3.5.2-build-1-RHEL 5-x 86_64.zipは1つのディレクトリの下に置いて、解凍(unzip)して、ReadMeとを得る.binファイル、デフォルトGPは/usr/local/greenplumの下にインストールされています。その実装はどこでもいいです。こちらは/opt/greenplum/の下にインストールします。

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、マスターマシンにGPデータベースを担当するユーザーgpadminを作成し、その後のsegmentマシンのユーザーgpadminをgpsshで追加する習慣がある

一般的に最初はgpadminユーザーがいなかったので、直接新規作成します。

groupadd -g 530 gpadmin

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

passwd gpadmin ;パスワードの追加

GPインストールフォルダへのアクセス権の変更

chown -R gpadmin:gpadmin /home/gpadmin

chown -R gpadmin:gpadmin /opt/greenplum

GPインストールディレクトリの下にある環境変数ファイルをユーザに追加する.

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.1136 mdw#master機

192.168.127.1137 sdw 1#segment機

192.168.127.38 sdw 2#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

に注意

相互信頼が確立されるとgpssh-f/var/seg_hostsはすべてのマシンにアクセスしました。


ソース元URL:https://dopubox.com/article/p/4a1f19b6d36effe1

Autres Outils
  • Compteur de Caractères Téléchargement TikTok Téléchargement Douyin BASE64 Base64 vers image Image vers Base64 Encodage URL JavaScript Timestamp Convertisseur Unicode Formatage JSON Modifier l’Extension Créer une Liste Optimiseur CSS Chiffrement MD5 Générateur Aléatoire Compression d’Images Générateur de QR Code Lecteur de QR Code Prévisualisation de Fond EXIF d’image Hérédité du Groupe Sanguin Tailles Vêtements
  • <司書のコレ絶対読んで>「王さまと九人のきょうだい」君島久子訳、赤羽末吉絵
    2024-05-29

    『ボールアンドチェイン』南Q太著 評者:三木那由他【このマンガもすごい!】
    2024-05-30

    社長「関係者や視聴者不安にさせた」と謝罪
    2024-05-30

    授業中の生徒や住民が弾道ミサイル飛来を想定した避難訓練 福島・須賀川桐陽高
    2024-05-31

    幸田文の名言「台所に立てば、…」【本と名言365】
    2024-05-30

    現代詩の「中原中也賞」、俳句で培われた言語感覚…「新たな音やリズム」ジャンルを往来し追求
    2024-06-02

    大阪はアートとデザインの街となるか? Osaka Art & Design 2024の見どころをレポート
    2024-06-03

    「工芸的美しさの行方―うつわ・包み・装飾」が東京と京都で開催。第1弾はBONDED GALLERYにて7月から
    2024-06-03

    ニコライ・バーグマンが手がける北欧のジュエリーブランド〈フローラダニカ〉旗艦店が南青山にオープン。
    2024-06-03

    本年入試私立公立とも志願者微減 栄光ゼミナール担当者にきく 埼玉中高入試最新動向
    2024-06-04

    「三島喜美代―未来への記憶」(練馬区美術館)開幕レポート。最大規模のインスタレーションも
    2024-06-05

    田名網敬一「TANAAMI!! AKATSUKA!! / 45 rpm」展、集英社マンガアートヘリテージ トーキョーギャラリーで開催
    2024-06-04

    口腔ケアで高齢者を守ろう 「おとなの歯磨き」訪問歯科医が出版
    2024-06-04

    「避難いただけるほうが一安心」珠洲で激しい揺れに耐えた仏像、奈良博で縁つなぐ
    2024-06-04

    3日間限定発売! 名作パントンチェアが新たな魅力を纏った限定カラーで登場。
    2024-06-05

    宗教2世のドラマが受賞 第50回放送文化基金賞
    2024-06-06

    「art stage OSAKA 2024」が9月に開催。大阪・関西万博への機運も醸成
    2024-06-05

    青森で来年夏に音楽祭 沖澤のどかさんが総監督
    2024-06-06

    「江戸期より後の遺構」 世界遺産目指す佐渡の金山、一部除外勧告
    2024-06-06

    今週末に見たい展覧会ベスト8。閉幕の横浜トリエンナーレから、「梅津庸一 クリスタルパレス」、石川九楊の2ヶ月連続個展まで
    2024-06-06

    ©  Dopu Box
    💛