I hereby claim:
- I am dadoonet on github.
- I am dadoonet (https://keybase.io/dadoonet) on keybase.
- I have a public key ASAO0iyeEGc4SdS0o_h57mZ4tzHdCcblMVLnQXDkWQYr8wo
To claim this, I am signing this object:
{ | |
"took" : 3, | |
"timed_out" : false, | |
"_shards" : { | |
"total" : 5, | |
"successful" : 3, | |
"failed" : 2, | |
"failures" : [ { | |
"index" : "dpitestcase", | |
"shard" : 3, |
### REINIT | |
DELETE user | |
PUT user | |
{ | |
"mappings": { | |
"properties": { | |
"name": { | |
"type": "text" | |
}, | |
"comments": { |
{ | |
"meta": { "theme": "elegant" }, | |
"basics": { | |
"name": "David Pilato", | |
"label": "Developer | Evangelist", | |
"image": "https://storage.cloud.google.com/dadoonet-speaker/DevoxxMA-David-Speaker.JPG", | |
"email": "david@pilato.fr", | |
"phone": "+33 613030841", | |
"url": "https://david.pilato.fr", | |
"summary": "A summary of John Doe…", |
// Start the first node and keep the generated security credentials handy | |
docker run -e ES_JAVA_OPTS="-Xms1g -Xmx1g" -p 9200:9200 -it docker.elastic.co/elasticsearch/elasticsearch:8.0.0 | |
// Check if the node has started correctly | |
curl --insecure --user elastic https://localhost:9200/ | |
// Add your second node | |
docker run -e ENROLLMENT_TOKEN="..." -e ES_JAVA_OPTS="-Xms1g -Xmx1g" -it docker.elastic.co/elasticsearch/elasticsearch:8.0.0 | |
// Check if it has joined the cluster |
echo "clean index" | |
curl -XDELETE 'http://localhost:9200/twitter?pretty' ; echo | |
echo "PUT Tweet" | |
curl -XPUT 'http://localhost:9200/twitter/tweet/1?ttl=1h&pretty' -d ' | |
{ | |
"created_at": "Mon May 13 19:59:27 +0000 2013" | |
} | |
' ; echo |
### Step 0 : INIT | |
DELETE test | |
DELETE person | |
### Step 1 | |
GET / | |
GET _cat/indices/person*?v&h=index,docs.count,store.size |
# Script to be placed in elasticsearch/bin | |
# Launch it from elasticsearch dir | |
# bin/backup indexname | |
# We suppose that data are under elasticsearch/data | |
# It will create a backup file under elasticsearch/backup | |
if [ -z "$1" ]; then | |
INDEX_NAME="dummy" | |
else | |
INDEX_NAME=$1 |
PUT _ingest/pipeline/attachment | |
{ | |
"description" : "Extract attachment information", | |
"processors" : [ | |
{ | |
"attachment" : { | |
"field" : "data" | |
} | |
},{ | |
"remove": { |
DELETE user | |
PUT user | |
{ | |
"settings": { | |
"number_of_shards": 1 | |
}, | |
"mappings": { | |
"_doc": { | |
"properties": { | |
"name": { |
I hereby claim:
To claim this, I am signing this object: