Cannot open job – How to solve this Elasticsearch exception

Opster Team

August-23, Version: 6.8-7.1

Briefly, this error occurs when Elasticsearch cannot open a machine learning job due to various reasons such as insufficient memory, job configuration issues, or the job is already opened. To resolve this, ensure that there is enough memory available for the job. Check the job configuration for any errors and correct them. If the job is already opened, close it before attempting to open it again.

This guide will help you check for common problems that cause the log ” Cannot open job [ ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin.

Log Context

Log “Cannot open job [” class name is TransportOpenJobAction.java. We extracted the following from Elasticsearch source code for those seeking an in-depth context :

 }  @Override
 public void onFailure(Exception e) {
 if (ExceptionsHelper.unwrapCause(e) instanceof ResourceAlreadyExistsException) {
 e = new ElasticsearchStatusException("Cannot open job [" + jobParams.getJobId() +
 "] because it has already been opened"; RestStatus.CONFLICT; e);
 }
 listener.onFailure(e);
 }
 };

 

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?