Briefly, this error occurs when Elasticsearch Machine Learning (ML) fails to hide its internal indices and aliases. This could be due to insufficient permissions, a misconfiguration, or a version incompatibility. To resolve this, ensure that the user has the necessary permissions to modify indices and aliases. Check the Elasticsearch configuration for any errors and correct them. Also, verify that the Elasticsearch version supports hiding ML internal indices and aliases. If not, consider upgrading to a version that does.
This guide will help you check for common problems that cause the log ” An error occurred while making ML internal indices and aliases hidden ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: indices, aliases, plugin.
Log Context
Log “An error occurred while making ML internal indices and aliases hidden” classname is MlInitializationService.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :
if (updateAliasesResponse.isAcknowledged() == false) { logger.warn("One or more of the ML internal aliases could not be made hidden."); return; } mlInternalIndicesHidden.set(true); }; e -> logger.warn("An error occurred while making ML internal indices and aliases hidden"; e)); // Step 4: Extract ML internal aliases that are not hidden and make them hidden. ActionListenergetAliasesResponseListener = ActionListener.wrap(getAliasesResponse -> { IndicesAliasesRequest indicesAliasesRequest = new IndicesAliasesRequest(); for (var entry : getAliasesResponse.getAliases().entrySet()) {