Help Center/ AI DataLake/ Getting Started/ Data Processing Using User-Defined Images
Updated on 2026-11-06 GMT+08:00

Data Processing Using User-Defined Images

Scenarios

AI DataLake is a fully managed lakehouse analytics service from Huawei Cloud. It provides end-to-end data management and analytics, supporting multi-engine job development to meet diverse big data needs.

This section demonstrates how to analyze data using AI DataLake and DataArts Studio by creating a compute resource pool, configuring an AuraJob endpoint, and submitting jobs in DataArts Studio.

The creation of AI DataLake data development jobs in DataArts Studio is currently under restricted use. To use this feature, submit a service ticket.

Procedure

Before you start, complete operations described in Preparations. Then, follow these steps:

  1. Planning and Creating an OBS Parallel File System: Create an OBS parallel file system to store LakeFormation catalogs and databases.
  2. Planning and Creating a LakeFormation Instance, Catalog, and Database: Create a LakeFormation instance, and then create a catalog and a database within it.
  3. Creating a Workspace: Create a workspace and associate it with a LakeFormation instance.
  4. Creating a Compute Resource Pool: Create a compute resource for running jobs.
  5. Creating an AuraJob Endpoint for Running Jobs: Create an AuraJob endpoint and associate it with a compute resource pool to obtain the resources required for executing jobs.
  6. Using DataArts Studio to Run Jobs: On the DataArts Studio job development page, submit a single-task Shell or Pipeline AI DataLake job to the AuraJob endpoint for execution. This section uses a single-task Shell job as an example.

Preparations

  • You have registered an account and completed real-name authentication. The account balance is sufficient, and the account is not frozen.
  • You have enabled AI DataLake and obtained the required permissions for the cloud resources.
  • You have enabled LakeFormation, obtained OBS permissions, and configured the required agency.
  • You have enabled DataArts Studio and created an instance and a workspace within the service.
  • You have built an image and uploaded it to SWR. When building the image, add a Python script for data processing (for example, data_processor.py). This script reads a CSV file from OBS, sums the values in each row, and writes the results to a new file back in OBS. The script content is as follows:
    #!/usr/bin/env python3
    # -*- coding: utf-8 -*-
    
    import csv
    import io
    from obs import ObsClient, PutObjectHeader
    import os
    
    
    class ObsCsvProcessor:
        def __init__(self, ak: str, sk: str, endpoint: str, bucket_name: str):
            """
            Initialize the OBS client.
    
            :param ak: Access Key ID
            :param sk: Secret Access Key
            :param endpoint: OBS endpoint
            :param bucket_name: Bucket name
            """
            self.obs_client = ObsClient(access_key_id=ak, secret_access_key=sk, server=endpoint)
            self.bucket_name = bucket_name
    
    
        def read_csv_from_obs(self, object_key: str) -> list:
            """
            Reads a CSV file from OBS.
    
            :param object_key: Object key, that is, the file path within OBS.
            :return: Two-dimensional list. Each row is itself a list.
            """
            resp = self.obs_client.getObject(bucketName=self.bucket_name, objectKey=object_key, loadStreamInMemory=True)
            if resp.status < 300:
                content = resp.body.buffer.decode('utf-8')
                # Use the CSV module for parsing.
                reader = csv.reader(io.StringIO(content))
                data = []
                for row in reader:
                    # Convert each row to the int data type.
                    int_row = [int(x) for x in row]
                    data.append(int_row)
                return data
            else:
                raise Exception(f"Failed to read the OBS file: {resp.errorCode}, {resp.errorMessage}")
    
    
        def write_csv_to_obs(self, object_key: str, data: list):
            """
            Writes data to a CSV file in OBS.
    
            :param object_key: Object key, that is, the file path within OBS.
            :param data: Two-dimensional list.
            """
            # Convert the data to CSV format.
            output = io.StringIO()
            writer = csv.writer(output)
            for row in data:
                writer.writerow(row)
            content = output.getvalue()
    
            # Upload to OBS.
            # 1. Define the headers and set the content type correctly
            headers = PutObjectHeader()
            headers.contentType = 'text/csv'
    
            # 2. Call the method with the correct argument names
            resp = self.obs_client.putContent(
                bucketName=self.bucket_name,
                objectKey=object_key,
                content=content,
                headers=headers  # Pass the header object here
    
            )
            if resp.status >= 300:
                raise Exception(f"Failed to write data to the OBS file: {resp.errorCode}, {resp.errorMessage}")
    
        def process_csv(self, input_key: str, output_key: str):
            """
            Process the CSV file and calculate the sum of each row.
    
            :param input_key: Input file object key
            :param output_key: Output file object key
            """
            # Read the CSV file.
            data = self.read_csv_from_obs(input_key)
            print(f"Read {len(data)} rows of data.")
    
            # Calculate the sum of each row.
            row_sums = []
            for row in data:
                row_sum = sum(row)
                row_sums.append(row_sum)
                print(f"The sum of row {row} is {row_sum}.")
    
            # Write the results to a new file (one sum per row).
            self.write_csv_to_obs(output_key, [[s] for s in row_sums])
            print(f"Successfully wrote results to {output_key}.")
    
    
    if __name__ == "__main__":
        # Configure parameters.
        AK = os.environ.get("AK")
        SK = os.environ.get("SK")
        ENDPOINT = os.environ.get("OBS_ENDPOINT", "obs.xxx.xxx.xxx.com")  # Select the option based on your actual region.
        BUCKET_NAME = os.environ.get("BUCKET_NAME")
    
        INPUT_FILE = os.environ.get("INPUT_FILE")      # Input file path input/data.csv
        OUTPUT_FILE = os.environ.get("OUTPUT_FILE")   # Output file path output/sum_result.csv
    
        # Create a processor and execute the task.
        processor = ObsCsvProcessor(AK, SK, ENDPOINT, BUCKET_NAME)
        processor.process_csv(INPUT_FILE, OUTPUT_FILE)
  • A data file has been prepared locally. For example, the file name is data.csv and its content is as follows:
    1,2,3
    4,5,6
    7,8,9
  • You have obtained the access key ID (AK) and secret access key (SK) of the user who submits the job.
    1. On the management console, hover over the username in the upper right corner and choose My Credentials from the drop-down list.
    2. Choose Access Keys, click Create Access Key, and enter the verification code or password. Click OK to generate an access key, and download it. Obtain the AK and SK of the user from the CSV file.

