Migrating stored Hive queries after Unified Analytics removal
Migrate or delete stored Hive queries in Cloudera Data Warehouse on premises 1.5.5 Service Pack 3 and higher releases following the removal of Unified Analytics.
In Cloudera Data Services1.5.5 SP3 and higher releases, Cloudera Data Warehouse removes the Unified Analytics feature. Consequently, affected Virtual Warehouses revert to standard Impala Virtual Warehouses, and the Hive engine is no longer available within them.
While the runtime upgrade to Impala is seamless, queries saved in Data Explorer as a Hive snippet type while using Unified Analytics will fail to load or run. The system triggers the Snippet type hive is not configured error. This occurs because Hue stores the engine type used at the time of query creation.
Migration options
- If a stored Hive query uses syntax specific only to Hive that is not supported by
Impala, the query no longer functions in the upgraded warehouse. Delete the query.
- Go to the saved queries folder in Data Explorer.
- Select the Hive-specific query.
- Delete the query from the system.
- For individual queries that use syntax compatible with both Hive and Impala, manually
update the snippet type.
- Open the existing Hive-saved query in the Data Explorer query editor.
- Copy the SQL text.
- Create a new query snippet and select Impala as the engine type.
- Paste the SQL text and save the query.
- Delete the original Hive version of the query.
- If you have a large number of saved queries, perform a batch update by exporting and
editing the query metadata.
- Open Data Explorer and go to the Documents section.
- Select the Hive queries created in 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 Hive to Impala and hive to impala.
- Save the edited JSON file and import it back into Data Explorer.
- Verify that the new Impala queries function correctly, then delete the Unified Analytics (Hive) saved queries.
