Use this procedure to create and configure a Hive SQL job in EMR Data Platform. When you select the HiveSQL job type, EMR submits your SQL content using hive -e {SQL CONTENT}.
Prerequisites
Before you begin, make sure you have:
A project created in EMR Data Platform. See Manage projects
Create and configure a Hive SQL job
Log on to the Alibaba Cloud EMR console.
In the top navigation bar, select the region where your cluster resides and select a resource group.
Click the Data Platform tab.
In the Projects section, find your project and click Edit Job in the Actions column.
In the Edit Job pane, right-click a folder and select Create Job.
In the Create Job dialog box, enter a name and description, and select HiveSQL from the Job Type drop-down list.

Click OK.
In the Content field, enter your Hive SQL statements. For example:
-- SQL statement example -- The size of SQL statements cannot exceed 64 KB. show databases; show tables; -- LIMIT 2000 is automatically used for the SELECT statement. select * from test1;Statement Description show databases;Lists all databases in the Hive metastore. show tables;Lists all tables in the current database. select * from test1;Queries all rows from test1. EMR automatically appliesLIMIT 2000to SELECT statements.SQL statements cannot exceed 64 KB.
Click Save.