Skip to content

Instantly share code, notes, and snippets.

@masudak
Last active August 29, 2015 14:17
Show Gist options
  • Save masudak/d956ae29e352f61dfb91 to your computer and use it in GitHub Desktop.
Save masudak/d956ae29e352f61dfb91 to your computer and use it in GitHub Desktop.

問題: kibana4を起動するとUnassignedなnodeができてしまう。 「Deacon Frost」だけでなく、もう一つできて、Unassignedなものができあがる。

効いてない?

# cat /etc/elasticsearch/elasticsearch.yml
cluster.name: test-es
index.number_of_shards: 1
index.number_of_replicas: 0
path.data: /data/elasticsearch

効いてない?

# cat /etc/elasticsearch/templates/kibana.json
{
  "kibana": {
    "template": ".kibana*",
    "settings":{
        "number_of_shards": 1,
        "number_of_replicas": 0
    }
  }
}

うまくいく

$ curl -XPUT 'localhost:9200/_settings' -d '
{
    "index" : {
        "number_of_replicas" : 0
    }
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment