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 :

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
} @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);
}
};
} @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); } };
 }  @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);
 }
 };

 

 [ratemypost]