标签:错误 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驱动包的权限
标签:错误 app.js rar new disable als 分配 注册 with
原文地址:https://www.cnblogs.com/jinke/p/10430338.html