Authorization exception when trying to import model to Elasticsearch cluster

Hi all. This is my first time using Elasticsearch. Currently I've just deployed a cluster consisted of 3 nodes in my localhost.

I'm trying to import a NER NLP model using eland based on

import elasticsearch
from pathlib import Path
from import PyTorchModel
from import TransformerModel

tmp_path = 'models'
Path(tmp_path).mkdir(parents=True, exist_ok=True)
model_path, config, vocab_path =

es_url = 'http://localhost:9201'
es = elasticsearch.Elasticsearch(es_url, request_timeout=300)

ptm = PyTorchModel(es, tm.elasticsearch_model_id())


The problem is, when I tried to run the last command (import_model), it produced the following exception:

AuthorizationException: AuthorizationException(403, 'security_exception', 'current license is non-compliant for [ml]')

I tried to do some searching and I'm guessing it's a problem with (?) The only xpack configuration I provided in my nodes yml file is = false. In that case, shouldn't be true since its the default value?

Or is this caused by a completely different problem?

Any help would be appreciated, thanks a lot in advance!

Using pytorch models is a platinum licensed feature.

If you are running some local experiments, you can use a trial.

Here is the API: Start trial API | Elasticsearch Guide [8.3] | Elastic

The call you probably want to make:

POST /_license/start_trial?acknowledge=true

I see. Thanks a lot for the answer! And also sorry for the late reply.

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