If you need to use a third-party JAR package or a custom script when you schedule a task, you can perform related operations on the File Manage page. This topic describes how to create a file and a folder and upload a file.
Create a file
Go to the Resources tab.
Log on to the E-MapReduce (EMR) console.
In the left-side navigation pane, choose EMR Studio > Workflow.
Click the Resources tab.
On the File Manage page, click Create File.
On the File Details page, configure the File Name parameter and select one of the following file formats from the File Format drop-down list:
txt, log, sh, bat, conf, cfg, py, java, sql, xml, hql, properties, json, yml, yaml, ini, and js
Enter information in the File Content field.
Click Save.
You can perform the following operations on the created file.
NoteIf a workflow is in the Online state, you cannot edit or reupload referenced files in the workflow. You must change the state of the workflow to Offline before you can perform the preceding operations. If you want to delete a file, delete all references to the file first.
Operation
Description
Edit a file
Click the icon in the Operation column of the file that you want to edit.
Rename a file
Click the icon in the Operation column of the file that you want to rename.
Download a file
Click the icon in the Operation column of the file that you want to download.
Delete a file
Click the icon in the Operation column of the file that you want to delete.
Create a folder
On the File Manage page, click Create Folder.
In the Create Folder dialog box, configure the Folder Name parameter and click Confirm.
You can rename or delete the created folder.
Upload a file
If you reupload an existing file, the original file is automatically overwritten.
You can upload a file of up to 100 MB.
On the File Manage page, click Upload Files.
In the Upload Files dialog box, click Upload Files and select a file from your on-premises machine. The name of the file is automatically used as the value of the File Name parameter.
Click Confirm.