码迷,mamicode.com
首页 > 其他好文 > 详细

vertica,greenplum 安装

时间:2019-09-17 17:26:23      阅读:132      评论:0      收藏:0      [点我收藏+]

标签:tab   mit   local   rem   unzip   password   客户   tool   页面   

一,vertica

来源:
https://github.com/sumitchawla/docker-vertica

使用方法:

#  To run without a persistent datastore
docker run -p 5433:5433  sumitchawla/vertica

#To run with a persistent datastore
docker run -p 5433:5433 -d -v /path/to/vertica_data:/home/dbadmin/docker sumitchawla/vertica

连接参数

Default DB Name - docker

Default User - dbadmin

Default Password (NO PASSWORD) -



######
vertca   镜像

https://github.com/bluelabsio/docker-vertica  需要下载rpm


下载vertica  客户端

https://www.vertica.com/download/vertica/

https://softwaresupport.softwaregrp.com/   下载页面

二,greenplum

https://github.com/greenplum-db/gpdb/releases 下载页面(开源下载,官网需登录)
https://hub.docker.com/r/kevinmtrowbridge/greenplumdb_singlenode  (镜像直接用)
https://github.com/kevinmtrowbridge/greenplumdb_singlenode_docker
https://github.com/kevinmtrowbridge/greenplumdb_singlenode_docker/blob/master/Dockerfile

单机版安装
https://www.jianshu.com/p/513935550350
greenplum  源码安装
https://yq.aliyun.com/articles/609855#

单机安装的记录:z重要

容器内操作
   root
   vi   /etc/sysctl.conf
    3  vi /etc/security/limits.conf
    4  sysctl -p
    5  yum    install  wget 
    6  wget https://github.com/greenplum-db/gpdb/releases/download/6.0.0/greenplum-db-6.0.0-rhel7-x86_64.rpm
    7  yum  localinstall  greenplum-db-6.0.0-rhel7-x86_64.rpm 
    8  ip a s
    9  find  /  -name "*greenplum*"
   10  vi  /etc/hosts
   11  groupadd gpadmin
   12  useradd -g gpadmin gpadmin
   13  passwd gpadmin
   14  chown -R gpadmin.gpadmin   /usr/local/greenplum-db
   15  cd /usr/local/greenplum-db
   16  ll
   17  cd 
   18  su - gpadmin
   19  vi  /etc/sysconfig/network
   20  su - gpadmin
   21  \cp -R -f /usr/lib64/python2.7/site-packages/.   /usr/local/greenplum-db/lib/python//
   22  echo "RemoveIPC=no" >> /etc/systemd/logind.conf
   23  su - gpadmin
   24  ss  -tanl 
   25   yum install -y net-tools which openssh-clients openssh-server less zip unzip iproute
   26  /usr/sbin/sshd
   27  ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
   28  ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key
   29  ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key
   30  /usr/sbin/sshd
   31  ss  -tanl 
   32  su  -  gpadmin 
   33  ss -tanl 
   34  history
   
   gpaadmin操作
   
   mkdir -p /home/gpadmin/masterdata
    2  mkdir -p /home/gpadmin/segmentdata
    3  mkdir -p /home/gpadmin/segmentmirror
    4  vi   /home/gpadmin/all_hosts
    5  vi  /home/gpadmin/seg_hosts
    6  cd  /home/gpadmin/
    7  vi  .bashrc
    8  ll
    9  vi  /home/gpadmin/gpinitsystem_config
   10  cat    .bashrc 
   11  . .bashrc
   12  gpssh-exkeys -f /home/gpadmin/all_hosts
   13  gpinitsystem -c /home/gpadmin/gpinitsystem_config
   14  ss  -tanl 
   15  history 
   
   docker  run  -d  -p 5432:5432  --rm  -h "mdw"      greenplum-v2 
   使用容器生成greenplum后的操作
   vi   /etc/hosts    
   172.17.0.2      mdw   sdw 
   启动sshd    /usr/sbin/sshd 
    
   su  - gpadmin  
   .  .bashrc   
   gpstart 



使用小例子

su  -  gpadmin 

psql  -d gpmaster 
psql: FATAL:  database "gpmaster" does not exist

创建数据库:
createdb  gpadmin -E utf-8

登录psql  -d gpadmin

开放远程权限
cd $MASTER_DATA_DIRECTORY/     masterdata目录(gpseg-1内)

vi pg_hba.conf

host     testDB      gpadmin         192.168.96.1/32    md5

通过gpstop -u命令使配置生效


通过其他机器登录数据库

$ psql -h192.168.96.128 -p5432 -d testDB -Ugpadmin


vertica,greenplum 安装

标签:tab   mit   local   rem   unzip   password   客户   tool   页面   

原文地址:https://www.cnblogs.com/g2thend/p/11535303.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!