Upgrading the S3 Gateway

This topic provides instructions for manually updating the Object Store version 2.0.x to 2.1.x on an edge node or server node that is running core software. When you upgrade, Object Store configurations are automatically migrated. If LDAP integration is enabled, verify that the policies and configurations are correct after migration.

Edge Node Upgrade

About this task

Before you upgrade, stop the S3 Gateway services on the node, as described in Pre-Upgrade Steps for S3 Gateway.

Use the following steps to upgrade the Object Store with S3-Compatible API on an edge node:

Procedure

  1. Upgrade the mapr-objectstore-client package:
    • Red Hat / CentOS:
      sudo yum update install mapr-objectstore-client
    • Ubuntu:
      sudo apt-get install mapr-objectstore-client
    • SLES
      sudo zypper update install mapr-objectstore-client
  2. Run the objectstore configure.sh script, as shown, to configure the Object Store:
    sudo /opt/mapr/objectstore-client/objectstore-client-<version>/bin/configure.sh -c -u <userName> -g <groupName> --path /path/to/filesystem/
    In this command:
    -c is the client node of the mapr-objectstore-client
    -u (--user) is the user admin for working with the mapr-objectstore-client
    -g (--group) is the group
    -p (--path) is the path for mounting the filesystem
    Example:
    sudo /opt/mapr/objectstore-client/objectstore-client-2.1.0/bin/configure.sh -c -u mapr -g mapr --path /mapr/my.cluster.com/objectstore
    
  3. Run the objectstore.sh script to start the Object Store:
    sudo /opt/mapr/objectstore-client/objectstore-client-<version>/bin/objectstore.sh start
  4. Verify that the Object Store process is running:
    sudo /opt/mapr/objectstore-client/objectstore-client-<version>/bin/objectstore.sh status
    When the process is running, the system prints the following message:
    Minio is running
  5. Configure the Object Store. For details, see Configuring S3 Gateway.

Server Node Upgrade

About this task

Before you upgrade, stop the S3 Gateway services on the node, as described in Pre-Upgrade Steps for S3 Gateway.

Use the following steps to upgrade the Object Store with S3-Compatible API on a server node:

Procedure

  1. Upgrade the mapr-objectstore-gateway and mapr-objectstore-client packages:
    • Red Hat / CentOS:
      sudo yum update mapr-objectstore-client mapr-objectstore-gateway
    • Ubuntu:
      sudo apt-get install mapr-objectstore-client mapr-objectstore-gateway
    • SLES
      sudo zypper update mapr-objectstore-client mapr-objectstore-gateway
  2. Set the accessKey and secretKey in /opt/mapr/objectstore-client/objectstore-client-<version>/conf/minio.json.
  3. To configure Warden, use configure.sh on the first run:
    sudo /opt/mapr/server/configure.sh -R
  4. Verify that the Object Store process is running:
    sudo /opt/mapr/objectstore-client/objectstore-client-<version>/bin/objectstore.sh status
    When the process is running, the system prints the following message:
    Minio is running
  5. Configure the Object Store. For details, see Configuring S3 Gateway.