Store JAR files and custom scripts in the resource center so that your Workflow tasks can reference them at runtime. You can create a file directly in the console or upload one from your local machine.
Limits
| Resource | Limit |
|---|---|
| Total storage per account | 5 GB |
| Single file upload size | 500 MB |
| Supported file formats (create) | txt, log, sh, bat, conf, cfg, py, java, sql, xml, hql, properties, json, yml, yaml, ini, js |
Prerequisites
Before you begin, make sure that you have:
-
An Alibaba Cloud account or a RAM user with access to the EMR console
-
A workspace in EMR Workbench
Go to the File Manage page
Both the create and upload procedures start from the File Manage page. Follow these steps to get there.
-
Log on to the EMR console.
-
In the left-side navigation pane, choose EMR Workbench > Workflow.
-
Find the target workspace and click Console in the Actions column.
-
Click the Resources tab.
Create a file
Create a file directly in the console when you want to write script content inline.
-
On the File Manage page, click Create File.
-
On the File Details page, configure the following parameters:
Parameter Description File Name Enter a name for the file. File Format Select a format from the drop-down list. Supported formats: txt, log, sh, bat, conf, cfg, py, java, sql, xml, hql, properties, json, yml, yaml, ini, js. File Content Enter the file content. -
Click Save.
Upload a file
Upload a pre-built JAR file or script from your local machine.
Uploading a file with the same name as an existing file overwrites the original file.
-
On the File Manage page, click Upload Files.
-
In the Upload Files dialog box, click Upload Files and select a file from your local machine. The file name is automatically used as the value of File Name.
-
Click Confirm.
What's next
After you create or upload a file, reference it in a Workflow task to use it at runtime. For details, see the task configuration documentation for your task type.