Ambari2.7.5+HDP3.1.5集成Kylin4.0.1所遇到的问题

本文记录了作者在进行集成时遇到的三个问题及解决方法。虽未明确集成对象,但结合标签推测是Kylin与Ambari的集成,为相关信息技术人员提供了问题解决参考。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

网上已存在不少集成所遇到的问题,这里记录一下个人所遇到的三个问题。

1. 问题一

KeyError: u'kylin'
Error: Error: Unable to run the custom hook script ['/usr/bin/python', '/var/lib/ambari-agent/cache/stack-hooks/before-ANY/scripts/hook.py', 'ANY', '/var/lib/ambari-agent/data/command-604.json', '/var/lib/ambari-agent/cache/stack-hooks/before-ANY', '/var/lib/ambari-agent/data/structured-out-604.json', 'INFO', '/var/lib/ambari-agent/tmp', 'PROTOCOL_TLSv1_2', '']

解决方法:

cd /var/lib/ambari-server/resources/scripts
python configs.py -u username -p password -n clusterName -l hostname -t 8080 -a set -c cluster-env -k ignore_groupsusers_create -v ture

# username:ambari用户名
# password:ambari密码
# clusterName:ambari集群名称
# hostname:ambari-server所在机器名称

2. 问题二

# kylin集成完成后,无法访问Web页面(404),查看日志,定位到异常信息(mysql版本为8.0.26):
Unable to load authentication plugin 'caching_sha2_password'

解决方法:

-- 用户名为kylin配置文件中的mysql用户名
alter user 'root'@'%' identified by '123456' password expire never;
alter user 'root'@'%' identified with mysql_native_password by '123456';
flush privileges;

-- 或者降低到8.0以下版本

3. 问题三

# 同样是kylin集成完成后,无法访问Web页面(404),查看日志,定位到异常信息:
context.ContextLoader:350 : Context initialization failed
Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'diagnosisService': Unsatisfied dependency expressed through field 'aclEvaluate'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'aclEvaluate': Unsatisfied dependency expressed through field 'aclUtil'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'aclUtil' defined in URL [jar:file:/opt/soft/kylin/tomcat/webapps/kylin/WEB-INF/lib/kylin-server-base-4.0.1.jar!/org/apache/kylin/rest/util/AclUtil.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'expressionHandler' defined in class path resource [kylinSecurity.xml]: Cannot resolve reference to bean 'permissionEvaluator' while setting bean property 'permissionEvaluator'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'permissionEvaluator' defined in class path resource [kylinSecurity.xml]: Cannot resolve reference to bean 'aclService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'aclService' defined in URL [jar:file:/opt/soft/kylin/tomcat/webapps/kylin/WEB-INF/lib/kylin-server-base-4.0.1.jar!/org/apache/kylin/rest/service/AclService.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.kylin.rest.service.AclService]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: Failed to find metadata store by url: kylin_metadata@jdbc,url=jdbc:mysql://hostname:port/kylin,username=root,password=123456,maxActive=10,maxIdle=10

解决方法:

# 查看KYLIN_HOME/ext目录下的mysql驱动包,尽量保证版本一致。
原驱动包:mysql-connector-java.jar
修改为:mysql-connector-java-8.0.26.jar
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值