• Online Tools
  • - Calculators
    • Character Count
  • - Download
    • TikTok Download
    • DouYin Download
  • - Web Tools
    • BASE64
    • Base64 to Image
    • Image to Base64
    • URL Encoding
    • JavaScript
    • Timestamp
    • Unicode Converter
    • JSON Format
    • Modify Extension
    • Make List
    • CSS Optimizer
  • - Encryption Tools
    • MD5 Encryption
    • Random Generator
  • - Image Tools
    • Image Compression
    • QR Code Generator
    • QR Code Reader
    • Wallpaper Preview
    • Image EXIF
  • - Info Sheets
    • Blood Type Heredity
    • Clothing Sizes
  • [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

Other Tools
  • Character Count TikTok Download DouYin Download BASE64 Base64 to Image Image to Base64 URL Encoding JavaScript Timestamp Unicode Converter JSON Format Modify Extension Make List CSS Optimizer MD5 Encryption Random Generator Image Compression QR Code Generator QR Code Reader Wallpaper Preview Image EXIF Blood Type Heredity Clothing Sizes
  • 週末見たい展覧会5選。今週は木下佳通代の個展、テルマエ展、UESHIMA MUSEUMなど。【2024年6月第1週】
    2024-05-29

    藤井聡太八冠、瀬戸際の戦い 将棋叡王戦、31日に第4局
    2024-05-29

    囲碁、一力遼本因坊が初防衛 余正麒破り三冠堅持
    2024-05-30

    藤井聡太八冠が勝ち、最終局へ 将棋叡王戦で2勝2敗
    2024-05-31

    作曲家ビゼーの窮地を救った傑作オペラ『真珠採り』の聴きどころは?【クラシック今日は何の日?】
    2024-05-31

    【6月1日~2日】週末必見の“アート&デザイン”まとめ!
    2024-06-01

    三姉妹が温泉旅行で取っ組み合いの大げんか うっとうしくてめんどうくさい家族愛描く「お母さんが一緒」
    2024-06-02

    小学館「作家の意向第一に協議」 映像化指針、ドラマ原作者死去で
    2024-06-03

    福島県沖地震で解体 老舗文具店の新ビルが開店 イベントスペースも
    2024-06-04

    「CLAMP展」が国立新美術館で7月より開催。展示数は史上最多の約800点
    2024-06-04

    ペース・ギャラリーが9月にグランドオープン。7月には特別内覧会を開催へ
    2024-06-04

    「ゲバルト」展が東京日仏学院などで開催。反暴力的反応とその美的様式を探る
    2024-06-05

    五木ひろし歌手生活60年…ふるさと福井へ恩返しの新曲
    2024-06-04

    謎多き家形埴輪 「考古学の空白」に挑む橿考研ベテラン研究員、念願の特別展開催中
    2024-06-04

    ビル・エヴァンスの名言「才能なんて取るに足りない」【本と名言365】
    2024-06-05

    岡田将生の初ブランド「IN MY DEN」始動、第1弾グッズの受注販売がスタート
    2024-06-06

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

    京都・祇園祭の「長刀鉾」稚児決まる 記者会見で「頑張ります」
    2024-06-06

    ブリン・バン・バン・ボンが1位 ビルボード、上半期人気曲
    2024-06-06

    もしあの時に戻れたら…歌人・穂村弘が話題書『迷子手帳』で明かす、今も忘れられない「失敗」
    2024-06-07

    ©  Dopu Box
    💛