HPE Vertica 8 was released back in August. This post will cover basic installation of single-node Vertica 8.0.0 cluster on Ubuntu Server.
My assumptions
- this is minimal install, which is not intended for production use
- I am not worried about redundancy, so I can do a single-node cluster
- I am not planning to do benchmarking or stress testing
- I am not planning to add more nodes in the future so I can use 127.0.0.1 as install IP
- I am not planning to use EXPORT/IMPORT commands so I can use 127.0.0.1 as install IP
My environment
- VM has 1 CPU, 4Gb of RAM and 32Gb of hard drive space
- Ubuntu Server 14.04 LTS (used ubuntu-14.04.4-server-amd64.iso)
- Vertica 8.0.0 (used vertica_8.0.0-0_amd64.deb)
Installing The Vertica Server Package
Vertica has a Community Edition, which is free. You can create a free account on my.vertica.com, go to Downloads and download the server package from there. Once the package is downloaded, copy it to your Ubuntu server.
Verify the default shell on your Ubuntu server. It should be bash.
If you have something else then you have to change it to bash. The Vertica Documentation page “Platform Requirements and Recommendations” has instructions on how to do it.
Before installing the Vertica package itself we need to install the package dependencies. Per installation documentation Vertica package dependencies are:
- openssh-server
- which
- dialog
I verified that my standard Ubuntu install already has which, but does not have openssh-server and dialog
All I have to do now is install openssh-server and dialog. Run the following commands to do that:
root@ubuntu:~# apt-get install openssh-server root@ubuntu:~# apt-get install dialog
When all the dependencies are in place install the vertica package by running the following command:
root@ubuntu:~# dpkg -i vertica_8.0.0-0_amd64.deb
Vertica Installation Script
When the Vertica server package was installed on Ubuntu it placed a script with the name install_vertica to /opt/vertica/sbin/ folder. You install the Vertica software and configure the Vertica cluster by running that script. When install_vertica is executed it does multiple things for you. The major things it does are:
- [In case of multi node installation] sets up passwordless ssh for the administrator user across all nodes
- [In case of multi node installation] copies the Vertica package to all other nodes
- [In case of multi node installation] installs the Vertica package to all other nodes
- tests each node to verify that the hosts meet the performance requirements
- tests each node to verify that the hosts meet the system requirements
- modifies some operating system configuration settings if those do not meet the requirements
- errors out and reports operating system configuration settings if they cannot be modified by the install script and must be manually reconfigured
Here is a screenshot from an unsuccessful install_vertica script execution with the script complaining about failed requirements.
In the image above you can see the severity in the red color. Severity HINT is showing you informational ignorable messages. Severity FAIL will prevent installation and should be addressed manually. Each message has a unique code associated with the reported issue (eg. S0030, S0310), and a URL to the page in the Vertica documentation related to the reported issue and a brief description of the issue.
Behavior of the install_vertica script is controlled by specifying installation parameters. It has more than 2 dozens of those. Our install will be very basic so the default values will work just fine for the majority of them. One thing I would like to change from the default is the folder where the Vertica database will be placed. By default, database data and catalog files will be placed into /home/dbadmin
Installing Vertica Software
Creating the Vertica Database
Conclusion
At this point we have a fully functional single-node Vertica cluster running on the Ubuntu Server.
merci pour le tuto
Я собаку съел на установке Вертики, так что позволю вставить свои три копейки.
Следуя твоим инструкциям, всё равно получишь предупреждения(warnings), хотя бы на TZ или READ AHEAD или IO Scheduler или SElinux.
Также рекомендую отключить все агенты vertica_agent, verticad для single node(скажем дружно – нафиг нужно в single node 😉 ). Причем, очень горячо рекомендую, так-как был баг(а может и до сих пор есть), когда vertica_agent сжирает дофига ресурсов.
Если не один проц(CPU), также рекомендую отключить NUMA.
И последняя рекомендация – Ubuntu 14.04 не лучший выбор, в ядре(kernel) есть баг. Вот только нынче получил:
Jul 16 18:26:46 synapse kernel: [ 7442.888560] NMI watchdog: BUG: soft lockup – CPU#1 stuck for 103s! [vertica:2234]
Интересно будет если ты на single core получишь его :))). Всё же лучше CentOS 7 с последним ядром, там баг исправлен.
https://forum.vertica.com/discussion/238872/bug-soft-lockup-cpu-for-vertica