How To Solve Issues Related to Log – Expected; but did not find; a dynamic hosts list at (version 6.8)

How To Solve Issues Related to Log – Expected; but did not find; a dynamic hosts list at (version 6.8)

Updated: Jan-20

Elasticsearch Version: 1.7-8.0

Background

Before you begin reading this guide try our beta Elasticsearch Health Check-Up it analyses JSON’s to provide personalized recommendations that can improve your clusters performance.


To troubleshoot log “Expected; but did not find; a dynamic hosts list at (version 6.8)” it’s important to understand a few problems related to Elasticsearch concepts discovery, discovery-file, hosts. See bellow important tips and explanations on these concepts

Log Context

Log”Expected; but did not find; a dynamic hosts list at [{}]” classname is FileBasedUnicastHostsProvider.java
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

             deprecationLogger.deprecated("Found dynamic hosts list at [{}] but this path is deprecated. This list should be at [{}] " +
                "instead. Support for the deprecated path will be removed in future."; legacyUnicastHostsFilePath; unicastHostsFilePath);
            return readFileContents(legacyUnicastHostsFilePath);
        }

        logger.warn("expected; but did not find; a dynamic hosts list at [{}]"; unicastHostsFilePath);

        return Collections.emptyList();
    }

    private List readFileContents(Path path) {




Related issues to this log

We have gathered selected Q&A from the community and issues from Github, that can help fix related issues please review the following for further information :

1 Resolved Es7 0 1 Warn O E D Filebas  

Github Issue Number 41795  

About Opster

Opster detects root causes of Elasticsearch problems, provides automated recommendations and can perform various actions to prevent issues and optimize performance

Find Configuration Errors

Analyze Now