ambari安装Ranger启动遇到的异常

发布时间:2024-12-09 15:46

安装漏电保护开关,遇到异常电流可自动切断电源 #生活知识# #家庭维修常识# #家庭电路安全检查#

最新推荐文章于 2024-09-23 13:49:09 发布

曹宇飞丶 于 2018-08-03 10:44:51 发布

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

启动Ranger KMS Server时报错:

1.FileNotFoundException

WARNING: Failed to scan [file:/usr/jdk64/jdk1.8.0_131/lib/rt.jar] from classloader hierarchy
java.io.FileNotFoundException: /usr/jdk64/jdk1.8.0_131/lib/rt.jar (No such file or directory)

no file rt.jar

解决方法:在系统JDK环境找到 /usr/jdk64/jdk1.8.0_131/jre/lib/rt.jar 拷贝至 /usr/jdk64/jdk1.8.0_131/lib/

2.Establishing SSL connection without server’s identity verification is not recommended

Thu Aug 02 17:41:47 CST 2018 WARN: Establishing SSL connection without server’s identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn’t set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to ‘false’. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Thu Aug 02 17:41:47 CST 2018 WARN: Establishing SSL connection without server’s identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn’t set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to ‘false’. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.

SSL
解决方法:
1.在MySQL配置文件中加入两行配置:

sql_mode=STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTIO skip_ssl12

2.JDBC connect string配置加上?useSSL=false:
jdbc:mysql://node3.domain/rangerkms?useSSL=false

3.java.security.InvalidKeyException: Illegal key size

Illegal key size

解决方法:
替换{jdk_home}/jre/lib/security 目录下(Ambari使用的JDK)
local_policy.jar 和 US_export_policy.jar两个文件即可
jar包下载地址:

JDK6 http://www.oracle.com/technetwork/java/javase/downloads/jce-6-download-429243.html
JDK7 http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html
JDK8 http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html
问题解决之后,启动ranger成功:
ranger

网址:ambari安装Ranger启动遇到的异常 https://www.yuejiaxmz.com/news/view/425068

相关内容

澳洲ARB TANGO 纳瓦拉\DMAX\福特RANGER皮卡后平盖储物解决方案
异世界慢生活游戏启动遇阻:msvcrt40.dll文件缺失的全面解决方案
vsftpd 启动异常 (code=exited, status=2)
99%的人都会遇到!空调使用最常见的10大问题
当AI遇到IoT:开启智能生活的无限可能
日常生活安全知识:遇到危险要怎么逃生?
山东移动美好数字生活礼遇季正式启动
expect自动交互脚本:简化你的自动化任务在日常的 Linux 系统管理和自动化任务处理中,经常会遇到需要自动登录到服
工作中遇到的小技巧 一(暂停更新)
日常生活安全知识:遇到突发状况你该怎么做?(通用15篇)

随便看看