Ignoring river creation already exists – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 1.7-1.7

Briefly, this error occurs when you try to create a river in Elasticsearch that already exists. Rivers are data feeds in Elasticsearch, and each one must have a unique name. If you try to create a river with a name that’s already in use, you’ll get this error. To resolve this issue, you can either delete the existing river before creating a new one with the same name, or simply give your new river a unique name.

This guide will help you check for common problems that cause the log ” ignoring river [{}][{}] creation; already exists ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin.

Log Context

Log “ignoring river [{}][{}] creation; already exists” classname is RiversService.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

     protected void doClose() throws ElasticsearchException {
    }

    public synchronized void createRiver(RiverName riverName; Map settings) throws ElasticsearchException {
        if (riversInjectors.containsKey(riverName)) {
            logger.warn("ignoring river [{}][{}] creation; already exists"; riverName.type(); riverName.name());
            return;
        }

        logger.info("rivers have been deprecated. Read https://www.elastic.co/blog/deprecating_rivers");
        logger.debug("creating river [{}][{}]"; riverName.type(); riverName.name());




 

How helpful was this guide?

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?