Impala SQL job configuration
To use Impala SQL in Data Development, configure an Impala SQL job in E-MapReduce. This topic describes how to configure an Impala SQL job.
Prerequisites
Ensure you have created a project. For more information, see project management.Procedure
-
Go to the Projects page in Data Platform.
-
Log in to the E-MapReduce console with your Alibaba Cloud account.
-
In the top navigation bar, select the region and resource group.
-
Click the Data Development tab.
-
-
In the row of the project you want to edit, click Edit Job.
-
Create a job of the Impala SQL type.
- On the left side of the page, right-click the target folder and select Create Job.
-
In the Create Job dialog box, enter a Job Name and Description, and select Impala SQL from the Job Type drop-down list.
This job type runs the following command to submit the job:
impala-shell -f {SQL_CONTENT} [options];The following table describes the parameters in the syntax.
Parameter
Description
SQL_CONTENT
The SQL statement to execute.
options
On the Advanced Settings tab of the Job Settings pane, click the
icon in the Environment Variable section to add the IMPALA_CLI_PARAMS environment variable. Example: IMPALA_CLI_PARAMS="-u hive". - Click OK.
-
Edit the job content.
-
In the Content section, enter the Impala SQL statements.
Example:
show databases; show tables; select * from test1; - Click Save.
-