[ML] Enable ML on macOS on ARM (#78203)

Now that the release infrastructure is in place to
deliver the ML C++ artifacts for macOS on ARM it can
be enabled within Elasticsearch.
This commit is contained in:
David Roberts 2021-09-23 08:42:12 +01:00 committed by GitHub
parent 9033faffff
commit 9de62d53a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,14 +59,7 @@ public class XPackSettings {
public static final Setting<Boolean> GRAPH_ENABLED = Setting.boolSetting("xpack.graph.enabled", true, Setting.Property.NodeScope); public static final Setting<Boolean> GRAPH_ENABLED = Setting.boolSetting("xpack.graph.enabled", true, Setting.Property.NodeScope);
/** Setting for enabling or disabling machine learning. Defaults to true. */ /** Setting for enabling or disabling machine learning. Defaults to true. */
public static final Setting<Boolean> MACHINE_LEARNING_ENABLED = Setting.boolSetting( public static final Setting<Boolean> MACHINE_LEARNING_ENABLED = Setting.boolSetting("xpack.ml.enabled", true,
"xpack.ml.enabled",
IS_DARWIN_AARCH64 == false,
value -> {
if (value && IS_DARWIN_AARCH64) {
throw new IllegalArgumentException("[xpack.ml.enabled] can not be set to [true] on [Mac OS X/aarch64]");
}
},
Setting.Property.NodeScope); Setting.Property.NodeScope);
/** Setting for enabling or disabling auditing. Defaults to false. */ /** Setting for enabling or disabling auditing. Defaults to false. */