This topic describes how to create an E-MapReduce function.
Prerequisites
- An E-MapReduce cluster is bound to the workspace where you want to create an E-MapReduce function. The E-MapReduce service is available in a workspace only after you bind an E-MapReduce cluster to the workspace on the Workspace Management page. For more information, see Configure a workspace.
- Required resources are uploaded.
Procedure
- Go to the DataStudio page.
- Log on to the DataWorks console.
- In the left-side navigation pane, click Workspaces.
- In the top navigation bar, select the region where your workspace resides, find the workspace, and then click Data Analytics in the Actions column.
- Create a workflow. For more information, see Create a workflow.
- Write Java code in an offline Java environment, compress the code to a JAR package, and then upload the package as a JAR resource to DataWorks. For more information, see Create an EMR JAR resource.
- Create a function.
- Click the
icon in the toolbar.
- Commit the function.
- Click the
icon in the toolbar.
- In the Commit Node dialog box, enter your comments in the Change description field.
- Click OK.
- Click the