Installing Object Store with S3-Compatible API
The Object Store with S3-Compatible API (Object Store) is an object storage server that can be used with the Amazon S3 cloud storage service.
The Object Store is included in MEP repositories beginning with MEP 6.0.0. This topic provides instructions for manually installing the Object Store version 2.0.0 on an Edge node or on a server node (for example, a data-fabric cluster node) that is running core software.
Requirements
Requirement | Description |
---|---|
Cluster packages | The Object Store with S3-Compatible API requires a working
data-fabric cluster. Connecting to the cluster requires either
mapr-core or mapr-client , depending on the
node type:
|
syslinux- utils package (Ubuntu only) |
For Ubuntu only, you must install the syslinux-utils
package:
|
libcap- progs package (Zypper only) |
For Zypper only, you must install the libcap-progs
package:
|
POSIX client | A POSIX client must be installed and configured on each node where the Object Store with S3-Compatible API will be used. See Installing and Configuring a POSIX client for the Object Store with S3-Compatible API. |
Object Store packages | Two packages are available for download:
mapr-objectstore-client
package only. For server nodes, you install the
mapr-objectstore-gateway and
mapr-objectstore-client packages. |
Installing and Configuring a POSIX client for the Object Store with S3-Compatible API
- Install the POSIX client:
- Red Hat /
CentOS:
sudo yum install mapr-posix-client-basic
- Ubuntu:
sudo apt install mapr-posix-client-basic
- SUSE:
sudo zypper install mapr-posix-client-basic
- Red Hat /
CentOS:
- In the
/opt/mapr/conf/fuse.conf
file, set the mount directory and the path to the user ticket:- Use the
fuse.mount.point
parameter to set the mount directory. The default setting is/mapr
. - Use the
fuse.ticketfile.location
parameter to set the path to the user ticket.
- Use the
- Create a mount directory and set permissions as follows:
mkdir -m 777 /mapr
- Start the POSIX
service:
sudo systemctl start mapr-posix-client-basic.service
- Verify that the data-fabric cluster is mounted to the
/mapr
directory:
For example:ls -la /mapr
ls -la /mapr/ total 1 drwxr-xr-x 7 mapr mapr 6 Feb 16 18:06 example.mapr.cluster
You should see a directory with the data-fabric cluster name and cluster data inside. By
default, the directory is my.cluster.com
unless you define a different
name for the cluster.
Installation
You can install the Object Store version 2.0.0 on an edge node or server node that runs data-fabric software. You must install the Object Store manually. The Installer does not support installation of the Object Store.
Edge Node Installation
- Install the
mapr-objectstore-client
package:- Red Hat /
CentOS:
sudo yum install mapr-objectstore-client
- Ubuntu:
sudo apt install mapr-objectstore-client
- SUSE:
sudo zypper install mapr-objectstore-client
- Red Hat /
CentOS:
- Run the objectstore
configure.sh
script, as shown, to configure the Object Store:
In this command:sudo /opt/mapr/objectstore-client/objectstore-client-<version>/bin/configure.sh -c -u <userName> -g <groupName> --path /path/to/filesystem/
For example:-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 sudo /opt/mapr/objectstore-client/objectstore-client-2.0.0/bin/configure.sh -c -u mapr -g mapr --path /mapr/my.cluster.com/objectstore
- Run the
objectstore.sh
script to start the Object Store:sudo /opt/mapr/objectstore-client/objectstore-client-<version>/bin/objectstore.sh start
- Verify that the Object Store process is
running:
When the process is running, the system prints the following message:sudo /opt/mapr/objectstore-client/objectstore-client-<version>/bin/objectstore.sh status
Minio is running
- Configure the Object Store. For details, see Configuring the Object Store with S3-Compatible API.
Server Node Installation
- Install the
mapr-objectstore-gateway
andmapr-objectstore-client
packages:- Red Hat /
CentOS:
sudo yum install mapr-objectstore-client mapr-objectstore-gateway
- Ubuntu:
sudo apt install mapr-objectstore-client mapr-objectstore-gateway
- SUSE:
sudo zypper install mapr-objectstore-client mapr-objectstore-gateway
- Red Hat /
CentOS:
- Set the
accessKey
andsecretKey
in/opt/mapr/objectstore-client/objectstore-client-<version>/conf/minio.json
. - To configure Warden, use
configure.sh
on the first run:sudo /opt/mapr/server/configure.sh -R
- Verify that the Object Store process is
running:
When the process is running, the system prints the following message:sudo /opt/mapr/objectstore-client/objectstore-client-<version>/bin/objectstore.sh status
Minio is running
- Configure the Object Store. For details, see Configuring the Object Store with S3-Compatible API.
For More Information
For more information about S3 commands, see the Amazon S3 Documentation.