我尝试在现有的HDP 2.6.2 Hadoop集群上安装Kylo。我遵循Kylo Document,但是当我尝试启动Kylo时,它说正在启动,但是启动在几秒钟后失败,并且状态转为停止。
[root@<KYLO_EDGE_NODE> ~]# service kylo-services start
Starting kylo-services ...
using NiFi profile: nifi-v1.2
[root@<KYLO_EDGE_NODE> ~]# service kylo-services status
Running. Here are the related processes:
29294 java
[root@<KYLO_EDGE_NODE> ~]# service kylo-services status
Running. Here are the related processes:
29294 java
[root@<KYLO_EDGE_NODE> ~]# service kylo-services status
Stopped.
由于限制,我共享Kylo服务日志的重要部分。
2017-10-23 17:34:58 INFO main:KyloVersionUtil:100 - finding version information from /opt/kylo/kylo-services/conf/version.txt
2017-10-23 17:34:58 INFO main:KyloVersionUtil:108 - loaded Kylo version file: 0.8.3.3 build Time: 2017-10-16 16:17
2017-10-23 17:35:00 ERROR main:ConnectionPool:182 - Unable to create initial connections of pool.
java.sql.SQLException: Access denied for user 'kylo'@'<KYLO_EDGE_NODE>' (using password: YES)
2017-10-23 17:35:01 ERROR main:ConnectionPool:182 - Unable to create initial connections of pool.
java.sql.SQLException: Access denied for user 'kylo'@'<KYLO_EDGE_NODE>' (using password: YES)
2017-10-23 17:35:16 ERROR localhost-startStop-1:TomcatStarter:63 - Error starting Tomcat context: org.springframework.beans.factory.UnsatisfiedDependencyException
在mysql实例,kylo数据库上:
GRANT ALL PRIVILEGES ON *.* TO 'kylo'@'<KYLO_EDGE_NODE>' IDENTIFIED BY '%password%' WITH GRANT OPTION;
没用。
我可以使用
mysql -u kylo -p
到达mysql实例 最佳答案
看来您在Kylo中配置的MySQL用户在MySQL服务器中不存在。请确保您已经在MySQL中创建了一个用户名,该用户名与Kylo的spring.datasource.username
相同,密码与spring.datasource.password
相同,并且主机与<KYLO_EDGE_NODE>
相同。
您可以通过从Kylo服务器上的命令行运行MySQL来验证是否正确创建了MySQL用户:
mysql -u kylo -p <MYSQL_INSTANCE_NODE> kylo
另外,您可以下载MySQL JDBC驱动程序并将jar文件安装到
/opt/kylo/kylo-services/lib/
,然后从Kylo删除/opt/kylo/kylo-services/lib/mariadb-java-client-1.5.7.jar
文件。关于hadoop - Kylo服务启动失败,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/46903176/