You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.
It seems that the --settings option is not applied. The following is repro script for the wiki use case.
$ ./stream2es --version
2017-01-20T13:03:47.629+0000 INFO stream2es 20161020121123fe262bd
$ export ESURL=http://10.40.2.198:9200
$ curl ${ESURL}
{
"name":"Mikey",
"cluster_name":"elasticsearch",
"cluster_uuid":"5vscFAPyRAqiX75Gwz5n9Q",
"version": {
"number":"2.4.1",
"build_hash":"c67dc32e24162035d18d6fe1e952c4cbcbe79d16",
"build_timestamp":"2016-09-27T18:57:55Z",
"build_snapshot": false,
"lucene_version":"5.5.2"
},
"tagline":"You Know, for Search"
}
# Starting with empty cluster
$ curl ${ESURL}/_cat/indices?v
health status index pri rep docs.count docs.deleted store.size pri.store.size
# Let's start indexing wiki. Stop the task after 10 seconds.
nohup \
./stream2es wiki \
--target ${ESURL}/wiki \
--clobber true \
--settings '{ "settings": { "index": { "number_of_shards": 5, "number_of_replicas": 1 }}}' \
>/dev/null 2>&1&
sleep 10
kill$!# Index "wiki" has the default number of shards and no replicas. Why?
$ curl ${ESURL}/_cat/indices?v
health status index pri rep docs.count docs.deleted store.size pri.store.size
green open wiki 2 0 193 0 3.5mb 3.5mb
# Create "test" index manually using the same settings
$ curl -X PUT ${ESURL}/test/ -d '{ "settings": { "index": { "number_of_shards": 5, "number_of_replicas": 1 }}}'
{"acknowledged":true}
# Compare "wiki" vs "test"
$ curl ${ESURL}/_cat/indices?v
health status index pri rep docs.count docs.deleted store.size pri.store.size
yellow open test 5 1 0 0 260b 260b
green open wiki 2 0 193 0 3.5mb 3.5mb
The problem is that the author gives a wrong/(outdated?) settings example in readme, so the settings and mappings are parsed incorrectly and have no affect to ES.
If you follow the author's example, you will find your ES index is configured incorrectly like below:
It seems that the
--settings
option is not applied. The following is repro script for the wiki use case.Relevant server log:
The text was updated successfully, but these errors were encountered: