El contenido no se encuentra disponible en el idioma seleccionado. Estamos trabajando continuamente para agregar más idiomas. Gracias por su apoyo.

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Using Encrypted OBS Data for Job Running

Updated on 2022-08-12 GMT+08:00

In encrypted data in OBS file systems can be used to run jobs, and the encrypted job running results can be stored in OBS file systems. Currently, data can be accessed only through an OBS protocol.

OBS supports data encryption and decryption using KMS keys. All encryption and decryption operations are performed on OBS, and keys are managed by DEW.

To use the OBS encryption function in MRS, you must have the KMS Administrator permissions and configure the following settings for the corresponding component:

NOTE:

If the OBS permission control function is enabled in a cluster, the default agency MRS_ECS_DEFAULT_AGENCY configured on the ECS or the AK/SK of the custom agency is used for accessing OBS. OBS uses the received AK/SK to access DEW to obtain the KMS key status. Therefore, you need to bind the KMS Administrator policy to the used agency. Otherwise, OBS returns the "403 Forbidden" error when processing encrypted data. Currently, the KMS Administrator policy is bound to the agency MRS_ECS_DEFAULT_AGENCY by default. If you use a custom agency, you need to manually bind the policy to your custom agency.

Prerequisites

You have configured the function of accessing OBS from MRS first to use the OBS encryption function. For details, see Configuring a Storage-Compute Decoupled Cluster (Agency).

Hive Configuration

  1. Log in to the MRS management console. In the navigation tree on the left, choose Clusters > Active Clusters and click the cluster name.
  2. Choose Components > Hive > Service Configuration.
  3. Switch Basic to All, and search for and set the following parameters:

    Table 1 Data encryption parameters

    Parameter

    Value

    Description

    fs.obs.server-side-encryption-type

    SSE-KMS

    • SSE-KMS: KMS keys are used for encryption and decryption
    • NONE: The encryption function is disabled.

    fs.obs.server-side-encryption-key

    -

    (Optional) This parameter indicates an ID of the KMS key used for encryption.

    If fs.obs.server-side-encryption-type is set to SSE-KMS and this parameter is not set, OBS uses the default KMS key for encryption.

    fs.obs.connection.ssl.enabled

    true

    Whether to establish a secure connection with OBS.

    • true: The secure connection is enabled. To use OBS encryption and decryption, this parameter must be set to true.
    • false: The secure connection is disabled.

  4. Click Save Configuration and select Restart the affected services or instances. Click OK.

Hadoop Configuration

Method 1: Configuration on the GUI

  1. Log in to the MRS management console. In the navigation tree on the left, choose Clusters > Active Clusters and click the cluster name.
  2. Choose Components > HDFS > Service Configuration.
  3. Switch Basic to All, and search for and set the following parameters:

    Table 2 Data encryption parameters

    Parameter

    Value

    Description

    fs.obs.server-side-encryption-type

    SSE-KMS

    • SSE-KMS: KMS keys are used for encryption and decryption
    • NONE: The encryption function is disabled.

    fs.obs.server-side-encryption-key

    -

    ID of the KMS key used for encryption. This parameter is optional.

    If fs.obs.server-side-encryption-type is set to SSE-KMS and this parameter is not set, OBS uses the default KMS key for encryption.

    fs.obs.connection.ssl.enabled

    true

    Whether to establish a secure connection with OBS.

    • true: The secure connection is enabled. To use OBS encryption and decryption, this parameter must be set to true.
    • false: The secure connection is disabled.

  4. Click Save Configuration and select Restart the affected services or instances. Click OK.
  5. Log in to the Master node as user root. The password is the password of user root you set when you create the cluster. If the cluster has multiple Master nodes, log in to each Master node and repeat 5 to 7.
  6. Run the following command to switch to the client directory, for example, /opt/Bigdata/client:

    cd /opt/Bigdata/client

  7. Run the following command to update client configurations, and enter the username and password. The username is admin, and the password is the password of user admin you set when you create the cluster.

    ./ autoRefreshConfig.sh

Method 2: Configuration Through the Client Configuration File

Add the following parameter settings to the client configuration file, for example, /opt/Bigdata/client/HDFS/hadoop/etc/hadoop/core-site.xml, on the Master node. If the cluster has multiple Master nodes, log in to each Master node and perform this operation.

Table 3 Data encryption parameters

Parameter

Value

Description

fs.obs.server-side-encryption-type

SSE-KMS

  • SSE-KMS: KMS keys are used for encryption and decryption
  • NONE: The encryption function is disabled.

fs.obs.server-side-encryption-key

-

ID of the KMS key used for encryption. This parameter is optional.

If fs.obs.server-side-encryption-type is set to SSE-KMS and this parameter is not set, OBS uses the default KMS key for encryption.

fs.obs.connection.ssl.enabled

true

Whether to establish a secure connection with OBS.

  • true: The secure connection is enabled. To use OBS encryption and decryption, this parameter must be set to true.
  • false: The secure connection is disabled.

HBase Configuration

