使用插件repository-hdfs插件进行测试

下载地址:

https://oss.sonatype.org/content/repositories/snapshots/org/elasticsearch/elasticsearch-repository-hdfs/

https://oss.sonatype.org/content/repositories/snapshots/org/elasticsearch/elasticsearch-repository-hdfs/2.3.4.BUILD-SNAPSHOT/elasticsearch-repository-hdfs-2.3.4.BUILD-20160731.045929-24-hadoop2.zip

1、需要分发到各个节点,然后进行安装

bin/plugin install file:///home/dinpay/elasticsearch-repository-hdfs-2.3.4.BUILD-20160731.045929-24-hadoop2.zip 

2、hadoopetc/hadoop hdfs-site.xmlcore-site.xml复制到es的每个节点的config目录下(高可用需要的操作)

3、elasticsearch.yml配置文件后加上

 

# 禁用jsm,使快照能保存于hdfs

security.manager.enabled: false

repositories.hdfs:

uri: "hdfs://bi"

path: "/es"

load_defaults: "true"

concurrent_streams: 5

conf_location: "core-site.xml,hdfs-site.xml"

compress: "true"

conf.dfs.client.read.shortcircuit: "true"

 

4、使用kopf插件

#kopf插件 
bin/plugin install lmenezes/elasticsearch-kopf 

#head插件

bin/plugin install mobz/elasticsearch-head 

ElasticSearch的备份迁移方案

 

通过hadoop的文件操作实现迁移文件操作

 

相关文章:

  • 2021-04-02
  • 2021-09-24
  • 2022-12-23
  • 2021-08-24
  • 2022-12-23
  • 2022-12-23
  • 2021-06-29
  • 2021-10-26
猜你喜欢
  • 2021-11-20
  • 2021-08-08
  • 2022-12-23
  • 2021-07-27
  • 2021-10-13
  • 2022-12-23
  • 2022-02-05
相关资源
相似解决方案