Skip to content
This repository has been archived by the owner on Nov 7, 2018. It is now read-only.

Commit

Permalink
Forcibly disable x-pack ml plug-in
Browse files Browse the repository at this point in the history
Signed-off-by: Paulo Pires <[email protected]>
  • Loading branch information
pires committed Jun 14, 2018
1 parent 690222c commit e14ad80
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Ready to use, lean and highly configurable Elasticsearch container image.
* OpenJDK JRE 8u151
* Elasticsearch 6.3.0

**Note:** `x-pack-ml` module is forcibly disabled as it's not supported on Alpine Linux.

## Run

### Attention
Expand Down
2 changes: 2 additions & 0 deletions config/elasticsearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ http:
discovery:
zen:
minimum_master_nodes: ${NUMBER_OF_MASTERS}

xpack.ml.enabled: false
3 changes: 3 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ if [ ! -z "${SHARD_ALLOCATION_AWARENESS_ATTR}" ]; then
fi
fi

# remove x-pack-ml module
rm -rf /elasticsearch/modules/x-pack/x-pack-ml

# run
if [[ $(whoami) == "root" ]]; then
chown -R elasticsearch:elasticsearch $BASE
Expand Down

0 comments on commit e14ad80

Please sign in to comment.