From ca182f4dea41712c21b43c28864d5e58d792c936 Mon Sep 17 00:00:00 2001 From: zacbayhan Date: Thu, 14 Mar 2019 21:34:01 -0400 Subject: [PATCH 1/5] added curl example under match query in hopes it will make it easier for someone to uderstand how to interact with new es cluster --- docs/elasticsearch/full-text.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/elasticsearch/full-text.md b/docs/elasticsearch/full-text.md index cfe8f5e9..eb90bdbf 100644 --- a/docs/elasticsearch/full-text.md +++ b/docs/elasticsearch/full-text.md @@ -38,6 +38,19 @@ GET _search } ``` +### Curl +```bash +curl --insecure -XGET -u admin:admin https://://_search \ + -H "content-type: application/json" \ + -d'{ + "query": { + "match": { + "title": "wind" + } + } + }' +``` + The query accepts the following options. For descriptions of each, see [Options](#options). ```json From 00b43e8c5ab09b2db6dd5b9d3cd058fc9121e64c Mon Sep 17 00:00:00 2001 From: zacbayhan Date: Thu, 14 Mar 2019 21:36:35 -0400 Subject: [PATCH 2/5] fixing formating on header --- docs/elasticsearch/full-text.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/elasticsearch/full-text.md b/docs/elasticsearch/full-text.md index eb90bdbf..174c2f0f 100644 --- a/docs/elasticsearch/full-text.md +++ b/docs/elasticsearch/full-text.md @@ -38,7 +38,9 @@ GET _search } ``` -### Curl +## Curl + + ```bash curl --insecure -XGET -u admin:admin https://://_search \ -H "content-type: application/json" \ From d8b725356147fa535ba9513477fdde8f9970505f Mon Sep 17 00:00:00 2001 From: zacbayhan Date: Thu, 14 Mar 2019 21:57:47 -0400 Subject: [PATCH 3/5] adding line about how to set vm.max_map_count on host machine to avoid the (.max_map_count 65530 is too low) error --- docs/install/docker.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/install/docker.md b/docs/install/docker.md index 4edaddbc..ba96e7ba 100644 --- a/docs/install/docker.md +++ b/docs/install/docker.md @@ -194,7 +194,7 @@ docker exec -it /bin/bash ## Important settings -For production workloads, make sure the [Linux setting](https://www.kernel.org/doc/Documentation/sysctl/vm.txt) `vm.max_map_count` is set to at least 262144. On the Open Distro for Elasticsearch Docker image, this setting is the default. To verify, start a Bash session in the container and run: +For production workloads, make sure the [Linux setting](https://www.kernel.org/doc/Documentation/sysctl/vm.txt) `vm.max_map_count` is set to at least 262144. This setting can be added to the host machine's `/etc/sysctl.conf` file, by adding the following line `vm.max_map_count=262144`, then running `sudo sysctl -p` to reload. On the Open Distro for Elasticsearch Docker image, this setting is the default. To verify, start a Bash session in the container and run: ```bash cat /proc/sys/vm/max_map_count From bd23a2d48cd9467dae877307d283cbb2d0820599 Mon Sep 17 00:00:00 2001 From: zacbayhan Date: Sat, 16 Mar 2019 22:29:58 -0400 Subject: [PATCH 4/5] opening ports on odfe-node2, so that it will join the two node cluster --- docs/install/docker.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/install/docker.md b/docs/install/docker.md index ba96e7ba..7ea0d404 100644 --- a/docs/install/docker.md +++ b/docs/install/docker.md @@ -100,6 +100,7 @@ services: - 9600:9600 # required for Performance Analyzer networks: - odfe-net + odfe-node2: image: amazon/opendistro-for-elasticsearch:0.7.0 container_name: odfe-node2 @@ -114,8 +115,12 @@ services: hard: -1 volumes: - odfe-data2:/usr/share/elasticsearch/data + ports: + - 9200 + - 9600 networks: - odfe-net + kibana: image: amazon/opendistro-for-elasticsearch-kibana:0.7.0 container_name: odfe-kibana From 84503ea6dd1eafdfc39f0bd7d990a4b0b401e162 Mon Sep 17 00:00:00 2001 From: zacbayhan Date: Sat, 16 Mar 2019 22:41:44 -0400 Subject: [PATCH 5/5] removing ports --- docs/install/docker.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/docs/install/docker.md b/docs/install/docker.md index 7ea0d404..d6ef51c9 100644 --- a/docs/install/docker.md +++ b/docs/install/docker.md @@ -115,9 +115,6 @@ services: hard: -1 volumes: - odfe-data2:/usr/share/elasticsearch/data - ports: - - 9200 - - 9600 networks: - odfe-net