In this tutorial we see how we can install Vertica database from scratch. Install the SO(Linux-CentOS x64 or RedHat x64)
yum install rsync python* telnet ruby* java* sudo openssh-server openssh-clients
chkconfig sshd on
service sshd start
vi /etc/pam.d/su
#add the line
session required pam_limits.so
chkconfig --list ntpd
#if is not on use the commands
chkconfig ntpd on
#start ntp service
/etc/init.d/ntpd start
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.xxx.13.128 host01
192.xxx.13.129 host02
192.xxx.13.130 host03
192.xxx.13.131 host04
vim /etc/ sysconfig/network
Alter the hostname and set it to the desired name :
HOSTNAME=host01
vim /etc/profile or /etc/bashrc
Add the line
export HOSTNAME=hostname
/bin/hostname
Hostname
[root@Vertica_Master1 ~]# ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
/root/.ssh/id_rsa already exists.
Overwrite (y/n) y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
7c:b5:11:48:d3:c1:e6:f5:80:b3:4a:4a:93:ed:16:99
root@Vertica_Master1
The key's randomart image is:
+--[ RSA 2048]----+
| .o+oo |
| ..*.o |
| o =o+ o |
| .+ E.oo .|
| .S=.o. |
| ..+ |
| . |
| |
| |
+-----------------+
[root@Vertica_Master1 ~]# cd ~
[root@Vertica_Master1 ~]# chmod 700 .ssh
[root@Vertica_Master1 ~]# cd .ssh/
[root@Vertica_Master1 .ssh]# cp id_rsa.pub authorized_keys
[root@Vertica_Master1 .ssh]# cat id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEArX26Pgsyvkw+o0Vimm26FSOAtTh9C9
mZ+tS7LfO92y7RDKsSm38tSQO/p1f2NWP6UzAam8dG77Zo8W+wjwF6bEJbFU9Gq+S/j
hETD8bMTKh6odZNhXmZanddvH4qnA0eKngAPe9Y93udA6kEYGpA0sCWMFcbrtvwraz7@Vertica_Master1
[root@Vertica_Master1 .ssh]# ssh root@Vertica_Master2
The authenticity of host 'vertica_master2 (10.xxx.1.224)' can't be established.
RSA key fingerprint is ff:9c:48:27:7d:6b:a1:39:5a:17:d0:a3:a3:9d:f0:48.
Are you sure you want to continue connecting (yes/no) yes
Warning: Permanently added 'vertica_master2,10.xxx.1.224' (RSA) to the list of known hosts.
root@vertica_master2's password:xxxxxx- this is the password for the root user
Last login: Tue Sep 4 15:11:35 2012 from e05347
-bash: Vertica_Master2: command not found
[root@Vertica_Master2 ~]# hostname-check to see that you are on the Vertica_Master2
Vertica_Master2
[root@Vertica_Master1 .ssh]# vim authorized_keys
And copy the the content of the id_rsa.pub into authorized_keys and save it .
#rpm hv vertica-6.0.0-3.x86_64.RHEL5.rpm
After entering the command, a progress indicator appears:
Preparing... ##################################### [100%]
1:vertica ##################################### [100%]
Vertica 6.0.xx successfully installed on host hostname.
/opt/vertica/sbin/install_vertica -s host_list -r rpm_package -u dba_username
-s host01,host02,host03
or
-s 192.xxx.233.101,192.xxx.233.102,192.xxx.233.103
-r rpm_package The pathname of the Vertica RPM package.
-r "vertica_6.0.x.x86_64.RHEL5.rpm"
-u dba_username
-this will be the name of the user how will run the admintools(only)
- If you omit the parameter, the default database administrator account name is dbadmin.
# /opt/vertica/sbin/install_vertica -s 10.xxx.1.216,10.xxx.1.224,10.xxx.1.225 -r
/home/user/Downloads/vertica-6.0.0-3.x86_64.RHEL5.rpm -u dbadmin
mkdir /vertica_db/data
mkdir /vertica_db/data
chown dbadmin:dbadmin vertica_db/