All Products
Search
Document Center

E-MapReduce:Develop a notebook

Last Updated:Jul 19, 2024

This topic describes how to develop a notebook and the configuration items of a notebook.

Prerequisites

A workspace and a notebook compute are created. For more information, see Create a workspace and Manage notebook computes.

Create a notebook

  1. Go to the Development page

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

    2. In the left-side navigation pane, choose EMR Serverless > Spark.

    3. On the Spark page, click the name of the workspace that you want to manage.

    4. In the left-side navigation pane of the EMR Serverless Spark page, click Development.

  2. Create a notebook.

    1. On the Development tab, click New.

    2. In the New dialog box, specify a name in the Name field, select Python > Notebook from the Type drop-down list, and then click OK.

Edit and run the notebook

  1. In the upper-right corner of the Development page, select the notebook compute that you created and started.

    You can also select Create Notebook Compute from the Notebook Compute drop-down list to create a notebook compute.

    Note

    Notebook computes can be used only by a single notebook at a time. If no notebook compute is available, you can detach the notebook from a notebook compute in the Notebook Compute drop-down list or create a notebook compute.

  2. Enter Python statements in the new notebook.

  3. Click Execute All Cells or the image icon in front of the cell to run the notebook.

Publish the notebook

  1. Confirm that the job runs as expected. Then, in the upper-right corner of the page, click Publish.

  2. In the Publish dialog box, you can enter remarks in the Remarks field. Then, click OK.