ADCM installation

ADCM requires a separate host. Before installing ADCM, we recommend to read its documentation.

The installation steps are listed below.

Step 1. Checking prerequisites

Software and hardware requirements

ADCM is a software that is distributed in the form of a Docker Image. To install it, you need:

  • A maintained version of the CentOS 7/RHEL 7/Alt Linux SP 8 operation system. Archived versions are not supported or tested.

  • A user account with sudo privileges.

  • An access to the official repository of CentOS Extras and CentOS Base. This repository is enabled by default, but if you have disabled it — you need to re-enable it (e.g. via editing the repository configuration file in the /etc/yum.repos.d/ directory).

  • The software package installer YUM/APT.

  • The hardware that meets the following conditions:

    • CPU: 2-4 CPU cores;

    • RAM: 8-16 GB;

    • HDD: 8-50 GB.

Docker installation

CAUTION

Do not install Docker from the official Docker site. Instead of it, use the official repositories of your Linux distribution. The repositories provided by operation system developers tend to be more stable and secure.

The typical installation sequence via the package manager YUM includes the following steps:

  1. Using root privileges, update all packages that are currently installed in your system:

    $ sudo yum update -y
  2. Install the packages required for Docker installation and using:

    $ sudo yum install -y yum-utils docker device-mapper-persistent-data lvm2
  3. Start Docker:

    $ sudo systemctl start docker
  4. Enable Docker as a system service:

    $ sudo systemctl enable docker

SELinux disabling (optionally)

To disable SELinux permanently, set SELINUX=disabled in the /etc/selinux/config file and reboot your system.

You can edit the file via the vi or vim command:

$ sudo vi /etc/selinux/config

The content of the changed file should look like this:

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#       enforcing - SELinux security policy is enforced.
#       permissive - SELinux prints warnings instead of enforcing.
#       disabled - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
#       targeted - Only targeted network daemons are protected.
#       strict - Full SELinux protection.
SELINUXTYPE=targeted

You can also disable SELinux temporarily via the following command:

$ sudo setenforce 0

Still, it is strongly recommended to disable SELinux permanently, so that it does not restart on each system reboot.

CAUTION

Do not forget to reboot your host after SELinux is disabled.

Stopping firewall

If you use the firewalld service — please, stop it before installing ADCM. You can use this command:

$ sudo systemctl stop firewalld

As an alternative, you can disable the firewalld service, so that it will not apply rules to network packets:

$ sudo systemctl disable firewalld

Allowing access to the Docker CLI without root privileges

If in the future you want to access the Docker CLI without using root privileges, you should create a docker user group (if it does not exist) and add the current user to this group with the certain rights:

$ sudo groupadd docker
$ sudo usermod -a -G docker $USER

After running these commands, you should re-login under the current user.

Step 2. Installing ADCM

To install ADCM, you should run the following commands:

  1. Pull a Docker Image from the Arenadata Docker Registry.

    $ sudo docker pull hub.arenadata.io/adcm/adcm:latest
  2. Add a container based on that image. The command below creates a container on the port 8000 with ADCM. All its data will be stored on the host machine in the /opt/adcm/ directory.

    $ sudo docker create --name adcm -p 8000:8000 -v /opt/adcm:/adcm/data hub.arenadata.io/adcm/adcm:latest

    If you want to run ADCM with SELinux enabled, a Docker container should be created with the :Z option in the data catalog parameter:

    $ sudo docker create --name adcm -p 8000:8000 -v /opt/adcm:/adcm/data:Z hub.arenadata.io/adcm/adcm:latest
NOTE
  • You can download not only the latest Docker image, but also the specified one. To do this, use the image name instead of the latest keyword in the commands listed above. To see the full list of images, refer to the ADCM repository on Docker Hub.

  • ADCM has some mandatory persistent information that is stored in the /adcm/data directory inside of a container. This means that you have to map a volume to that directory and provide for that volume backups.

Step 3. Starting ADCM

