Skip to content
NewDatafor 10.02 is out: subscriptions and metric alerts, in Slack and Teams
Datafor

Setup

Installation Guide (RHEL-compatible Linux)

Install, start, stop and update Datafor and its AI Agent on RHEL-compatible Linux 8 or 9.

These steps apply to RHEL-compatible distributions, version 8 or 9 (for example Rocky Linux, AlmaLinux or Red Hat Enterprise Linux). CentOS 7 and CentOS 8 are end of life. The package glibc-langpack-en used below exists from version 8 on.

Requirements

  • Memory: the Datafor server starts with a Java heap of 2 GB that can grow to 6 GB (-Xms2048m -Xmx6144m). The built-in PostgreSQL database and the AI Agent run beside it, so plan at least 8 GB RAM. To change the heap, see Increasing Memory Limit for Datafor Server.
  • Java: bundled in bi-server/java. You do not need to install Java.
  • Ports: 28080 (web server), 25432 (built-in PostgreSQL), 28081 (AI Agent API) and 38081 (AI Agent MCP server). Open only 28080 in the firewall, or only the Nginx ports when Datafor runs behind Nginx. Keep 25432, 28081 and 38081 closed to the network.

Step 1: Switch to the root user and install the required packages

sudo su root
yum install unzip procps-ng glibc-langpack-en -y

Console output example:

[root@your-server ~]# yum install unzip procps-ng glibc-langpack-en -y
Package unzip-6.0-48.el8_10.x86_64 is already installed.
Package procps-ng-3.3.15-14.el8.x86_64 is already installed.
Package glibc-langpack-en-2.28-251.el8_10.31.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

Then install the libraries and fonts the render service needs. The render service produces the screenshots, PDF, figures and Excel files that subscriptions send, using the Chromium that comes with the installation; Chromium’s system libraries do not come with it. Without them the render service stops right after it starts and subscriptions go out with the report link only. Without a CJK font, Chinese and Japanese text renders as boxes.

yum install -y alsa-lib at-spi2-atk atk at-spi2-core cairo cups-libs dbus-libs libdrm mesa-libgbm \
  glib2 nspr nss pango libX11 libxcb libXcomposite libXdamage libXext libXfixes libxkbcommon libXrandr \
  google-noto-sans-cjk-ttc-fonts liberation-fonts

See Render service for how to check it.

Step 2: Create the biadmin user group

groupadd biadmin

Step 3: Create the biadmin user

Create a user named biadmin, add it to the biadmin group, and set its password:

adduser biadmin -g biadmin
passwd biadmin

Step 4: Extract the installation package

Go to the directory that holds the installation package and extract it into /opt. Use the file name of the package you received, for example datafor-server-linux-<version>.zip:

unzip -o datafor-server-linux-<version>.zip -d /opt/

The package creates /opt/bi-server.

Step 5: Set directory permissions

cd /opt/
chmod -R 700 bi-server
chown -R biadmin:biadmin bi-server

Installation is now complete.


Starting Datafor

Perform the following steps as the biadmin user.

Step 1: Switch to biadmin

su - biadmin

Step 2: Start Datafor

cd /opt/bi-server/
./start-server.sh

The script starts the built-in PostgreSQL database, the AI Agent and the Datafor web server (Tomcat).

Console output example:

[biadmin@your-server bi-server]$ ./start-server.sh
DEBUG: Found JAVA at the current folder
DEBUG: _PENTAHO_JAVA_HOME=/opt/bi-server/java
DEBUG: _PENTAHO_JAVA=/opt/bi-server/java/bin/java
waiting for server to start...
LOG: listening on IPv4 address "0.0.0.0", port 25432
LOG: database system is ready to accept connections
server started
Using CATALINA_BASE: /opt/bi-server/tomcat
Using CATALINA_HOME: /opt/bi-server/tomcat
Using JRE_HOME: /opt/bi-server/java
Using CATALINA_OPTS: -Xms2048m -Xmx6144m ...
Tomcat started.

Step 3: Stop Datafor

cd /opt/bi-server/
./stop-server.sh

The script stops the web server, the AI Agent and the database.

Console output example:

LOG: shutting down
LOG: database system is shut down
server stopped

Step 4: Check whether Datafor is running

ps -ef | grep [t]omcat

If the command prints a Java process whose arguments contain /opt/bi-server/tomcat, Datafor is running. No output means it is stopped.


Signing in to Datafor

Open http://<server-ip>:28080/ in a browser. The installation comes with two accounts:

  • Administrator: admin / password
  • Demo user: demo / demo

Change the admin password right after the first sign-in (see Modify Password), and change the demo password or delete that user if you do not need it.


Updating the System

To install an update package, follow Upgrading Datafor.