码迷,mamicode.com
首页 > 其他好文 > 详细

ambari安装中常见的问题

时间:2019-02-25 13:29:01      阅读:308      评论:0      收藏:0      [点我收藏+]

标签:错误   app.js   rar   new   disable   als   分配   注册   with   

1.openssl版本问题

错误如下:ERROR 2018-09-11 14:51:40,101 NetUtil.py:96 - EOF occurred in violation of protocol (_ssl.c:579)

ERROR 2018-09-11 14:51:40,101 NetUtil.py:97 - SSLError: Failed to connect. Please check openssl library versions.

解决方法:

 

vim /etc/python/cert-verification.cfg

# Possible values are:
# ‘enable‘ to ensure HTTPS certificate verification is enabled by default
# ‘disable‘ to ensure HTTPS certificate verification is disabled by default
# ‘platform_default‘ to delegate the decision to the redistributor providing this particular Python version

# For more info refer to https://www.python.org/dev/peps/pep-0493/

[https]
verify=platform_default

verify的值改为disable

ambari-agent的配置文件/etc/ambari-agent/conf/ambari-agent.ini[security]

force_https_protocol=PROTOCOL_TLSv1_2

2.安装服务时提示namenode不能以home开头(非root用户安装时)

解决方法:vi /usr/lib/ambari-server/web/javascripts/app.js

isAllowedDir: function(value) {
var dirs = value.replace(/,/g,‘ ‘).trim().split(new RegExp("\\s+", "g"));
for(var i = 0; i < dirs.length; i++){
if(dirs[i].startsWith(‘/home‘) || dirs[i].startsWith(‘/homes‘)) {
return false;
}
}
return true;
}

把false改为true

3.install时一直失败

解决方法:vi /usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py

把541行注释掉就可以了

4.注册节点失败(非root用户安装时)

解决方法:vi /etc/sudoers在最后加

用户名    ALL=(ALL)       NOPASSWD:ALL

5.ambari-service启动时一直retrying

解决方法:给当前用户分配加载mysql驱动包的权限

ambari安装中常见的问题

标签:错误   app.js   rar   new   disable   als   分配   注册   with   

原文地址:https://www.cnblogs.com/jinke/p/10430338.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!