这个Hadoop插件的安装是非常重要。
Hadoop插件安装
在es的安装目录下
bin/plugin install elasticsearch/elasticsearch-repository-hdfs/2.2.0
官网安装说明
https://github.com/elastic/elasticsearch-hadoop/tree/master/repository-hdfs
https://github.com/elastic/elasticsearch-hdfs
https://oss.sonatype.org/content/repositories/snapshots/org/elasticsearch/elasticsearch-repository-hdfs/
以下是elasticsearch针对不同的版本
Hadoop插件配置
vi elasticsearch.yml
gateway :
type : hdfs
gateway :
hdfs :
uri : hdfs://localhost:9000
参考