All Products
Search
Document Center

E-MapReduce:Develop a notebook

Last Updated:Oct 31, 2024

This topic describes how to develop a notebook.

Prerequisites

A workspace and a notebook session are created. For more information, see Create a workspace and Manage notebook sessions.

Create a notebook

  1. Go to the Data 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, find the desired workspace and click the name of the workspace.

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

  2. Create a notebook.

    1. On the Development tab, click Create.

    2. In the Create dialog box, configure the Name parameter, choose 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 configuration tab of the notebook, select a notebook session that you created and started from the Notebook Sessions drop-down list.

    You can also click Create Notebook Session from the Notebook Sessions drop-down list to create a notebook session.

    Note

    A notebook session can be used only by a single notebook at a time. If no notebook session is available, you can detach a notebook from a notebook session in the notebook session drop-down list to make the notebook session available. You can also create a notebook session.

  2. Enter Python statements in the cell.

  3. Click Run 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 configuration tab of the job, click Publish.

  2. In the Publish dialog box, configure the Remarks parameter and click OK.