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界面命令执行失败,可以尝试在终端直接执行命令


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值