Tribe nodes and ML


(Luca Wintergerst) #1

I just wanted to post this bug I ran into earlier with 5.4.0 to help other users with a workaround.

When using the tribe node ML will throw exceptions as soon as xpack is installed.
These are attached at the bottom of this post.

To solve this issue, disable ML on both the node and tribe node level like this:

tribe:
  t1:
    cluster.name:   elasticsearch
    node.ml: false
    xpack.ml.enabled: false
  on_conflict: prefer_t1
node.ml: false
xpack.ml.enabled: false

Future versions of xpack will have a fix so this step becomes obsolete.

[2017-05-08T17:23:02,986][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [node-tribe] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: org.elasticsearch.common.inject.CreationException: Guice creation errors:

1) Could not find a suitable constructor in org.elasticsearch.xpack.ml.job.JobManager. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.
  at org.elasticsearch.xpack.ml.job.JobManager.class(Unknown Source)
  while locating org.elasticsearch.xpack.ml.job.JobManager
    for parameter 6 at org.elasticsearch.xpack.ml.action.DeleteFilterAction$TransportAction.<init>(Unknown Source)
  at _unknown_

2) Could not find a suitable constructor in org.elasticsearch.xpack.ml.job.JobManager. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.
  at org.elasticsearch.xpack.ml.job.JobManager.class(Unknown Source)
  while locating org.elasticsearch.xpack.ml.job.JobManager
    for parameter 6 at org.elasticsearch.xpack.ml.action.GetModelSnapshotsAction$TransportAction.<init>(Unknown Source)
  at _unknown_

3) Could not find a suitable constructor in org.elasticsearch.xpack.ml.job.JobManager. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.
  at org.elasticsearch.xpack.ml.job.JobManager.class(Unknown Source)
  while locating org.elasticsearch.xpack.ml.job.JobManager
    for parameter 5 at org.elasticsearch.xpack.ml.action.UpdateModelSnapshotAction$TransportAction.<init>(Unknown Source)
  at _unknown_
...

#2

you are a genius!
thank you!


(system) #3

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