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 |
---|
outline | true |
---|
exclude | Table of Contents |
---|
|
Prerequisites
Please refer to the Architecture and Prerequisites sections of Setup on Linux. Both of these sections also apply for 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
The tar.gz
file above contains a YUM repository that can be used offline. To use this on the server, extract it:
Code Block |
---|
|
[root@localhost ~]# mkdir -p /opt/squirro
[root@localhost ~]# cd /opt/squirro
[root@localhost ~]# 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 |
---|
language | text |
---|
title | /etc/yum.repos.d/squirro.repo |
---|
|
[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 |
---|
|
[root@localhost ~]# yum install squirro-storage-node-users
[root@localhost ~]# yum install squirro-storage-node |
Cluster Node Installation
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:
Note |
---|
title | Important step for RHEL7 / CentOS7 |
---|
|
Support for RHEL7 is still experimental. The default MySQL variant for MySQL on RHEL7/CentOS7 is MariaDB. Our RPM packages are however not yet ready for this change. Please execute the following workaround before you execute the next step: 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 |
Note that once we've release official support this renaming of the mariadb script will have to be undone. |
Code Block |
---|
|
[root]# yum install squirro-cluster-node-users
[root]# 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 |
---|
|
[root]# service monit start
[root]# 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.