All Products
Search
Document Center

E-MapReduce:Resource management

Last Updated:Sep 22, 2023

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

  1. Go to the Resources tab.

    1. Log on to the E-MapReduce (EMR) console.

    2. In the left-side navigation pane, choose EMR Studio > Workflow.

    3. Click the Resources tab.

  2. On the File Manage page, click Create File.

  3. 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

  4. Enter information in the File Content field.

  5. Click Save.

    You can perform the following operations on the created file.

    Note

    If 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 image..png icon in the Operation column of the file that you want to edit.

    Rename a file

    Click the image..png icon in the Operation column of the file that you want to rename.

    Download a file

    Click the image..png icon in the Operation column of the file that you want to download.

    Delete a file

    Click the image..png icon in the Operation column of the file that you want to delete.

Create a folder

  1. On the File Manage page, click Create Folder.

  2. 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

Note
  • If you reupload an existing file, the original file is automatically overwritten.

  • You can upload a file of up to 100 MB.

  1. On the File Manage page, click Upload Files.

  2. 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.

  3. Click Confirm.