Using DataArts Studio to Connect to an AuraJob Endpoint and Submit Jobs
DataArts Studio allows you to visually orchestrate ETL data flows and connect to AuraJob endpoints to execute data processing tasks. This is ideal for data development scenarios that require scheduled execution, dependency management, and multi-source data integration.
The creation of AI DataLake data development jobs in DataArts Studio is currently under restricted use. To use this feature, submit a service ticket.
Prerequisites
- An AuraJob endpoint has been created and is in the Running state. For details, see Creating an Aura Engine Endpoint.
- You have purchased a DataArts Studio instance and created a workspace. For details, see Buying and Configuring a DataArts Studio Instance.
Procedure
- Log in to the AI DataLake console.
- Near the bottom of the navigation pane, click DataArts Studio to open the DataArts Studio job development page.
- 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.
Table 1 Parameter description Parameter
Description
Parameter
Enter a custom parameter name, for example, SK.
Value
Enter the obtained user SK.
Configuration Type
Select Encryption.
- In the left navigation pane, choose Data Development > Develop Job. In the job directory list, right-click a directory and select Create Job.
- In the Create Job dialog box, configure the job parameters described in Table 2.
Table 2 job parameters Parameter
Description
Job Name
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
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
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
The directory to which the job belongs. The default value is the root directory.
Owner
The owner of the job.
Priority
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
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
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
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.
- 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.
- Click OK.
- Go to the job development page.
- Single-task Shell job: In the job directory, double-click the newly created job to open the job development page.
- Pipeline job: From the Compute & Analytics area, drag Shell onto the canvas on the right. The job development page appears.
- In the right pane of the job page, configure job parameters.
- Single-task Shell job: Click the Basic Info tab to configure basic information, job properties, and advanced settings.
- Pipeline job: Click the Basic Info tab to configure basic job information. Double-click the Shell icon in the canvas, and then configure Shell properties and advanced settings in the Shell panel.
Table 3 lists the basic information, Table 4 lists the properties, and Table 5 lists the advanced settings.Table 3 Basic job information Parameter
Description
Owner
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
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
The priority configured during job creation is automatically selected. It can be changed.
Execution Timeout
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
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 4 Properties Property
Mandatory
Description
Node Name
Yes
Name of the Shell node. This parameter applies only to pipeline jobs.
The node name must contain 1 to 128 characters, including only letters, digits, and the following special characters: _-/.<>
By default, the node name matches the job name.
Shell or Script
Yes
Job execution mode. This parameter applies only to pipeline jobs. The options are as follows:
- Shell statement: Enter the shell command in the Shell statement text box.
- Shell script: Add the prepared script to the Shell script box, or click
to create a new script.
Environment
Yes
Select AIDataLake (AuraJob).
Image
Yes
Select the image name and version.
Endpoint
Yes
Name of the Aura endpoint for running jobs. Click
to open the endpoint list page, and then select the newly created endpoint.Task Priority
No
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
No
Configuration details for job resources, including the resource type, specifications, request value, and limit value.
Container Environment Variables
No
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.
NOTE:If you want to use sensitive parameters and encrypt them in AI DataLake, you need to enter specific parameters. Otherwise, the parameters will not be encrypted in AI DataLake. The specific parameters include pwd, passwd, password, token, sk, truststore, secretkey, access_key, and ak, which are case insensitive.
Table 5 Advanced settings Parameter
Mandatory
Description
Node Status Polling Interval (s)
Yes
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
Yes
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
Yes
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
Yes
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.
- To run a single-task Shell job, enter the following command in the editor on the job development page: For example:
python3 data_processor.py
- 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.
- A version is automatically generated and displayed on the Versions tab. The version can be rolled back. If you save a job multiple times within a minute, only one version is recorded. If the intermediate data is important, you can click Save New Version to save and add a version.
Related Operations
For details about how to use DataArts Studio to connect to an AuraJob endpoint and submit jobs, see Multimodal Data Processing Using User-Defined Images.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot