zoukankan      html  css  js  c++  java
  • vertica单节点安装

    准备环境:

     1.centos 7.0镜像

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

    安装过程:

    1.安装CentOS 7.0

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

    2.关闭防火墙

    
    
    [root@localhost ~]# systemctl disable firewalld 
    [root@localhost ~]# systemctl stop firewalld

    3.设置selinux为disable

    [root@localhost ~]# vi /etc/selinux/config SELINUX=disabled
    [root@localhost ~]# setenforce 0

    4.安装依赖包

    [root@localhost ~]# yum install gdb mcelog sysstat chrony ntp ntpdate -y

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

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

    6.调整参数

    [root@localhost ~]# vi /etc/sysctl.conf vm.swappiness = 1
    [root@localhost ~]# echo 1 > /proc/sys/vm/swappiness
    [root@localhost ~]# 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

    [root@localhost ~]# rpm -ivh vertica-9.1.1-1.x86_64.RHEL6.rpm

    [root@localhost ~]# /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.初始化数据库

    [root@localhost ~]# su - dbadmin 

    [dbadmin@localhost ~]$ ./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.测试连接

    [dbadmin@localhost 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 =>
  • 相关阅读:
    访问静态文件时, 为NetCore项目添加MIME类型支持
    Ant design pro formItem validator报警告 `callback` is deprecated. Please return a promise instead.
    .NET Core 自定义过滤器 AllowAnonymous 失效问题
    前端获取二进制流下载文件并解决无法获header问题,Content-Disposition
    cefSharp通过js操控页面,含跨域操控
    C#中Application.StartupPath和System.Environment.CurrentDirectory的区别
    C# XML配置文件读写类(用于程序配置保存)
    C#爬虫使用代理刷文章浏览量
    c#批量抓取免费代理并验证有效性
    C# 代理HTTP请求
  • 原文地址:https://www.cnblogs.com/tomatoes-/p/10280570.html
Copyright © 2011-2022 走看看