EMR Serverless

Run big data applications with open-source frameworks without managing clusters and servers

Amazon EMR Serverless is a serverless option in Amazon EMR that makes it easy for data analysts and engineers to run open-source big data analytics frameworks without configuring, managing, and scaling clusters or servers. You get all the features and benefits of Amazon EMR without needing experts to plan and manage clusters.

In this procedure, we create an EMR studio, create and clone a Spark application, then create and clone a Spark job to run the application with EMR Serverless.

DuploCloud EMR Serverless supports Hive, Spark, and custom ECR images.

Creating an EMR Studio

To create EMR Serverless applications you first need to create an EMR studio.

  1. In the DuploCloud Portal, navigate to Cloud Services -> Analytics.

  2. Click the EMR Serverless tab.

  3. Click EMR Studio.

  4. Enter a Description of the Studio for reference.

  5. Select an S3 Bucket that you previously defined from the Logs Default S3 Bucket list box.

  6. Optionally, in the Logs Default S3 Folder field, specify the path to which logs are written.

  7. Click Create. The EMR Studio is created and displayed.

  8. Select the EMR Studio name in the Name column. The EMR Studio page displays. View the Details of the EMR Serverless Studio.

Now that the EMR Studio exists, you create an application to run analytics with it. The DuploCloud Portal supports Hive and Spark applications. In this example, we create a Spark Application.

Creating an EMR Serverless application

  1. In the EMR Serverless tab, click Add. A configuration wizard launches with five steps for you to complete.

  2. Enter the EMR Serverless Application Name (app1, in this example) and the EMR Release Label in the Basics step. DuploCloud prepends the string DUPLOSERVICES-TENANT_NAME to your chosen application name, where TENANT_NAME is your Tenant's name. Click Next.

  3. Accept the defaults for the Capacity, Limits, and Configure pages by clicking Next on each page until you reach the Confirm page.

  4. On the Confirm page, click Submit. Your created application instance (DUPLOSERVICES-DEFAULT-APP1, in this example) is displayed in the EMR Serverless tab with the State of CREATED.

Before you begin to create a job to run the application, clone an instance of it to run.

Cloning an application

  1. Make any desired changes while advancing through the Basics, Capacity, Limits, and Configure steps, clicking Next to advance the wizard to the next page. DuploCloud gives your cloned app a unique generated name by default (app1-c-833, in this example).

  2. On the Confirm page, click Submit. In the EMR Serverless tab, you should now have two application instances in the CREATED State: your original application instance (DUPLOSERVICES-DEFAULT-APP1) and the cloned application instance (DUPLOSERVICES-DEFAULT-APP1-C-833).

Creating a job

You have created and cloned the Spark application. Now you must create and clone a job to run it in EMR Serverless. In this example, we create a Spark job.

  1. Select the application instance that you previously cloned. This instance (DUPLOSERVICES-DEFAULT-APP1-C-833, in this example) has a STATE of CREATED.

  2. Click Add. The configuration wizard launches.

  3. In the Basics step, enter the EMR Serverless RunJob Name (jobfromcloneapp, in this example).

  4. Click Next.

  5. In the Job details step, select a previously-defined Spark Script S3 Bucket.

  6. In the Spark Script S3 Bucket File field, enter a path to define where your scripts are stored.

  7. Optionally, in the Spark Scripts field, you can specify an array of arguments passed to your JAR or Python script. Each argument in the array must be separated by a comma (,). In the example below, a single argument of "40000" is entered.

  8. Optionally, in the Spark Submit Parameters field, you can specify Spark --conf parameters. See the example below.

  9. Click Next.

  10. Make any desired changes in the Configure step and click Next to advance the wizard to the Confirm page.

  11. On the Confirm page, click Submit. In the Run Jobs tab for your cloned application, your job JOBFROMCLONEAPP displays.

Monitoring running jobs

Observe the status of your jobs and makes changes, if needed. In this example, we monitor the Spark jobs created and cloned in this procedure.

  1. In the DuploCloud Portal, navigate to Cloud Services -> Analytics.

  2. Click the EMR Serverless tab.

  3. Select the application instance that you want to monitor. The Run Jobs tab displays run jobs connected to the application instance and each job's STATE.

  4. Using the Actions menu, you can view the Console, Start, Stop, Edit, Clone or Delete jobs. You can also click the Details tab to view configuration details.

Last updated


© DuploCloud, Inc. All rights reserved. DuploCloud trademarks used herein are registered trademarks of DuploCloud and affiliates