Aliyun OSS
Last updated
Last updated
This guide describes how to configure as Alluxio's under storage system.
Aliyun Object Storage Service (OSS) is a massive, secure and highly reliable cloud storage service provided by Alibaba Cloud. OSS provides multiple storage classes to help you manage and reduce storage costs.
For more information about Aliyun OSS, please read its
If you haven't already, please see before you get started.
In preparation for using OSS with Alluxio:
<OSS_BUCKET>
<OSS_DIRECTORY>
The directory you want to use in the bucket, either by creating a new directory or using an existing one
<OSS_ACCESS_KEY_ID>
<OSS_ACCESS_KEY_SECRET>
<OSS_ENDPOINT>
To use Aliyun OSS as the UFS of Alluxio root mount point, you need to configure Alluxio to use under storage systems by modifying conf/alluxio-site.properties
. If it does not exist, create the configuration file from the template.
Specify an OSS bucket and directory as the underfs address by modifying conf/alluxio-site.properties
.
For example, the under storage address can be oss://alluxio-bucket/
if you want to mount the whole bucket to Alluxio, or oss://alluxio-bucket/alluxio/data
if only the directory /alluxio/data
inside the oss bucket alluxio-bucket
is mapped to Alluxio.
Specify credentials for Aliyun OSS access by adding the following properties in conf/alluxio-site.properties
:
The default upload method uploads one file completely from start to end in one go. We use multipart-upload method to upload one file by multiple parts, every part will be uploaded in one thread. It won't generate any temporary files while uploading.
To enable OSS multipart upload, you need to modify conf/alluxio-site.properties
to include:
There are other parameters you can specify in conf/alluxio-site.properties
to make the process faster and better.
or use an existing bucket
ID used to identify a user. See
Secret used to verify the identity of the user. See
Endpoints are the domain names that other services can use to access OSS. See