This section covers installing Squirro on a Linux system without internet access. This complements the Setup on Linux section.
Table of Contents
Table of Contents | ||||
---|---|---|---|---|
|
Prerequisites
Please refer to the Architecture and Prerequisites sections of Setup on Linux. Both of these sections also apply to an offline installation.
For an offline installation, Squirro will provide you with a tar.gz
file which contains all the required RPM files. Make that file available on the server, for example by copying it over using scp.
YUM Repositories
Extract Repository
The tar.gz
file above contains a YUM repository that can be used offline. To use this on the server, extract it:
Code Block | ||
---|---|---|
| ||
sudo su
mkdir -p /opt/squirro
cd /opt/squirro
tar -xvf /tmp/squirro-xxx.tar.gz |
This creates the folder /opt/squirro/repo
and populates it with al the RPM files.
Squirro
Create the file /etc/yum.repos.d/squirro.repo
.
Code Block | ||||
---|---|---|---|---|
| ||||
[squirro]
name=Squirro
baseurl=file:///opt/squirro/repo/
enabled=1
metadata_expire=300
gpgcheck=0 |
Storage Node Installation
Installation of the storage node happens with two separate packages. The first package installs the required Linux users and the second installs the services. Use the following two commands for the installation:
Code Block | ||
---|---|---|
| ||
yum install elasticsearch # in case of installing Squirro v2.6.0
yum install squirro-storage-node-users
yum install squirro-storage-node |
Cluster Node Installation
First install the following prerequisites:
...
Code Block |
---|
yum install libgomp |
...
The default MySQL variant for MySQL on RHEL7/CentOS7 is MariaDB.
Please execute the following before you proceed further:
Code Block | ||
---|---|---|
| ||
echo "Installing Squirro dependency MariaDB"
yum install -y mariadb-server
yum install -y policycoreutils-devel
if [ -f /lib/systemd/system/mariadb.service ]; then
systemctl stop mariadb
mv /lib/systemd/system/{mariadb,mysqld}.service
systemctl enable mysqld
systemctl start mysqld
fi |
Once we have released MariaDb RPM packages, the corresponding upgrade will undo this indirection.
Installation of the Squirro cluster node happens with two separate packages. The first package installs the required Linux users and the second installs the services. Use the following commands for the installation:
Code Block | ||
---|---|---|
| ||
yum install python27-python || yum install python27
yum install squirro-cluster-node-users
yum install squirro-cluster-node |
If the Storage and Cluster node are not the same physical machine, then you need now to adjust the file /etc/nginx/conf.d/upstream-elastic.inc to point to the IP or Hostnames of the storage node(s).
Examples:
...
Code Block |
---|
upstream elastic {
server 127.0.0.1:9200;
keepalive 32;
} |
Code Block |
---|
upstream elastic {
server 192.168.0.20:9200;
keepalive 32;
} |
Code Block |
---|
upstream elastic {
server 192.168.0.20:9200;
server 192.168.0.21:9200;
server 192.168.0.22:9200;
keepalive 32;
} |
If changes have been made to this file, reload the nginx configuration
Code Block | ||
---|---|---|
| ||
service nginx reload |
Finally start the Squirro Services:
...
Code Block | ||
---|---|---|
| ||
service monit start
monit -g all-manual start |
Code Block | ||
---|---|---|
| ||
echo "Starting Squirro services"
cd /lib/systemd/system
for service in $(ls sq*d.service); do
echo "Starting $service"
systemctl restart $service
done |
...
page can now be found at Installing Squirro on Linux on the Squirro Docs site.