Describes how to configure the client and provides client configuration and operation examples.
MEP 7.1.0 and later supports Object Store 2.1.0. The Object Store (MinIO) client 2.1.0 is located in
/opt/mapr/objectstore-client/objectstore-client-2.1.0/util/mc.
Before you complete the tasks described in the following sections, complete the tasks in Configuring Object Store with S3-Compatible API to configure Object Store.
mc alias set command, as
shown:mc alias set ALIAS HOSTNAME ADMIN_ACCESS_KEY ADMIN_SECRET_KEYmc alias set myminio http://localhost:9000 minioadmin minioadminmc admin user
add command, as
shown:mc admin user add ALIAS USERNAME PASSWORDmc admin user add myminio test qwerty78mc admin user
add command with the UID and GID, as
shown:mc admin user add ALIAS/ USERNAME PASSWORD UID GIDmc admin user add myminio test qwerty78 1000 1000For more information, see MinIO Admin Complete Guide.
After you configure the client, you can perform bucket and object operations in S3 through Java, Python, Hadoop, and Spark.
This section provides examples with built-in users. In the examples, the default admin
user, minioadmin, is used.
-Dfs.s3a.access.key=ACCESS_KEY -Dfs.s3a.secret.key=PASSWORD -Dfs.s3a.endpoint=http(s)://HOST:PORT -Dfs.s3a.path.style.access=true -Dfs.s3a.impl=org.apache.hadoop.fs.s3a.S3AFileSystem--conf spark.hadoop.fs.s3a.access.key=ACCESS_KEY --conf spark.hadoop.fs.s3a.secret.key=PASSWORD --conf spark.hadoop.fs.s3a.endpoint=http(s)://HOST:PORT --conf spark.hadoop.fs.s3a.path.style.access=true --conf spark.hadoop.fs.s3a.impl=org.apache.hadoop.fs.s3a.S3AFileSystem