# Elasticsearch 5.1.1 与 repository hdfs 集成启动出错

**URL:** <https://discuss.elastic.co/t/elasticsearch-5-1-1-repository-hdfs/69656>\
**Category:** 中文提问与讨论\
**Created:** [December 21, 2016, 9:51am UTC](https://discuss.elastic.co/t/elasticsearch-5-1-1-repository-hdfs/69656 "2016-12-21T09:51:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![111145](https://avatars.discourse-cdn.com/v4/letter/1/5e9695/32.png) [@111145](https://discuss.elastic.co/u/111145)\
**Post date:** [December 21, 2016, 9:51am UTC](https://discuss.elastic.co/t/elasticsearch-5-1-1-repository-hdfs/69656/1 "2016-12-21T09:51:52Z")

</div>

已经下载好了 repository hdfs ，但配置 elasticsearch.yml 出错，不能识别 hdfs 属性。

[2016-12-21T04:49:58,120][WARN][o.e.b.ElasticsearchUncaughtExceptionHandler] [node-1] uncaught exception in thread [main]  
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalArgumentException: unknown setting [repositories.hdfs.path] please check that any required plugins are inst alled, or check the breaking changes documentation for removed settings  
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:125) ~[elasticsearch-5.1.1.jar:5.1.1]  
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:112) ~[elasticsearch-5.1.1.jar:5.1.1]  
at org.elasticsearch.cli.SettingCommand.execute(SettingCommand.java:54) ~[elasticsearch-5.1.1.jar:5.1.1]  
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:96) ~[elasticsearch-5.1.1.jar:5.1.1]  
at org.elasticsearch.cli.Command.main(Command.java:62) ~[elasticsearch-5.1.1.jar:5.1.1]  
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:89) ~[elasticsearch-5.1.1.jar:5.1.1]  
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:82) ~[elasticsearch-5.1.1.jar:5.1.1]  
Caused by: java.lang.IllegalArgumentException: unknown setting [repositories.hdfs.path] please check that any required plugins are installed, or check the breaking change s documentation for removed settings

下面是我的 elasticsearch.yml 配置内容  
repositories:  
hdfs:  
uri: "hdfs://es-master:9000/" # optional - Hadoop file-system URI  
path: "some/path" # required - path with the file-system where data is stored/loaded

# load\_defaults: "true" # optional - whether to load the default Hadoop configuration (default) or not

# conf\_location: "/home/yuppy/hadoop-2.6.5/etc/hadoop/core-site.xml,/home/yuppy/hadoop-2.6.5/etc/hadoop/hdfs-site.xml" # optional - Hadoop configuration XML to be loaded (use commas for multi values)

# conf. : "" # optional - 'inlined' key=value added to the Hadoop configuration

# concurrent\_streams: 5 # optional - the number of concurrent streams (defaults to 5)

# compress: "false" # optional - whether to compress the metadata or not (default)

# chunk\_size: "10mb" # optional - chunk size (disabled by default)

---

<div class="post-metadata">

**Author:** ![medcl.net](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/medcl.net/32/4414_2.png) [@medcl.net](https://discuss.elastic.co/u/medcl.net)\
**Post date:** [January 13, 2017, 9:01am UTC](https://discuss.elastic.co/t/elasticsearch-5-1-1-repository-hdfs/69656/2 "2017-01-13T09:01:59Z")

</div>

不知道有没有注意 yml 文件的格式，另外还能通过 restful 的方式来进行配置:  
PUT \_snapshot/my\_hdfs\_repository  
{  
"type": "hdfs",  
"settings": {  
"uri": "hdfs://namenode:8020/",  
"path": "elasticsearch/respositories/my\_hdfs\_repository",  
"conf.dfs.client.read.shortcircuit": "true"  
}  
}

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 10, 2017, 9:02am UTC](https://discuss.elastic.co/t/elasticsearch-5-1-1-repository-hdfs/69656/3 "2017-02-10T09:02:24Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
