Migrating stored Hive queries after Unified Analytics removal
Starting with Cloudera Data Warehouse version 1.12.4, the Unified Analytics framework which previously allowed Impala Virtual Warehouses to execute Hive syntax is removed. This change requires a transition of any existing saved queries to the standard Impala engine.
To resolve this issue, use one of the following three methods. Your choice depends on the total number of stored queries and whether their syntax requires manual or batch updates.
-
If a stored Hive query uses syntax specific only to Hive that is not supported
by Impala, it will no longer function in the upgraded Virtual Warehouse.
- Navigate to the saved queries folder in Hue.
- Select the Hive-specific query.
- Delete the query from the system.
-
For individual queries that use syntax compatible with both Hive and Impala,
you can manually update the snippet type.
- Open the existing Hive-saved query in the Hue query editor.
- Copy the SQL text.
- Create a new query snippet and select Impala as the engine type.
- Delete the original Hive version of the query.
-
If you have a large number of saved queries, you can perform a batch update by
exporting and editing the query metadata.
- Open Hue and navigate to Documents. Select the Hive queries created under Unified Analytics and export them as a JSON file.
-
Open the exported JSON file in a standard text editor. Use the
search-and-replace function to change all instances of
type:hivetotype: impala. - Create a new query snippet and select Impala as the engine type.
- Delete the original Hive version of the query.
