Bu sayfa henüz yerel dilinizde mevcut değildir. Daha fazla dil seçeneği eklemek için yoğun bir şekilde çalışıyoruz. Desteğiniz için teşekkür ederiz.
- What's New
- Service Overview
-
User Guide
- Preparations
- IAM Permissions Management
- Data Management
- Data Integration
- Data Development
- Solution
- O&M and Scheduling
- Configuration and Management
- Specifications
- Usage Tutorials
-
References
-
Nodes
- Node Overview
- CDM Job
- DIS Stream
- DIS Dump
- DIS Client
- Rest Client
- Import GES
- MRS Kafka
- Kafka Client
- CS Job
- DLI SQL
- DLI Spark
- DWS SQL
- MRS SparkSQL
- MRS Hive SQL
- MRS Presto SQL
- MRS Spark
- MRS Spark Python
- MRS Flink Job
- MRS MapReduce
- CSS
- Shell
- RDS SQL
- ETL Job
- OCR
- Create OBS
- Delete OBS
- OBS Manager
- Open/Close Resource
- Data Quality Monitor
- Subjob
- SMN
- Dummy
- For Each
- EL
-
Nodes
- Change History
- API Reference
-
FAQs
- What Is DLF?
- What Is DLF Used For?
- What Is a Job?
- How Many Jobs Can Be Created in DLF?
- Can I Adjust the Job Quota in DLF?
- Does DLF Provide Job Templates?
- What Is a Node?
- Is There a Limit on the Number of Nodes Contained in a DLF Job?
- How Can I Quickly Rectify a Deleted CDM Cluster Associated with a Job?
- What Causes a Large Difference Between the Plan Time and Start Time of a Job?
- How Do I Change the Message Language?
- What Can I Do When a Job Fails?
- Glossary
- General Reference
Copied.
Creating a Script
DLF allows you to edit, debug, and run scripts online. You must add a script before developing it.
(Optional) Creating a Directory
If a directory exists, you do not need to create one.
- Log in to the DLF console.
- In the navigation tree of the Data Development console, choose Data Development > Develop Script.
- In the directory list, right-click a directory and choose Create Directory from the shortcut menu.
- In the displayed dialog box, configure directory parameters. Table 1 describes the directory parameters.
Table 1 Script directory parameters Parameter
Description
Directory Name
Name of the script directory. Must consist of 1 to 32 characters and contain only letters, digits, underscores (_), and hyphens (-).
Select Directory
Parent directory of the script directory. The parent directory is the root directory by default.
- Click OK.
Creating a Script
Currently, you can create the following types of scripts in DLF:
- DLI SQL
- Hive SQL
- DWS SQL
- Spark SQL
- Flink SQL
- RDS SQL
- PRESTO SQL script, which is supported only in the AP-Singapore region. After you use the PRESTO SQL script to run the select query statement, the query result is automatically dumped to the s3a://dlf-log-{project_id}/temp directory of the OBS bucket.
- Shell
Prerequisites
The quantity of scripts is less than the maximum quota (1,000).
Procedure
- In the navigation tree of the Data Development console, choose Data Development > Develop Script.
- Create a script using either of the following methods:
Method 1: In the area on the right, click Create SQL Script/Create Shell Script.
Figure 1 Creating an SQL script (method 1)Figure 2 Creating a shell script (method 1)Method 2: In the directory list, right-click a directory and choose Create Script from the shortcut menu.
Figure 3 Creating a script (method 2) - Go to the script development page. For details, see Developing an SQL Script and Developing a Shell Script.
Feedback
Was this page helpful?
Provide feedbackThank 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