Step 1: Plan and Create an OBS Parallel File System

AI DataLake Aura uses OBS to store data. You must create a parallel file system and a folder on the OBS console, and then import sample data.

  1. Log in to the Huawei Cloud OBS console.
  2. Choose Parallel File Systems and click Create Parallel File System. On the displayed page, set the parameters, and click Create Now.
    • File System Name: Set the name of the parallel file system as required, for example, aura-job.
    • Configure other parameters based on your business requirements.
  3. On the Parallel File Systems page, click the name of the created parallel file system, for example, aura-job.
  4. In the left navigation pane, choose Overview, and then view and record the value of Endpoint.
  5. In the left navigation pane, choose Files. Click Create Folder, enter a folder name, and then click OK. You can enter a multi-level path (separate folder names with slashes (/)) to create nested folders all at once.
    Create folders in sequence for storing data files, result files, and LakeFormation metadata. For example:
    • Data files
      • Storage path for CSV data files: aura-job/input
      • Storage path for data processing results: aura-job/output
    • Metadata
      • Catalog storage path: aura-job/catalog1
      • Database storage path: aura-job/catalog1/database1
  6. Upload a local data file (for example, data.csv) to the input folder.

Step 2: Plan and Create a LakeFormation Instance, Catalog, and Database

AI DataLake Aura manages data sources using LakeFormation. You must purchase a LakeFormation instance and configure its catalog and database settings.

  1. Log in to the Huawei Cloud LakeFormation console.
  2. In the upper right corner of the Overview page, click Buy Instance, and configure the required parameters to purchase a LakeFormation instance.
  3. In the upper left corner, select the target instance from the drop-down list.
  4. Create a catalog.
    1. In the left navigation pane, choose Data Catalogs.
    2. Click Create. On the page that appears, set the following parameters, and click Submit.
      • Catalog Name: Enter a catalog name, for example, catalog1.
      • Select Location: Click , select a storage location (for example, obs://aura-job/catalog1), and then click OK.
      • Catalog Type: Select DEFAULT.
      • Retain the default settings for other parameters.
    3. After creating the catalog, verify its details on the Catalog page.
  5. Create a database.
    1. Click the name of the catalog where you want to create the database. On the Database tab, you can view the databases already contained in this catalog.

      If the database default already exists, skip the database creation.

    2. On the Database page, click Create and set related parameters.
      • Database Name: Enter a database name, for example, database1.
      • Catalog: Select catalog1.
      • Select Location: Click , select a location (for example, obs://aura-job/catalog1/database1), and click OK.
      • Retain the default settings for other parameters.
    3. Click Submit. After creating the database, verify its details on the Database page.

Step 3: Create a Workspace

  1. Log in to the AI DataLake console.
  2. In the left navigation pane, click the workspace area.
  3. Select Create Workspace from the drop-down list.
  4. Set the following workspace parameters.
    Table 1 Parameters for creating a workspace

    Category

    Parameter

    Example Value

    Description

    Basic Information

    Workspace Name

    workspace_auratest

    The name of the workspace.

    • The name can contain only letters, digits, hyphens (-), and underscores (_).
    • The name must be 4 to 32 characters long.

    The workspace name is case-insensitive. Uppercase letters are automatically converted to lowercase.

    Description

    Smart driving data analytics

    A brief description of the workspace.

    Enterprise Project

    default

    If the workspace you are creating belongs to an enterprise project, select that enterprise project.

    Enterprise Project Management Service (EPS) provides enterprise projects that group cloud resources by project to manage resources and users within specific projects.

    For details about how to configure enterprise projects, see Enterprise Management User Guide.

    NOTE:

    This parameter appears only for users with the EPS service enabled.

    Multimodal Data Management

    LakeFormation Instance

    lakeformation_for_auratest

    Select the LakeFormation instance associated with the current workspace. Specifically, select the instance created in Step 2: Plan and Create a LakeFormation Instance, Catalog, and Database.

    Each workspace must be associated with one LakeFormation instance. You cannot change this instance after the workspace is created.

  5. Confirm the settings and click Create Now to create the workspace.

    After the workspace is created, you can view it in the workspace management list.

Step 4: Create a Compute Resource Pool

  1. On the AI DataLake console, use the drop-down menu in the upper left corner to switch to the workspace created in Step 3: Create a Workspace.
  2. In the left navigation pane, choose Resource Management > Compute Resource Pools, and then click Buy in the upper right corner to open the purchase page.
  3. On the Buy Compute Resource Pool page, set the parameters.
    Table 2 Parameters for purchasing a compute resource pool

    Parameter

    Example Value

    Description

    Billing Mode

    Pay-per-use

    • Yearly/Monthly: A prepaid billing mode where you pay in advance for a specified duration. Resources are dedicated to your account during the subscription period and remain allocated even when no jobs are running (idle). This mode ensures optimal user experience and is more cost-effective than pay-per-use billing for long-term workloads.

      This cost-effective mode is ideal for predictable workloads, such as stable production environments that have completed development.

    • Pay-per-use: You are billed based on the actual runtime (billed by the second and settled hourly). Resources are dedicated to your account. You can use or release them at any time.

    Resource Pool Name

    resource-pool-for-auratest

    The name of the compute resource pool.

    • The name can contain only lowercase letters, digits, and hyphens (-), and must start with a letter and end with a letter or digit.
    • The name can contain a maximum of 63 characters.

    CPU Resources

    In this example, eight general-computing standard instances are configured.

    CPUs are general-purpose compute resources suitable for a variety of tasks.

    • CPU resources are versatile and suitable for various computing tasks. CPUs are more cost-effective than GPUs or NPUs and excel at processing sequential tasks.
    • CPU resources are suitable for ETL (extract, transform, and load) workflows, lightweight computing scenarios (such as small-scale data processing and script execution), and log analysis scenarios (such as log collection, parsing, and statistical analysis).
    • For details about CPU specifications, see Product Specifications.

    GPU Resources

    In this example, no GPU instances are purchased.

    GPUs (graphics processing units) are suitable for graphics rendering and large-scale parallel computing, and are ideal for deep learning training and scientific computing. GPUs have hundreds or thousands of computing cores and can process a large number of simple tasks simultaneously.

    • GPU resources support parallel computing and are suitable for batch processing jobs. Thousands of cores can execute tasks simultaneously, resulting in high processing efficiency. GPUs are ideal for deep learning, neural networks, and AI workloads.
    • GPU resources are suitable for deep learning (such as neural network training and model optimization), image processing (such as image recognition and object detection), video processing (such as video analysis, transcoding, and rendering), and other scientific computing workloads.
    • For details about GPU specifications, see Product Specifications.

    NPU Resources

    In this example, no NPU instances are purchased.

    NPUs are suitable for AI workloads. NPU resources use an optimized architecture and instruction set to accelerate AI inference tasks, delivering high energy efficiency.

    • NPU resources are dedicated to AI workloads and feature high performance, low latency, and low inference costs.
    • NPU resources are suitable for AI workloads, image recognition, and recommendation systems.
    • For details about NPU specifications, see Product Specifications.

    AI DataLake Network

    Configure as required.

    Select the network to which the AI DataLake resource pool belongs. The network is built on a Virtual Private Cloud (VPC). If no network is available, click Create Network to create one.

    Each workspace supports only one network.

  4. After configuring the parameters, click Buy Now and confirm the settings on the displayed page.
  5. Click Submit. Wait until the resource pool status changes to Available, indicating that the resource pool has been successfully created.

Step 5: Create an AuraJob Endpoint for Running Jobs

  1. On the AI DataLake console, use the drop-down menu in the upper left corner to switch to the workspace created in Step 3: Create a Workspace.
  2. In the left navigation pane, choose Engine Endpoints > Aura. The Aura engine endpoint list appears.
  3. Click Create Endpoint in the upper right corner of the page, configure the following parameters, and click Create Now.
    Table 3 Parameters for creating an Aura engine endpoint

    Parameter

    Example Value

    Description

    Endpoint Type

    AuraJob

    Set the endpoint type to AuraJob.

    AuraJob runs scheduled tasks to ensure stable processing of large-scale data.

    Endpoint Version

    v1.0

    Select the endpoint version, for example, v1.0.

    • v1.0: Supports custom image operators, unified scheduling across intelligent and general-purpose compute resource pools, and job-level scaling.
    • v2.0: Provides fine-grained, actor-level operator orchestration and scheduling, along with data processing pipeline execution, significantly enhancing performance and efficiency.

    Endpoint Name

    aura-endpoint-test001

    Enter an endpoint name. It is a unique endpoint identifier. This name cannot match an existing endpoint and cannot be changed after creation.

    • The name can contain only lowercase letters, digits, and hyphens (-), and must start with a letter and end with a letter or digit.
    • The name can contain a maximum of 63 characters.

    Endpoint Display Name

    Dedicated Aura endpoint-01 for the intelligent driving team

    Enter an endpoint display name. This name can be changed after creation and appears on the console to help users identify the endpoint.

    • The name can contain only letters, digits, and hyphens (-).
    • The name can contain a maximum of 63 characters.

    Resource Allocation

    Hybrid

    Select a resource allocation mode.

    • Reserved: Dedicated compute resources are reserved to ensure stable performance for your services and offer the best unit price. For more information, see Reserved Resources.
    • Hybrid: This mode combines reserved and elastic resources. Reserved resources are used first. If reserved resources are insufficient during peak hours, elastic resources are allocated. Reserved resources ensure stable baseline performance, while automatically scheduled elastic resources enable the system to handle sudden burst loads. For more information, see Hybrid Mode.

    Compute Resource Pool

    resource_pool_for_auratest

    Select the resource pool created in Step 4: Create a Compute Resource Pool from the drop-down list.

    Specifications

    • Resource Flavor: aidatalake.cpu.x86.general.1c4g
    • Quantity (Min–Max): 0-8

    Select a resource flavor and set the quantity.

    • Resource Flavor: Select a flavor from the drop-down list. CPU, GPU, and NPU resources are supported.
    • Quantity (Min–Max): Set the minimum and maximum resources that the resource pool allocates to this endpoint.
      • The default minimum value is 0 and cannot be changed.
      • The maximum value must be greater than 0 but cannot exceed the maximum capacity of the selected compute resource pool.

    Click Add Flavor to configure multiple flavors, or click Delete to remove one. You must keep at least one flavor configuration.

    Storage Settings

    Storage Settings selected

    Specify whether to enable storage configuration. If you enable this option, you must also configure the ephemeral storage resources and mount directory.

    When storage configuration is enabled, you can use the configured storage resources to store service data and share data between jobs. When it is disabled, you can only use the built-in disk of the Cloud Container Engine (CCE) container to store data, and data sharing between jobs is not supported.

    Ephemeral Storage

    test-aura-job

    Select the storage resource used to cache the Aura engine runtime program. You cannot change this storage resource after creating the endpoint.

    If no storage resource is available, click Buy ephemeral storage to purchase one.

    Mount Directory

    /home/service/works

    Configure the path for the mounted storage file in the pod where the AuraJob endpoint runs jobs.

    Ingest Logs to LTS

    Ingest Logs to LTS selected

    Specify whether to connect to Log Tank Service (LTS). Configure log ingestion to deliver logs to LTS for easier management. You can use LTS to search for cloud service logs by keyword, analyze operations data, and monitor statuses and alarms.

    If you enable this option, you must also configure the log group and log stream.

    Log Group

    container_aurajob_test

    Select a log group from the drop-down list. If no log group is available, you can click Create Log Group to create one.

    A log group is the basic unit for LTS to manage logs. It comprises log streams and categorizes them. A log group does not store any log data. It only helps with log stream management. You can create up to 100 log groups per account.

    Log Stream

    container_job_log

    Select a log stream from the drop-down list. If no log stream is available, you can click Create Log Stream to create one.

    LTS manages logs by log stream. Different types of collected logs are classified and stored in different log streams for easier management.

  4. Once the endpoint is created, you can view its details in the endpoint list. After the status changes to Running, you can submit jobs to the endpoint.

Step 6: Use DataArts Studio to Run Jobs

  1. On the AI DataLake console, click DataArts Studio at the bottom of the navigation pane to open the DataArts Studio job development page.
  2. In the left navigation pane, choose Configuration > Configure. Click Sensitive Parameters. On the page that appears, click Add, configure the parameters as described in the following table, and click OK.
    • Parameter: Enter a custom parameter name, for example, SK.
    • Value: Enter the obtained user SK.
    • Configuration Type: Select Encryption.
  3. In the left navigation pane, choose Data Development > Develop Job. In the job directory list, right-click a directory and select Create Job.
  4. In the Create Job dialog box, configure the job parameters described in Table 4.
    Table 4 Job parameters

    Parameter

    Example Value

    Description

    Job Name

    aidatalake_aura_job_test

    A custom job name. The name must be 1 to 128 characters long and can contain only letters, digits, hyphens (-), underscores (_), and periods (.).

    Job Type

    Batch processing

    The job type. Select Batch processing.

    Batch processing: Data is processed periodically in batches based on the scheduling plan. This type is suitable for scenarios with low real-time requirements. This type of job is a pipeline consisting of one or more nodes, scheduled as a whole. The job must complete within a defined period and cannot run indefinitely.

    You can configure job-level scheduling for a batch processing job so that the entire job is scheduled as a whole. For details, see Setting Up Scheduling for a Job Using the Batch Processing Mode.

    Mode

    Single-task (Shell)

    The job mode.

    • Pipeline: You can drag and drop one or more nodes onto the canvas to create a job. The nodes are executed in sequence, like a pipeline.
      NOTE:

      In enterprise mode, real-time processing jobs support only the single-task mode and do not support the pipeline mode.

    • Single task: In single-task mode, a batch processing job has only one node. The entire job is a script node. Unlike the traditional workflow of creating a script and referencing it as a job node, a single-task job allows you to directly debug the script in the SQL editor and configure its scheduling.

      If Mode is set to Single task, you must select SHELL.

    Select Directory

    /jobs/aura_job_test/

    The directory to which the job belongs. The default value is the root directory.

    Owner

    Retain the default value.

    The owner of the job.

    Priority

    High

    The priority of the job. The value can be High, Medium, or Low.

    NOTE:

    Job priority is a label attribute of the job and does not affect the scheduling and execution sequence of the job.

    Agency

    Retain the default value.

    After an agency is configured, the job interacts with other services as an agency during job execution.

    If an agency has been configured for the workspace (for details, see Configuring a Public Agency), new jobs use this workspace-level agency by default. You can also switch to a job-level agency by referring to Configuring a Job-Level Agency.

    NOTE:

    A job-level agency takes precedence over a workspace-level agency.

    Log Path

    Retain the default value.

    The path of the OBS bucket for storing job logs.

    NOTE:
    • If you want to change the log path, select a bucket that you have created on OBS by referring to (Optional) Changing the Job Log Storage Path.
    • Ensure that you have the read and write permissions for the OBS bucket specified by this parameter. Otherwise, the system cannot write or display logs.

    Enterprise Project

    default

    Select an enterprise project created by the current user from the drop-down list on the right.

    Job Description

    -

    A brief description of the job.

  5. Click OK.
  6. In the job directory, double-click the newly created job to open the job development page.
  7. On the right side of the job page, click Basic Info to configure basic information, properties, and advanced settings for the job.
    Table 5 lists the basic information, Table 6 lists the properties, and Table 7 lists the advanced settings.
    Table 5 Basic job information

    Parameter

    Example Value

    Description

    Owner

    Retain the default value.

    The owner configured during job creation is automatically selected. It can be changed.

    Executor

    -

    This parameter is available when Scheduling Identities is set to Yes. For details about setting Scheduling Identities, see Configuring a Scheduling Identity.

    The user who executes the job. If you specify an executor, the job runs on that executor. If the executor is left unspecified, the job runs as the user who submitted the job.

    Job Agency

    Retain the default value.

    This parameter is available when Scheduling Identities is set to Yes. For details about setting Scheduling Identities, see Configuring a Scheduling Identity.

    After an agency is configured, the job interacts with other services as an agency during job execution.

    Priority

    High

    The priority configured during job creation is automatically selected. It can be changed.

    Execution Timeout

    0

    Timeout of the job instance. If this parameter is set to 0 or is not set, this parameter does not take effect. If exception notifications are enabled for the job and the execution time of the job exceeds the timeout duration, the system sends a notification, and the job keeps running.

    Exclude Waiting Time from Instance Timeout Duration

    No

    Whether to exclude waiting time from the instance timeout duration.

    • If you select Yes, the time spent waiting in the queue is not included in the timeout duration.
    • If you select No, the time spent waiting in the queue is included in the timeout duration.

    Custom Parameter

    -

    Custom parameters, including parameter names and values

    Job Tag

    -

    Configure job tags to manage jobs by category.

    Click Add to add a tag to the job.

    Job Description

    -

    A brief description of the job.

    Table 6 Properties

    Property

    Example Value

    Description

    Environment

    AIDataLake (AuraJob)

    Select AIDataLake (AuraJob).

    Image

    Configure as required.

    Select the image name and version.

    You can prepare images and upload them to SWR by following the related SWR image operation guide.

    Endpoint

    aura-endpoint-test001

    The name of the AuraJob endpoint used to run jobs. Click to open the endpoint list page, and then select the newly created endpoint.

    Priority

    1

    Set the job priority.

    The priority level for scheduling the AuraJob job. Enter an integer from 0 to 9. A larger number indicates a higher priority. The default value is 0 (lowest priority).

    Resource Configuration

    Configure as required.

    Configuration details for job resources, including the resource type, specifications, request value, and limit value.

    Container Environment Variables

    Configure as required.

    Environment variable configuration for the container runtime. The environment variables of the container must support the input of workspace variables and constants.

    You can add a single variable or add variables in batches.

    When adding variables in batches, you can add a maximum of 100 variables in text mode.

    To run the example, add the following environment variables:

    • AK

      The key is AK, and the value is the obtained user access key.

    • SK

      The key is SK, and the value is @priv{SK}.

      SK in @priv{SK} is the name of the added sensitive parameter.

    • Parallel file system name

      The key is BUCKET_NAME, and the value is the name of the parallel file system where data files are stored (for example, aura-job).

    • OBS path where data files are stored

      The key is INPUT_FILE, and the value is the OBS path of the data files to be processed (for example, input/data.csv).

    • OBS path for storing data processing result files

      The key is OUTPUT_FILE, and the value is the OBS path for storing the data processing result files (for example, output/sum_result.csv).

    • Endpoint of the OBS parallel file system

      The key is OBS_ENDPOINT, and the value is the endpoint of the OBS parallel file system (the endpoint value obtained in Step 1: Plan and Create an OBS Parallel File System).

    Table 7 Advanced settings

    Parameter

    Example Value

    Description

    Node Status Polling Interval (s)

    20

    The frequency for checking whether node execution is complete. The value ranges from 1 to 60 seconds.

    During node execution, the system checks whether the execution is complete at the configured interval.

    Max. Node Execution Duration

    6 minutes

    The execution timeout interval for the node. If a retry is configured and execution does not complete within this interval, the node runs again.

    Retry upon Failure

    No

    Whether to re-run the node if it fails. The options are as follows:

    • Yes: The node will be re-run. You must configure the following parameters:
      • Retry upon Timeout
      • Maximum Retries
      • Retry Interval (seconds)
    • No: The node will not be re-run. This is the default setting.
    NOTE:
    • If retry is configured for a job node and the timeout duration is configured, the system allows you to retry a node when the node execution times out.
    • If a node is not re-run upon a timeout failure, change this policy on the Default Configuration page.
    • Retry upon Timeout is displayed only when Retry upon Failure is set to Yes.

    Policy for Handling Subsequent Nodes If the Current Node Fails

    End the current job execution plan

    The policy for handling subsequent nodes if the current node fails.

    • End the current job execution plan: The current job stops running, and its instance status changes to Failed. If the job is scheduled periodically, subsequent periodic scheduling will run properly.
    • Ignore the failure and set the job execution result to success: The system ignores the node failure, and the job instance status changes to Failure ignored. If the job is scheduled periodically, subsequent periodic scheduling will run properly.
  8. To run a single-task Shell job, enter a command in the editor on the job development page, for example:
    python3 data_processor.py
  9. Click Submit in the upper part of the canvas to submit the job, and then click to run the job.

    You can view the run logs of the job. Click View Log to go to the log viewing page and view the log details. Search for jobId in the log information to find the job ID.

    After the job is submitted, the system automatically generates and saves a version in the Versions area on the right. Version rollback is supported. If you save the job multiple times within one minute, only one version is recorded. If the intermediate data is important, you can click Save new version to save it manually.

  10. Return to the AI DataLake console, switch to the required workspace, and choose Engine Endpoints > Aura in the left navigation pane. Click the name of the AuraJob endpoint where the job is running, and click Job Run History to view the job running details by job ID.
  11. View the content of the data processing result file.
    1. Log in to the Huawei Cloud OBS console.
    2. Choose Parallel File Systems. On the page that appears, click the name of the file system where the result file is stored (for example, aura-job).
    3. Click the directory where the result file is stored (for example, output) to find the result file sum_result.csv, and then download it to your local directory to view its content. The following is an example of the file content:
      6
      15
      24