Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Filippo Balicchia
committed
Oct 15, 2017
1 parent
7b40cd9
commit 34d1f69
Showing
22 changed files
with
204 additions
and
261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Global options | ||
options: | ||
includeOriginalLine: true | ||
|
||
input: | ||
elasticsearch-http: | ||
module: input-elasticsearch-http | ||
port: 9900 | ||
worker: 2 | ||
|
||
output: | ||
stdout: yaml | ||
elasticsearch: | ||
module: elasticsearch | ||
url: http://localhost:9200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
version: '2' | ||
services: | ||
elasticsearch: | ||
image: docker.elastic.co/elasticsearch/elasticsearch:5.6.3 | ||
container_name: elasticsearch | ||
environment: | ||
- path.data=/tmp/elasticsearch | ||
- xpack.security.enabled=false | ||
- discovery.type=single-node | ||
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" | ||
ulimits: | ||
memlock: | ||
soft: -1 | ||
hard: -1 | ||
nofile: | ||
soft: 65536 | ||
hard: 65536 | ||
mem_limit: 1g | ||
volumes: | ||
- /tmp/elasticsearch/data:/tmp/elasticsearch | ||
ports: | ||
- "9200:9200" | ||
- "9300:9300" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{ "index" : { "_index" : "mytest", "_type" : "type1", "_id" : "1" } } | ||
{ "field1":"value1" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
cd elasticsearch-test | ||
docker-compose version | ||
docker version | ||
if [[ "$(docker ps)" =~ "elastic" ]]; then | ||
docker-compose stop && true | ||
docker-compose rm -f && true | ||
fi | ||
docker-compose up -d | ||
sleep 25 | ||
|
||
#curl -s -H "Content-Type: application/x-ndjson" -XPOST localhost:9900/_bulk --data-binary "@requests | ||
#sleep 10 | ||
curl 'localhost:9200/_cat/indices?v' 2>&1 | grep mytest |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.