赞
踩
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.8:jdk-8u144-linux-x64
2.https://github.com/tzolov/elasticsearch-yarn-ambari-plugin需要修改的部分:插件地址,Elasticsearch版本,master.py中create_parents=True(amabri 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
插件地址
elasticsearch配置
http://www.cnblogs.com/tynia/p/offline-ambari.html
在YARN上运行ElasticSearch
https://my.oschina.net/naqin/blog/393631
总结:
1.注意不同版本Elasticsearch对JDK版本要求
2.如果在UI界面命令执行失败,可以尝试在终端直接执行命令
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。