vertica单节点安装

Posted tomatoes-

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了vertica单节点安装相关的知识,希望对你有一定的参考价值。

准备环境:

 1.centos 7.0镜像

 2.vertica-9.1.1-1.x86_64.RHEL6.rpm

安装过程:

1.安装CentOS 7.0

注意:挂载的文件系统必须是ext4,不能是默认的xfs!

2.关闭防火墙


[[email protected] ~]# systemctl disable firewalld 
[[email protected] ~]# systemctl stop firewalld

3.设置selinux为disable

[[email protected] ~]# vi /etc/selinux/config SELINUX=disabled
[[email protected] ~]# setenforce 0

4.安装依赖包

[[email protected] ~]# yum install gdb mcelog sysstat chrony ntp ntpdate -y

5.安装必要工具:java,python,rsync,pts

[[email protected] ~]# python --version
[[email protected] ~]# yum install rsync -y
[[email protected] ~]# rsync --version
[[email protected] ~]# ls /dev |grep pts
[[email protected] ~]# yum install java-1.8.0-openjdk.x86_64 -y
[[email protected] ~]# java -version

6.调整参数

[[email protected] ~]# vi /etc/sysctl.conf vm.swappiness = 1
[[email protected] ~]# echo 1 > /proc/sys/vm/swappiness
[[email protected] ~]# vi  /etc/rc.d/rc.local 
echo deadline > /sys/block/sdb/queue/scheduler
echo deadline > /dev/sdb
/sbin/blockdev --setra 8192 /dev/sdb

7.安装vertica

[[email protected] ~]# rpm -ivh vertica-9.1.1-1.x86_64.RHEL6.rpm

[[email protected] ~]# /opt/vertica/sbin/install_vertica --host 192.168.*.* --rpm vertica-9.1.1-1.x86_64.RHEL6.rpm --failure-threshold FAIL --dba-user dbadmin

8.初始化数据库

[[email protected] ~]# su - dbadmin 

[[email protected] ~]$ ./opt/vertica/bin/adminTools

(1)提示输入License File Path时,因为用的是社区版license,不用填,直接回车
(2)Accept EULA
(3)Configuration Menu
(4)Create Database
(5)输入Database Name: vertica
(6)输入密码和确认密码
(7)选择主机IP,因为是单节点安装,直接选择默认的那个IP
(8)确认数据实例安装目录,看需求,或者不用改,直接用默认的,/home/dbadmin
(9)会出现一个k-safe的提示,这是只有一个节点导致的,直接忽略,继续下一步
(10)安装成功

9.测试连接

[[email protected] bin]$
vsql -h 127.0.0.1 -d vertica -u dbadmin
vsql: warning: extra command-line argument "dbadmin" ignored
vsql: Warning: The -u option is deprecated. Use -U.
User name: dbadmin
Password: ******
Welcome to vsql, the Vertica Analytic Database interactive terminal.

Type: h or ? for help with vsql commands
g or terminate with semicolon to execute query
q to quit

vertica =>

 


















以上是关于vertica单节点安装的主要内容,如果未能解决你的问题,请参考以下文章

Vertica7 Native Connection Load Balance

vertica和greeplum的区别

vertica,greenplum 安装

Vertica备份恢复

Vertica参数的设置

Vertica示例数据库安装