Method 1: Configuration on the GUI

  1. Log in to the MRS management console. In the navigation tree on the left, choose Clusters > Active Clusters and click the cluster name.
  2. Choose Components > HBase > Service Configuration.
  3. Switch Basic to All, and search for and set the following parameters:

    Table 4 Data encryption parameters

    Parameter

    Value

    Description

    fs.obs.server-side-encryption-type

    SSE-KMS

    • SSE-KMS: KMS keys are used for encryption and decryption
    • NONE: The encryption function is disabled.

    fs.obs.server-side-encryption-key

    -

    ID of the KMS key used for encryption. This parameter is optional.

    If fs.obs.server-side-encryption-type is set to SSE-KMS and this parameter is not set, OBS uses the default KMS key for encryption.

    fs.obs.connection.ssl.enabled

    true

    Whether to establish a secure connection with OBS.

    • true: The secure connection is enabled. To use OBS encryption and decryption, this parameter must be set to true.
    • false: The secure connection is disabled.

  4. Click Save Configuration and select Restart the affected services or instances. Click OK.
  5. Log in to the Master node as user root. The password is the password of user root you set when you create the cluster. If the cluster has multiple Master nodes, log in to each Master node and repeat 5 to 7.
  6. Run the following command to switch to the client directory, for example, /opt/Bigdata/client:

    cd /opt/Bigdata/client

  7. Run the following command to update client configurations, and enter the username and password. The username is admin, and the password is the password of user admin you set when you create the cluster.

    ./ autoRefreshConfig.sh

Method 2: Configuration Through the Client Configuration File

Add the following parameter settings to the client configuration file, for example, /opt/Bigdata/client/HBase/hbase/conf/core-site.xml, on the Master node. If the cluster has multiple Master nodes, log in to each Master node and perform this operation.

Table 5 Data encryption parameters

Parameter

Value

Description

fs.obs.server-side-encryption-type

SSE-KMS

  • SSE-KMS: KMS keys are used for encryption and decryption
  • NONE: The encryption function is disabled.

fs.obs.server-side-encryption-key

-

ID of the KMS key used for encryption. This parameter is optional.

If fs.obs.server-side-encryption-type is set to SSE-KMS and this parameter is not set, OBS uses the default KMS key for encryption.

fs.obs.connection.ssl.enabled

true

Whether to establish a secure connection with OBS.

  • true: The secure connection is enabled. To use OBS encryption and decryption, this parameter must be set to true.
  • false: The secure connection is disabled.

Spark Configuration

Method 1: Configuration on the GUI

  1. Log in to the MRS management console. In the navigation tree on the left, choose Clusters > Active Clusters and click the cluster name.
  2. Choose Components > Spark > Service Configuration.
  3. Switch Basic to All, and search for and set the following parameters:

    Table 6 Data encryption parameters

    Parameter

    Value

    Description

    fs.obs.server-side-encryption-type

    SSE-KMS

    • SSE-KMS: KMS keys are used for encryption and decryption
    • NONE: The encryption function is disabled.

    fs.obs.server-side-encryption-key

    -

    ID of the KMS key used for encryption. This parameter is optional.

    If fs.obs.server-side-encryption-type is set to SSE-KMS and this parameter is not set, OBS uses the default KMS key for encryption.

    fs.obs.connection.ssl.enabled

    true

    Whether to establish a secure connection with OBS.

    • true: The secure connection is enabled. To use OBS encryption and decryption, this parameter must be set to true.
    • false: The secure connection is disabled.

  4. Click Save Configuration and select Restart the affected services or instances. Click OK.
  5. Log in to the Master node as user root. The password is the password of user root you set when you create the cluster. If the cluster has multiple Master nodes, log in to each Master node and repeat 5 to 7.
  6. Run the following command to switch to the client directory, for example, /opt/Bigdata/client:

    cd /opt/Bigdata/client

  7. Run the following command to update client configurations, and enter the username and password. The username is admin, and the password is the password of user admin you set when you create the cluster.

    ./autoRefreshConfig.sh

Method 2: Configuration Through the Client Configuration File

Add the following parameter settings to the client configuration file, for example, /opt/Bigdata/client/Spark/spark/conf/core-site.xml, on the Master node. If the cluster has multiple Master nodes, log in to each Master node and perform this operation.

Table 7 Data encryption parameters

Parameter

Value

Description

fs.obs.server-side-encryption-type

SSE-KMS

  • SSE-KMS: KMS keys are used for encryption and decryption
  • NONE: The encryption function is disabled.

fs.obs.server-side-encryption-key

-

ID of the KMS key used for encryption. This parameter is optional.

If fs.obs.server-side-encryption-type is set to SSE-KMS and this parameter is not set, OBS uses the default KMS key for encryption.

fs.obs.connection.ssl.enabled

true

Whether to establish a secure connection with OBS.

  • true: The secure connection is enabled. To use OBS encryption and decryption, this parameter must be set to true.
  • false: The secure connection is disabled.

Presto Configuration

  1. Log in to the MRS management console. In the navigation tree on the left, choose Clusters > Active Clusters and click the cluster name.
  2. Choose Components > Presto > Service Configuration.
  3. Switch Basic to All, and search for and set the following parameters:

    Table 8 Data encryption parameters

    Parameter

    Value

    Description

    fs.obs.server-side-encryption-type

    SSE-KMS

    • SSE-KMS: KMS keys are used for encryption and decryption
    • NONE: The encryption function is disabled.

    fs.obs.server-side-encryption-key

    -

    ID of the KMS key used for encryption. This parameter is optional.

    If fs.obs.server-side-encryption-type is set to SSE-KMS and this parameter is not set, OBS uses the default KMS key for encryption.

    fs.obs.connection.ssl.enabled

    true

    Whether to establish a secure connection with OBS.

    • true: The secure connection is enabled. To use OBS encryption and decryption, this parameter must be set to true.
    • false: The secure connection is disabled.

  4. Click Save Configuration and select Restart the affected services or instances. Click OK.

Utilizamos cookies para mejorar nuestro sitio y tu experiencia. Al continuar navegando en nuestro sitio, tú aceptas nuestra política de cookies. Descubre más

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback