当前位置:   article > 正文

Ambari 中安装ElasticSearch插件_ambari 集成elasticsearch

ambari 集成elasticsearch

1.说明:

Elasticsearch-Yarn插件地址:

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

Elasticsearch下载地址:

https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-5.0.0.zip

(默认,但目前不可访问)

https://www.elastic.co/downloads/past-releases/elasticsearch-5-0-0(可访问)

JDK版本为1.8jdk-8u144-linux-x64

 

2.https://github.com/tzolov/elasticsearch-yarn-ambari-plugin需要修改的部分:插件地址,Elasticsearch版本,master.pycreate_parents=Trueamabri 2.4 HDP 2.5

 

3.使用到的命令

hadoop jar /opt/es/elasticsearch-yarn.jar -download-es hdfs.upload.dir=/apps/elasticsearch/ download.local.dir=./downloads/ loadConfig=/home/elastic/elasticsearch.properties

 

hadoop jar /opt/es/elasticsearch-yarn.jar -install-es hdfs.upload.dir=/apps/elasticsearch/ download.local.dir=./downloads/ loadConfig=/home/elastic/elasticsearch.properties

 

hadoop jar /opt/es/elasticsearch-yarn.jar -install hdfs.upload.dir=/apps/elasticsearch/ download.local.dir=./downloads/ loadConfig=/home/elastic/elasticsearch.properties

 

hadoop jar /opt/es/elasticsearch-yarn.jar -start containers=1 container.mem=512 container.vcores=1 container.priority=-1 hdfs.upload.dir=/apps/elasticsearch/ loadConfig=/home/elastic/elasticsearch.properties

 

hadoop jar /opt/es/elasticsearch-yarn.jar -status hdfs.upload.dir=/apps/elasticsearch loadConfig=/home/elastic/elasticsearch.properties| grep RUNNING

 

hadoop jar /opt/es/elasticsearch-yarn.jar -stop hdfs.upload.dir=/apps/elasticsearch es.version=/home/elastic/elasticsearch.properties

loadConfig=/home/elastic/elasticsearch.properties

 

4.截图

 

http://ambari17.ambari:8088/cluster

 

 

5.遇到的问题

权限问题:chown -R ambari /var/run/ambari-server

 

6.参考资料:

tzolov/elasticsearch-yarn-ambari-plugin

https://github.com/tzolov/elasticsearch-yarn-ambari-plugin/blob/master/docs/README.md

插件地址

https://oss.sonatype.org/content/repositories/snapshots/org/elasticsearch/elasticsearch-yarn/2.4.0.BUILD-SNAPSHOT/

elasticsearch配置

http://www.cnblogs.com/tynia/p/offline-ambari.html

YARN上运行ElasticSearch

https://my.oschina.net/naqin/blog/393631


总结:

1.注意不同版本ElasticsearchJDK版本要求

2.如果在UI界面命令执行失败,可以尝试在终端直接执行命令


声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/很楠不爱3/article/detail/705655
推荐阅读
相关标签
  

闽ICP备14008679号