Index.data_path support


(Anantha) #1

In ES 6.2, I wanted to store the data of a particular index in its own directory. To do it, I tried creating a mapping:

PUT kings
{
    "settings" : {
        "index" : {
            "number_of_shards" : 3, 
            "number_of_replicas" : 1,
            "data_path": "/tmp/dummy"
        }
    }
}

I got an error "path.shared_data must be set in order to use custom data paths". Has the feature added by https://github.com/elastic/elasticsearch/pull/9033 been deprecated or changed ? It appears so, as ElasticSearch refuses to start when I add
node.enable_custom_paths: true to elasticsearch.yml.