在CentOS-7上安装Vertica与配置

最近在做集成Vertica项目,需要把Vertica做成镜像,在openstack和hos上运行,so,自己在CentOS上安装配置Vertica

 

一.首先安装配置centos7

centos7分区一定要用ext3或ext4,vertica要求这两种格式,磁盘类型必须选择:Standard Partition

https://my.vertica.com/docs/7.2.x/HTML/index.htm#cshid=S0160

https://my.vertica.com/docs/7.2.x/HTML/index.htm#cshid=S0170

 

安装配置:

/swap   4G

/boot  500M

/var  40G

/home  20G

/    16G

 

 

二.安装前配置centos依赖软件 

安装好centos之后可以安装vertica了,vertica安装前需要准备依赖

1.配置ip获取ip,查看ip地址:ip addr

2.查看磁盘分区:df -Th -x vfat

3.配置yum源,上传vertica的rpm

  cd /etc/yum.repos.d/

换成自己的yum源

 yum update

 yum -y install net-tools

三.开始vertica安装前准备

#1. 可以用如下命令创建Vertica管理用户vdbadmin并设置密码: 

# useradd vdbadmin -u 755 -d /home/vertica -s /bin/bash  
# passwd vdbadmin 
(pass@word1)

#2.上传RPM包到指定位置 

# mount /dev/sdb4  /mnt/ 
# cp /mnt/vertica-7.0.2-1.x86_64.RHEL5.rpm          /home/vertica  
# cp /mnt/vertica-client-7.0.2-1.x86_64.rpm           /home/vertica  
# cp /mnt/vertica-console-7.0.2-1.x86_64.RHEL5.rpm   /home/vertica

#3.修改主机名 

#vim /etc/hosts   
(修改或添加:)  127.0.0.1   verticaserver

#4.关闭防火墙 (目前没装)

# chkconfig iptables --level 3 5 off 
# chkconfig ip6tables --level 3 5 off
# service iptables stop

#5.关闭SELINUX: 

# vim /etc/selinux/config 
从SELINUX=enforcing改到 SELINUX=disabled 

# setenforce 0

#6.安装支撑工具软件 

# yum install gdb –y 
# yum install mcelog –y 
# yum install sysstat –y 
# yum install ntp –y 
# yum install dialog -y
# /sbin/service ntpd restart # chkconfig  --level 3 5 ntpd on

#7.检查5433 端口未被使用          

(5433为vsql远程连接数据库的端口) 
# cat /etc/services |grep 5433 

#8.检测python 

# which  python                      (检查python是否安装) 
# python --version                    (检查python版本号)
# yum install python -y

#9.检测rsync 

# which  rsync                              (检查rsync是否安装) 
    
# rsync --version                            (检查rsync版本号大于3.0.5) 
# yum intall rsync

#10. 检测/dev/pts 有无被加载 

# ls  /dev |grep pts

#11. 修改vdbadmin的baash_profile或profile文件 

添加如下内容:  
# export LANG=en_US.UTF-8
#export TZ="America/New_York"

#12.关闭CPU CPU Frequency Scaling (没执行)

# chkconfig --level 3 cpuspeed off 
# service cpuspeed stop

#13.配置Pam配置文件 

# /etc/pam.d/su 
 在该文件里添加如下行  session required pam_limits.so

#14.改I/O Scheduler 要根据情况来改。 一般是sda 

# echo deadline > /sys/block/sda/queue/scheduler 
# cat /sys/block/sda/queue/scheduler 

#15.改 /etc/rc.local 

# echo '/sbin/blockdev --setra 2048 /dev/sda' >> /etc/rc.local

#16.改变/etc/grub.conf 

#vim /etc/grub.conf   添加:transparent_hugepage=never 
# echo always > /sys/kernel/mm/transparent_hugepage/enabled

#17.使用root用户安装Vertica rpm包 


#
rpm -Uvh /home/vertica/vertica-7.0.2-1.x86_64.RHEL5.rpm

 

#18. 使用root用户安装Vertica,并指定Vertica管理用户 

# /opt/vertica/sbin/install_vertica -s verticaserver -u vdbadmin -g vdbadmin -l /home/vertica -d /home/vertica 

 

 

 #19.安装vertica的mc

rpm -Uvh --force  /home/vertica/vertica-console-7.0.2-1.x86_64.RHEL5.rpm 

 





 

转载于:https://www.cnblogs.com/liushanping/p/5141541.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值