Composing a Query Export (AWS)¶
A query export is a combination of a Hive query followed by a data export command. See Composing a Hive Query through the UI, Composing a Data Export Command through the UI, and Query Export for more information.
Hadoop 1, Hadoop 2, and Presto clusters support Hive queries. See Mapping of Cluster and Command Types for more information.
You can configure the Pig version on an Hadoop 2 (Hive) cluster. Pig 0.11 is the default version. Pig 0.15 and Pig 0.17 (beta) are the other supported versions. You can also choose between MapReduce and Tez as the execution engine when you set the Pig 0.17 (beta) version. Pig 0.17 (beta) is only supported with Hive 1.2.0.
Perform the following steps to compose a Hive table data export command.
Using the Supported Keyboard Shortcuts in Analyze describes the supported keyboard shortcuts.
- Navigate to the Analyze page and click Compose. Select Query Export from the Command Type drop-down list.
- Compose a Hive query, or specify a path to a saved query. See Composing a Hive Query through the UI for more information about composing and running Hive queries.
- Choose HiveTable Export (the default) to export data from a Hive table; or Directory Export to export data from a Cloud storage directory (see Composing a Directory Export Command for more information).
- Specify the HiveTable or the Export Directory.
- Specify the Hive partition if any.
- Select a Data Store from the drop-down list.
- Choose a table from the DbTable drop-down list.
- Choose a DB Update Mode. Append Mode is the default. The other two options are Update Only Mode and Insert and Update Mode (supported only for an Oracle MySQL database).
- If you want to run the command on a Hadoop cluster, click the Use Hadoop Cluster checkbox and choose the cluster label from the drop-down list.
- Click Run to execute the command. Click Save if you want to re-run the same command later. (See Workspace for more information on saving commands/queries.)
You can see the command result under the Results tab and the command logs under the Logs tab. The Logs tab has the Errors and Warnings filter. For more information on how to download command results and logs, see Download Results and Logs from the Analyze UI.