ADCM is just a container operated by Docker. So you are able to use simple Docker commands to start and stop ADCM:

  • To start ADCM, use the following command.

    $ sudo docker start adcm
  • To stop ADCM, use the following command.

    $ sudo docker stop adcm
  • In order to provide the automatic start of the Docker container after unexpected errors, use the following command.

    $ sudo docker update --restart=on-failure adcm
NOTE
  • For more information about Docker restart policies, refer to the Docker documentation.

  • If you allowed your user to access the Docker CLI without root privileges, then you can omit the sudo keyword from the commands listed above.

Step 4. Checking installation

Checking the Docker container status

To make sure that the Docker container adcm is successfully deployed, run the following command.

$ sudo docker container ls

The result is listed below. Make sure that the STATUS value is equal to Up.

CONTAINER ID        IMAGE                               COMMAND             CREATED             STATUS              PORTS                    NAMES
74b5628146e5        hub.arenadata.io/adcm/adcm:latest   "/etc/startup.sh"   4 days ago          Up 21 minutes       0.0.0.0:8000->8000/tcp   adcm

Checking the port 8000 availability

After ADCM is installed and started, its web interface should become available on the 8000 port of the deployed container. You can check it using these commands:

  • The netstat command — to display information about port listening.

    $ sudo netstat -ntpl | grep 8000

    The output data should look like this:

    tcp6       0      0 :::8000                 :::*                    LISTEN                                             1514/docker-proxy-c
  • The curl command — to check the URL connection.

    $ curl http://localhost:8000

    The output data should look like this:

    <!doctype html>
    <html lang="en">
    <head>
      <meta charset="utf-8">
      <title>Arenadata Cluster Manager</title>
      <base href="/">
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <link rel="icon" type="image/x-icon" href="assets/favicon.ico">
    <link rel="stylesheet" href="styles.10db6328264e0907c52f.css"></head>
    <body>
      <app-root></app-root>
    <script src="runtime-es2015.7eb406ed18bf0258cd35.js" type="module"></script><script src="runtime-es5.7eb406ed18bf0258cd35.js" nomodule defer></script><script src="polyfills-es5.2e224d70daec4412d3c2.js" nomodule defer></script><script src="polyfills-es2015.37e0553ac06970d6a5b5.js" type="module"></script><script src="main-es2015.39851da0ebf9ed6fec45.js" type="module"></script><script src="main-es5.39851da0ebf9ed6fec45.js" nomodule defer></script></body>
    </html>

Checking the ADCM web-interface

To log in to ADCM, you should use the user with administrator rights that is created by default:

  • Login: admin

  • Password: admin

adcm install 02
Log in to ADCM

Later you can change the password, if necessary. To do this:

  1. Open the account menu in the top right corner of the screen.

  2. Click the Profile list item in the account menu.

  3. In the window that opens, change the password and confirm it.

  4. Click Save.

    adcm install 06
    Changing the admin password

Checking the ADCM URL

If the ADCM container ends up on the network using NAT, it makes impossible the automatic determining the address of the ADCM container that is used by clusters components for sending information about their state to ADCM.

In this and other cases of complicated network structures, you may need to specify the ADCM URL manually. To do this:

  1. Open the account menu in the top right corner of the screen.

  2. Click the Settings list item in the account menu.

  3. Select the Settings tab.

  4. Check the correctness of the automatically determined URL in the ADCM’s URL field and replace it with a valid one, if necessary.

    adcm install 01
    Checking the ADCM URL
  5. Click Save.

    adcm install 04
    Saving the ADCM URL

Step 5. Updating ADCM

If you need to upgrade the previously installed version of ADCM, do the following:

  1. Stop the adcm container.

    $ sudo docker stop adcm
  2. Remove the adcm container.

    $ sudo docker container rm adcm
  3. Download from the Arenadata Docker Registry the Docker Image that you need.

    $ sudo docker pull hub.arenadata.io/adcm/adcm:latest
  4. Create a new container based on the uploaded image.

    $ sudo docker create --name adcm -p 8000:8000 -v /opt/adcm:/adcm/data hub.arenadata.io/adcm/adcm:latest
  5. Start the new adcm container.

    $ sudo docker start adcm
Found a mistake? Seleсt text and press Ctrl+Enter to report it