当前位置:网站首页>ambari2.7.5集成es6.4.2
ambari2.7.5集成es6.4.2
2022-07-17 05:08:00 【山后别相缝】
参考
ambari2.7.1+hdp3.0.1集成Elasticsearch6.4.2_再看我把你吃掉的博客-CSDN博客
本次只验证安装单节点的es与slave
1.将Ambari-Elastic-Service-master放到/opt/es后解压

2.ELASTICSEARCH-6.4.x文件夹和KIBANA-6.4.x文件夹拷贝到/var/lib/ambari-server/resources/stacks/HDP/3.1/services目录,并修改名文件名

3.将包放到此目录下,这里需要安装http,没有安装可自行安装
包放好后,一定需要修改权限,正常为644

4.重启ambari-server
ambari-server restart
5. 重启完过后页面添加es

下一步,选择安装节点,

Elasticsearch Download Url 这里就是第三步中的位置

6.安装Master报错
File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 314, in _call
raise ExecutionFailed(err_msg, code, out, err)
resource_management.core.exceptions.ExecutionFailed: Execution of '
cd /opt/elasticsearch/master; wget http:hadoop06/es/elasticsearch-6.4.2.tar.gz -O elasticsearch.tar.gz -a /var/log/elasticsearch/master/elasticsearch-install.log' returned 4.
stdout:
排查发现是由于 Jar包的权限导致,改成644后,Master安装成功


7.Master启动失败
stderr:
Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/stacks/HDP/3.1/services/ELASTICSEARCH/package/scripts/es_master.py", line 168, in <module>
ESMaster().execute()
File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 352, in execute
--------
File"/var/lib/ambari-agent/cache/stacks/HDP/3.1/services/ELASTICSEARCH/package/templates/elasticsearch.master.yml.j2", line 93, in top-level template code
#action.destructive_requires_name: { {action_destructive_requires_name}}
File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/config_dictionary.py", line 73, in __getattr__
raise Fail("Configuration parameter '" + self.name + "' was not found in configurations dictionary!")
resource_management.core.exceptions.Fail: Configuration parameter 'hostname' was not found in configurations dictionary!
这里报错一直找不到hostname
解决方法
这里进入这个脚本路径打开这个脚本
/var/lib/ambari-agent/cache/stacks/HDP/3.1/services/ELASTICSEARCH/package/scripts/params.py
发现hostname没有指定具体的配置路径

尝试将具体路径加上如下所示,在elasticsearch-config中添加上hostname
hostname = config['configurations']['elasticsearch-config']['hostname']
再将elasticsearch-config.xml中添加上hostname参数,如下
/var/lib/ambari-server/resources/stacks/HDP/3.1/services/ELASTICSEARCH/configuration/elasticsearch-config.xml
<!-- hostname -->
<property>
<name>hostname</name>
<value>hadoop06</value>
<display-name>hostname</display-name>
</property>
操作完成重启ambari-server 然后将服务删除掉再重新安装
安装时可以查到此参数

9.服务安装成功,但是启动失败
通过查看日志/var/log/elasticsearch/master/my_es_cluster.log 报错如下
[2] bootstrap checks failed
[1]: max file descriptors [65535] for elasticsearch process is too low, increase to at least [65536]
[2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
这个报错在Master节点按以下方法解决
解决:max file descriptors [65535] for elasticsearch process is too low_春风化作秋雨的博客-CSDN博客
到目前为止,es服务启动成功

边栏推荐
- JS native object plus attributes
- Redis 源码分析-数据结构及实现(字典dict)
- Swagger配置与使用
- Teach you to reproduce log4j2 nuclear weapon level vulnerability hand in hand
- Redis source code analysis dynamic string implementation (SDS)
- How to deal with the mismatch between subtitle files and video files
- Nacos配置管理
- Buuctf miscellaneous - QR code
- <script>标签内容详解
- 分布式注册中心-etcd
猜你喜欢

Cesium 綁定鼠標事件和移除鼠標事件

Excel计算本月剩余天数

Applet cloud development upload pictures to cloud storage

Performance bottleneck finding - Flame graph analysis

Cityengine 3D pipe modeling tutorial

Questions d'entrevue courantes du système d'exploitation

Distributed storage fastdfs

Swagger configuration and use
![[AI] action recognition using simple neural network -- Based on coco key points](/img/67/cd6be6e070fb5d4d44ee043ebd7fac.png)
[AI] action recognition using simple neural network -- Based on coco key points

Wechat applet learning notes
随机推荐
Excel计算本月剩余天数
Data visualization
交换机用户模式、特权模式、全局模式、端口模式
Redis source code analysis - data structure and Implementation (Dictionary dict)
2020-10-22
Get the multi-functional version of the maximum and minimum values of the internal values of the objects in the array and the full version of the roll call system, and show the effect
Distributed storage fastdfs
第一个智能合约程序Faucet.sol
Parent components plus scoped sometimes affect child components
MapBox 加载本地离线地形
柠檬班软件测试培训可靠吗 这个从培训班逆袭成功的案例告诉你
字幕文件与视频文件对不上的处理方式
Excel imports long data and changes to 000 at the end
父组件加scoped有时也会影响子组件
Redis source code analysis 3 implementation of discontinuous traversal
Distributed registry etcd
聊聊redis分布式锁的8大坑
Markdown notes and related shortcut keys of typora
Opendds QoS and custom QoS (timing, timingqospolicy)
The principle and local storage of the throttle valve of the rotation chart are summarized