Impala SQL job configuration

Updated at:

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

  1. Go to the Projects page in Data Platform.

    1. Log in to the E-MapReduce console with your Alibaba Cloud account.

    2. In the top navigation bar, select the region and resource group.

    3. Click the Data Development tab.

  2. In the row of the project you want to edit, click Edit Job.

  3. Create a job of the Impala SQL type.

    1. On the left side of the page, right-click the target folder and select Create Job.
    2. 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 add icon in the Environment Variable section to add the IMPALA_CLI_PARAMS environment variable. Example: IMPALA_CLI_PARAMS="-u hive".

    3. Click OK.
  4. Edit the job content.

    1. In the Content section, enter the Impala SQL statements.

      Example:

      show databases;
      show tables;
      select * from test1;
    2. Click Save.