Error comes while close jobs in machine learning

currently i started using 14 day trial version to understand the concept of machine learning in elasticsearch but found some problem while closing the created jobs

PUT _xpack/ml/calendars/planned-outagesq/jobs/jobid1 #createjob

output
{
"calendar_id" : "planned-outagesq",
"job_ids" : [
"jobid1"
]
}

while tried to close job
POST _xpack/ml/anomaly_detectors/jobid1/_close
{
"error" : {
"root_cause" : [
{
"type" : "resource_not_found_exception",
"reason" : "No known job with id 'jobid1'"
}
],
"type" : "resource_not_found_exception",
"reason" : "No known job with id 'jobid1'"
},
"status" : 404
}

Hey @Maulish_Shah,

Looking at the APIs you are using, you need to use https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-job.html to create a job.

You are simply adding a job to a given calendar object https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-calendar-job.html which does not create the job.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.