Upgrading OmniSci

How you upgrade OmniSci depends on how you installed it.

Upgrading OmniSci Using Docker

To upgrade OmniSci in place in Docker, stop the current Docker container and run the OmniSci Docker install command.

  1. In a terminal window, get the Docker container ID:

    docker container ls
    

    You see output similar to the following. The first entry is the container ID. In this example, it is 9e01e520c30c:

    CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 9e01e520c30c mapd/mapd-ce-cpu “/bin/sh -c ‘/mapd...” 3 days ago Up 3 days 0.0.0.0:9090-9092->9090-9092/tcp confident_neumann

    To see all containers, both running and stopped, use the following command:

    docker container ls -a
    
  2. Stop the OmniSci Docker container. For example:

    docker container stop 9e01e520c30c
    

    Optionally, remove the OmniSci Docker container. This removes unused Docker containers on your system and saves disk space. For example:

    docker container rm 9e01e520c30c
    
  3. Download the latest version of Docker.

    For Community Edition Without GPUs:

    docker pull mapd/mapd-ce-cpu
    

    For Community Edition With GPUs:

    docker pull mapd/mapd-ce-cuda
    
  4. Run the Docker Install command.

    For Community Edition Without GPUs:

    docker run -d -v $HOME/mapd-docker-storage:/mapd-storage -p 9090-9092:9090-9092 mapd/mapd-ce-cpu
    

    For Community Edition With GPUs:

    nvidia-docker run -d -v $HOME/mapd-docker-storage:/mapd-storage -p 9090-9092:9090-9092 -v /usr/share/glvnd/egl_vendor.d:/usr/share/glvnd/egl_vendor.d mapd/mapd-ce-cuda
    

When the installation is complete, OmniSci server and OmniSci web server start automatically.

You can optionally add --rm to the Docker run command so that the container is removed when it is stopped.

Upgrading OmniSci Using Yum

To upgrade an existing system installed with Yum to the latest version, you run the Yum update command. The command upgrades OmniSci in place without disturbing your configuration or stored data.

To Upgrade OmniSci Using Yum:

  1. Stop the OmniSci servers.

    sudo systemctl stop mapd_web_server
    sudo systemctl stop mapd_server
    
  2. Run the Yum update command.

    sudo yum update mapd
  3. When installation is complete, restart the OmniSci servers.

    sudo systemctl start mapd_server
    sudo systemctl start mapd_web_server
    

Upgrading OmniSci Using Apt

To upgrade an existing system installed with Apt to the latest version, you run the Apt update and upgrade commands. OmniSci is upgraded in place without disturbing your configuration or stored data.

To Upgrade OmniSci Using Apt:

  1. Stop the OmniSci servers.

    sudo systemctl stop mapd_web_server
    sudo systemctl stop mapd_server
    
  2. Run the Apt update command.

    sudo apt update
    
  3. Run the Apt upgrade command.

    sudo apt upgrade mapd
    
  4. When installation is complete, restart the OmniSci servers.

    sudo systemctl start mapd_server
    sudo systemctl start mapd_web_server
    

Upgrading OmniSci Using a Tarball

To upgrade OmniSci using a tarball, stop the servers, expand the tar file to replace the OmniSci application, change the symbolic link, and then restart the servers.

These instructions assume the following:

  • You previously installed OmniSci using a tarball.
  • You used an /installs directory and a symbolic link.
  • Your $MAPD_PATH environment variable matches the location of the symbolic link. (The default location of the symlink is /opt, and its name is mapd, which matches the $MAPD_PATH of /opt/mapd).

OmniSci recommends that you create an installs directory for each version of OmniSci as you upgrade. For standard installations, the installs directory can be in the home directory. Create or modify a symbolic link to the current version, and update the definition with each upgrade. If you need to revert to an earlier release, you can do so by changing the link.

  1. Stop the OmniSci web server and OmniSci server.
    sudo systemctl stop mapd_web_server
    sudo systemctl stop mapd_server
  2. Go to the installs directory. If this is your first upgrade, create the installs directory in your home directory:
    cd ~
    sudo mkdir installs
    cd installs
  3. Download the OmniSci TAR file to the installs directory.
  4. Expand the archive of the new version of OmniSci.
    tar -xvf <file-name>.tar.gz
    
  5. List the contents of the installs directory and copy the name of the directory created when expanding the archive; for example, mapd-ee-4.3.0-20181119-b7f85d00bd-Linux-x86_64-render.
  6. Go to the opt directory, and delete and re-create a symbolic link to the directory you just copied:
    cd /opt
    sudo rm mapd
    sudo ln -s ~/installs/<onmisci_directory> mapd
  7. Restart the servers.
    sudo systemctl start mapd_server
    sudo systemctl start mapd_web_server