Installing Digital Hive 2024.3 on Linux
Overview
The 2024.3 Digital Hive release brings a lot of new capabilities to the market. In order to deliver some of the new features, changes to the underlying technology stack that underpins the Digital Hive solution had to be made. The 2024.3 release includes modernization to both PostgreSQL (Digital Hive Content Store) and ElasticSearch (provides the search capabilities). Although a lot of effort went in to upgrading the components and to minimize the effort required to install Digital Hive, there are some additional installation steps that must be performed to successfully install Digital Hive 2024.3 on Linux.
Pre-installation Steps
- Create a non-root user to use for the Digital Hive installation
Edit the limits.conf file, for example, sudo vi /etc/security/limits.conf
Add the following properties and save the file (include the *)
* soft nofile 65536
* hard nofile 65536
* soft nproc 8192
* hard nproc 8192
* soft memlock unlimited
* hard memlock unlimited
Using sudo, edit sysctl.conf
sudo vi /etc/sysctl.conf
Add the following lines and save the file
#Added for Elasticsearch
vm.max_map_count=262144
Reboot the server
sudo reboot
Postgres Installation Steps (This example uses Ubuntu, the Linux commands will be slightly different on other Linux flavours)
Here is an article that explains how to install PostgreSQL 16 on RHEL-Based Linux
- Apply the latest Linux updates: sudo apt-get update
- Enable PostgreSQL Repository: sudo apt install postgresql
- Allow other computers to connect to Postgres: sudo vi /etc/postgresql/16/main/postgresql.conf
- Change listen_address from localhost to *, and remove the '#' in front of listen_addresses
listen_addresses = ‘*’ - Ensure PostgreSQL is running by running: sudo systemctl status postgresql
- If it's not running, start PostgreSQL: sudo systemctl start postgresql
- Set the password for the postgres user: sudo -u postgres psql template1
- Run this SQL: alter user postgres with encrypted password ‘your_password’;
- Type: exit
- Change the authentication for the postgres user allowed for the template1 database to use md5 authentication:
sudo vi /etc/postgresql/16/main/pg_hba.conf - Add this line (changing <local network IP> to your private IP):
hostssl template1 all <local network IP> md5 - Restart Postgres: sudo systemctl restart postgresql.service
- Create a Postgres user for the Digital Hive content store
sudo -u postgres psql template1 - At the template1=# prompt, run this SQL (replacing admin1234 with whatever password you want)
create user dhadmin password 'admin1234'; - Create the Digital Hive database
create database digitalhive; - Grant permissions to that digitalhive database to the dhadmin user
grant all on database digitalhive to dhadmin; - Give the dhadmin user createrole permission
alter role dhadmin with CREATEROLE; - Exit psql
exit
You now have a Postgres Digital Hive database that can be used for the Digital Hive content store
Digital Hive Installation Steps
Open a Linux terminal and login as the Digital Hive user
Create a directory in your Digital Hive root, called installer. For example, in my environment, the Digital Hive user home is /home/digitalhive/DigitalHive and I created a directory in there called installer: /home/digitalhive/DigitalHive/installer
- If you didn't SFTP into that folder directly, move the file to that directory: mv DigitalHive-2024.3_linux-x64.tar.gz /home/digitalhive/DigitalHive
NOTE: if you used root to SFTP the file to the server, then you will have to chown and chgrp the file to the Digital Hive user, For example:
chown digitalhive DigitalHive-2024.3_linux-x64.tar.gz
chgrp digitalhive DigitalHive-2024.3_linux-x64.tar.gz If you're not logged in as the Digital Hive user, then: su digitalhive
Unzip the file: gunzip DigitalHive-2024.3_linux-x64.tar.gz
Untar the file: tar -xvf DigitalHive-2024.3_linux-x64.tar
Run the installer with this
command: ./setup.sh
At this prompt: Press 1
Enter Licensee name: <your license name>
- Enter License key: <your license key>
- Press 1 to continue
- Press spacebar until this prompt: Press 1 to accept, 2 to reject, 3 to
display
- Enter 1
Enter 0 (or press Enter) to Install
- Enter 1
- Enter 0 or Press Enter (for Express)
- Enter 0 or Press Enter (for full installation)
- Enter 1
- Enter the Digital Hive installation path (or
press enter to accept the default path)
- Enter O (assuming it is correct)
- Enter 1
- Press Enter or put in whatever name you want at this prompt
- Enter a password and confirm the password
- Enter 1
- Enter the hostname or IP
- Enter the name of the database that you created
- Press Enter (if the port is correct) or enter the correct port (in this example 5433)
Enter the Digital Hive user that you created earlier, in this example dhadmin
Enter and confirm that Digital Hive user
password- Enter 1
- Enter 1 (if you want to install IQ)
- Enter 1
Press Enter for all of these ports (or enter a port that you want to use)
Enter 1
- Installation will begin and end with a message stating that it was successful
Digital Hive should be successfully installed now
Related Articles
Installing the Digital Hive Software
Question How do you install Digital Hive? Answer Digital Hive can be installed in Windows or Linux environments. Installing Digital Hive on Windows Prerequisites for installing Digital Hive on Windows Microsoft® Visual C++ 2013 runtime library ...
Upgrading Digital Hive on Linux to the 2024.3 Release
Overview The 2024.3 Digital Hive release brings a lot of new capabilities to the market. In order to deliver some of the new features, changes to the underlying technology stack that underpins the Digital Hive solution had to be made. The 2024.3 ...
Digital Hive Architecture Overview
Overview Digital Hive is a lightweight, web-based application that is both easy to install as well as to maintain and manage. Other than the Microsoft C++ redistributable (https://www.microsoft.com/en-ca/download/details.aspx?id=40784), there are no ...
Digital Hive Installation and Configuration Overview
Overview This article serves as a collection of all the steps required to install and configure the Digital Hive solution. Prerequisites Digital Hive can be installed on either Windows or Linux based systems. From a server sizing perspective, the ...
Uninstalling the Digital Hive Software
Question Digital Hive was recently installed on a new server. What is the best way to uninstall Digital Hive from the previous server? Answer To uninstall Digital Hive from your Windows server: Log into the physical Digital Hive Windows server as an ...