{"id":43242,"date":"2024-10-04T22:46:28","date_gmt":"2024-10-04T14:46:28","guid":{"rendered":"https:\/\/server.hk\/cnblog\/43242\/"},"modified":"2024-10-04T22:46:28","modified_gmt":"2024-10-04T14:46:28","slug":"centos-7-%e4%b8%8b-greenplum-%e6%ba%90%e7%a2%bc%e5%ae%89%e8%a3%9d%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/43242\/","title":{"rendered":"CentOS 7 \u4e0b Greenplum \u6e90\u78bc\u5b89\u88dd\u6559\u7a0b"},"content":{"rendered":"<h1 id=\"centos-7-%e4%b8%8b-greenplum-%e6%ba%90%e7%a2%bc%e5%ae%89%e8%a3%9d%e6%95%99%e7%a8%8b-cgqlZHNtXv\">CentOS 7 \u4e0b Greenplum \u6e90\u78bc\u5b89\u88dd\u6559\u7a0b<\/h1>\n<p>Greenplum \u662f\u4e00\u6b3e\u57fa\u65bc PostgreSQL \u7684\u958b\u6e90\u6578\u64da\u5eab\uff0c\u5c08\u70ba\u5927\u6578\u64da\u5206\u6790\u800c\u8a2d\u8a08\u3002\u5b83\u652f\u6301\u5927\u898f\u6a21\u6578\u64da\u96c6\u7684\u4e26\u884c\u8655\u7406\uff0c\u4e26\u4e14\u80fd\u5920\u5728\u591a\u500b\u7bc0\u9ede\u4e0a\u904b\u884c\uff0c\u9019\u4f7f\u5f97\u5b83\u6210\u70ba\u6578\u64da\u5009\u5eab\u548c\u5546\u696d\u667a\u80fd\u61c9\u7528\u7684\u7406\u60f3\u9078\u64c7\u3002\u672c\u6587\u5c07\u4ecb\u7d39\u5982\u4f55\u5728 CentOS 7 \u4e0a\u5f9e\u6e90\u78bc\u5b89\u88dd Greenplum\u3002<\/p>\n<h2 id=\"%e5%89%8d%e6%9c%9f%e6%ba%96%e5%82%99-cgqlZHNtXv\">\u524d\u671f\u6e96\u5099<\/h2>\n<p>\u5728\u958b\u59cb\u5b89\u88dd\u4e4b\u524d\uff0c\u8acb\u78ba\u4fdd\u60a8\u7684\u7cfb\u7d71\u6eff\u8db3\u4ee5\u4e0b\u8981\u6c42\uff1a<\/p>\n<ul>\n<li>CentOS 7 \u64cd\u4f5c\u7cfb\u7d71<\/li>\n<li>\u81f3\u5c11 8 GB \u7684 RAM<\/li>\n<li>\u81f3\u5c11 20 GB \u7684\u53ef\u7528\u78c1\u789f\u7a7a\u9593<\/li>\n<li>\u5b89\u88dd\u5fc5\u8981\u7684\u4f9d\u8cf4\u5305<\/li>\n<\/ul>\n<p>\u9996\u5148\uff0c\u66f4\u65b0\u7cfb\u7d71\u4e26\u5b89\u88dd\u5fc5\u8981\u7684\u4f9d\u8cf4\u5305\uff1a<\/p>\n<pre><code>sudo yum update -y\nsudo yum install -y gcc make git readline-devel zlib-devel flex bison<\/code><\/pre>\n<h2 id=\"%e4%b8%8b%e8%bc%89-greenplum-%e6%ba%90%e7%a2%bc-cgqlZHNtXv\">\u4e0b\u8f09 Greenplum \u6e90\u78bc<\/h2>\n<p>\u63a5\u4e0b\u4f86\uff0c\u60a8\u9700\u8981\u5f9e\u5b98\u65b9 GitHub \u5009\u5eab\u4e0b\u8f09 Greenplum \u7684\u6e90\u78bc\u3002\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u9032\u884c\u4e0b\u8f09\uff1a<\/p>\n<pre><code>git clone https:\/\/github.com\/greenplum-db\/gpdb.git<\/code><\/pre>\n<p>\u4e0b\u8f09\u5b8c\u6210\u5f8c\uff0c\u9032\u5165\u4e0b\u8f09\u7684\u76ee\u9304\uff1a<\/p>\n<pre><code>cd gpdb<\/code><\/pre>\n<h2 id=\"%e7%b7%a8%e8%ad%af-greenplum-cgqlZHNtXv\">\u7de8\u8b6f Greenplum<\/h2>\n<p>\u5728\u7de8\u8b6f\u4e4b\u524d\uff0c\u60a8\u9700\u8981\u8a2d\u7f6e\u4e00\u4e9b\u74b0\u5883\u8b8a\u91cf\u3002\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8a2d\u7f6e\uff1a<\/p>\n<pre><code>export GPHOME=$(pwd)\nexport PATH=$GPHOME\/bin:$PATH\nexport LD_LIBRARY_PATH=$GPHOME\/lib:$LD_LIBRARY_PATH<\/code><\/pre>\n<p>\u7136\u5f8c\uff0c\u60a8\u53ef\u4ee5\u958b\u59cb\u7de8\u8b6f Greenplum\u3002\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre><code>make<\/code><\/pre>\n<p>\u7de8\u8b6f\u904e\u7a0b\u53ef\u80fd\u9700\u8981\u4e00\u4e9b\u6642\u9593\uff0c\u5177\u9ad4\u53d6\u6c7a\u65bc\u60a8\u7684\u7cfb\u7d71\u6027\u80fd\u3002\u7de8\u8b6f\u5b8c\u6210\u5f8c\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u9032\u884c\u5b89\u88dd\uff1a<\/p>\n<pre><code>sudo make install<\/code><\/pre>\n<h2 id=\"%e9%85%8d%e7%bd%ae-greenplum-cgqlZHNtXv\">\u914d\u7f6e Greenplum<\/h2>\n<p>\u5b89\u88dd\u5b8c\u6210\u5f8c\uff0c\u60a8\u9700\u8981\u914d\u7f6e Greenplum\u3002\u9996\u5148\uff0c\u5275\u5efa\u4e00\u500b\u6578\u64da\u76ee\u9304\uff1a<\/p>\n<pre><code>mkdir -p \/data\/gpdata<\/code><\/pre>\n<p>\u7136\u5f8c\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u521d\u59cb\u5316 Greenplum \u6578\u64da\u5eab\uff1a<\/p>\n<pre><code>gpseginstall -f \/data\/gpdata<\/code><\/pre>\n<p>\u63a5\u4e0b\u4f86\uff0c\u60a8\u9700\u8981\u555f\u52d5 Greenplum \u6578\u64da\u5eab\uff1a<\/p>\n<pre><code>gpstart<\/code><\/pre>\n<h2 id=\"%e9%a9%97%e8%ad%89%e5%ae%89%e8%a3%9d-cgqlZHNtXv\">\u9a57\u8b49\u5b89\u88dd<\/h2>\n<p>\u8981\u9a57\u8b49 Greenplum \u662f\u5426\u5b89\u88dd\u6210\u529f\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6aa2\u67e5\u6578\u64da\u5eab\u72c0\u614b\uff1a<\/p>\n<pre><code>gpstate<\/code><\/pre>\n<p>\u5982\u679c\u4e00\u5207\u6b63\u5e38\uff0c\u60a8\u61c9\u8a72\u80fd\u5920\u770b\u5230 Greenplum \u6578\u64da\u5eab\u7684\u72c0\u614b\u4fe1\u606f\u3002<\/p>\n<h2 id=\"%e7%b8%bd%e7%b5%90-cgqlZHNtXv\">\u7e3d\u7d50<\/h2>\n<p>\u672c\u6587\u4ecb\u7d39\u4e86\u5982\u4f55\u5728 CentOS 7 \u4e0a\u5f9e\u6e90\u78bc\u5b89\u88dd Greenplum\u3002\u9019\u500b\u904e\u7a0b\u5305\u62ec\u4e86\u7cfb\u7d71\u6e96\u5099\u3001\u4f9d\u8cf4\u5305\u5b89\u88dd\u3001\u6e90\u78bc\u4e0b\u8f09\u3001\u7de8\u8b6f\u548c\u914d\u7f6e\u7b49\u6b65\u9a5f\u3002\u901a\u904e\u9019\u4e9b\u6b65\u9a5f\uff0c\u60a8\u53ef\u4ee5\u5728\u81ea\u5df1\u7684\u4f3a\u670d\u5668\u4e0a\u642d\u5efa\u4e00\u500b\u5f37\u5927\u7684\u6578\u64da\u5206\u6790\u5e73\u53f0\u3002\u5982\u679c\u60a8\u9700\u8981\u7a69\u5b9a\u7684 <a href=\"https:\/\/server.hk\">VPS<\/a> \u4f86\u904b\u884c Greenplum\uff0c\u8acb\u8003\u616e\u4f7f\u7528\u6211\u5011\u7684\u670d\u52d9\uff0c\u63d0\u4f9b\u9ad8\u6548\u80fd\u7684 <a href=\"https:\/\/server.hk\">\u9999\u6e2f\u4f3a\u670d\u5668<\/a> \u89e3\u6c7a\u65b9\u6848\uff0c\u52a9\u60a8\u8f15\u9b06\u7ba1\u7406\u5927\u6578\u64da\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728CentOS 7\u4e0a\u4ece\u6e90\u4ee3\u7801\u5b89\u88c5Greenplum\uff0c\u5305\u62ec\u73af\u5883\u914d\u7f6e\u3001\u4f9d\u8d56\u5b89\u88c5\u548c\u6b65\u9aa4\u6307\u5357\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4924],"tags":[],"class_list":["post-43242","post","type-post","status-publish","format-standard","hentry","category-setup-tutorials"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/43242","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=43242"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/43242\/revisions"}],"predecessor-version":[{"id":43243,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/43242\/revisions\/43243"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=43242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=43242"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=43242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}