Before you enable the OSS-HDFS service, understand its interactions with other OSS features to prevent operational issues and data loss.
-
After you enable the OSS-HDFS service for a bucket, the service's data is stored in the bucket's
.dlsdata/directory. Do not perform write operations, such as renaming or deleting, on this directory and its objects using non-OSS-HDFS methods. This can cause service disruptions or data loss. -
If your account has an overdue payment or if the dependent RAM role
AliyunOSSDlsDefaultRoleis deleted, the HDFS background service may enter safe mode. In safe mode, all background tasks, such as audit logging, asynchronous deletion, and automatic storage tiering, are paused. The service automatically resumes after the issue is resolved.
The following table describes the risks and considerations for operations on the.dlsdata/ directory after you enable the OSS-HDFS service.
|
Feature |
Risk |
Description |
References |
|
Retention policy |
Data cannot be deleted |
Do not enable the OSS-HDFS service and configure a retention policy on the same bucket. Otherwise, when you delete data from the |
|
|
Lifecycle rule |
Data loss |
When you create or update a lifecycle rule for a bucket with OSS-HDFS enabled, you must use the In the Create lifecycle rule panel, set Policy to Match by Prefix, enable the NOT switch, and enter If you need to manage the lifecycle of data stored in OSS-HDFS after enabling the service, use its built-in automatic storage tiering feature. |
|
|
Versioning |
Automatic data deletion failures and service instability |
Do not enable the OSS-HDFS service and versioning on the same bucket. This can lead to service instability. To ensure stable operation, suspend versioning as soon as possible and configure a lifecycle rule to clean up delete markers. |
|
|
Delete directories |
Data loss |
To prevent service disruption or data loss, do not delete the |
|
|
Delete objects |
Data loss |
To prevent service disruption or data loss, do not delete any object within the |
|
|
Rename objects |
Data loss |
To prevent service disruption or data loss, do not rename any object within the |
|
|
Upload objects |
Data loss |
To prevent service disruption or data loss, do not upload objects to the |
|
|
Modify the storage class of objects |
Data access failures and billing changes |
Avoid modifying the storage class of objects in the
Proceed with caution to avoid impacting data access or incurring extra costs. |
|
|
Bucket policy |
Data access failures, automatic deletion failures, and continuous billing |
To ensure that OSS-HDFS users can access the.dlsdata/ directory and its objects, do not create a bucket policy with a deny action after enabling the OSS-HDFS service. Otherwise, the OSS-HDFS service cannot read from or write to the bucket. If you must configure a deny policy that restricts access to specific IP addresses or VPCs for security reasons, you must add the following condition to all
|
|
|
RAM |
Data access failures, automatic deletion failures, and continuous billing |
When you enable the OSS-HDFS service for a bucket, the |
|
|
Bucket inventory |
Data contamination |
To prevent service disruption or data contamination when configuring inventory reports for a bucket with OSS-HDFS enabled, do not set the Inventory Path to |
|
|
Log shipping |
Data contamination |
To prevent service disruption or data contamination when configuring log shipping for a bucket with OSS-HDFS enabled, do not set the Log Prefix to |
|
|
ZIP package decompression |
Data contamination and data loss |
To prevent service disruption, data contamination, or data loss when configuring rules for ZIP package decompression on a bucket with OSS-HDFS enabled, do not set the Destination Directory to |
The OSS-HDFS service stores HDFS data and metadata in an OSS bucket. This data is stored under the .dlsdata/ path in the bucket and incurs standard OSS storage charges. For more information, see Storage capacity usage.