java.lang.SecurityException: JCE cannot authenticate the provider BC 问题在大数据工具中的解决
解决 JCE cannot authenticate the provider BC
·
Hive 中自定义UDF 加密函数出现:JCE cannot authenticate the provider BC
解决办法:$HIVE_HOME/lib中添加对应的bcprov-jdk15on-xxx.jar 包,重启HIve SER2
Starrocks中自定义UDF 加密函数出现:JCE cannot authenticate the provider BC
1)在所有节点的JDK目录下jre/lib/security/java.security中添加:security.provider.10=org.bouncycastle.jce.provider.BouncyCastleProvider
2)将bcprov-jdk15on-xxx.jar拷贝至JDK的jre/lib/ext目录下
3)重启Starrocks *
还有一种办法是不使用oracle jdk使用内置jdk方式替换,此处不做详细说明
Flink on Yarn(CDH) 程序中添加加解密逻辑出现:JCE cannot authenticate the provider BC
ansible test-yarn -m shell -a "sudo mv /opt/cloudera/parcels/CDH/lib/hadoop-yarn/lib/bcprov-jdk15on-1.60.jar /opt/cloudera/parcels/CDH/lib/hadoop-yarn/lib/bcprov-jdk15on-1.60.jar.back"
ansible test-yarn -m shell -a "sudo ls -la /opt/cloudera/parcels/CDH/lib/hadoop-yarn/lib/bcprov-jdk15on-1.60.jar.back"
sudo ansible test-yarn -m copy -a "src=/app/sit/bcprov-jdk15on-1.64.jar dest=/opt/cloudera/parcels/CDH/lib/hadoop-yarn/lib/"
项目中配置
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15on</artifactId>
<version>1.64</version>
<scope>provided</scope>
</dependency>
原本更改为和yarn中的版本一致,1.60版本会引发这个问题:WARN org.apache.flink. runtime. taskmanager.Task
I - Source: Custom Source - Map - Filter - (Sink: Unnamed, Sink: Unnamed) (1/3)#358
(8f24bd0650edeacd44d0f115619f960) switched from RUNNING to FAILED with failure cause: java.lang.NoSuchMethodError: org.bouncycastle.crypto.engines.SM2Engine.<init>(Lorg/bouncycastle/crypto/engines/
SMzEnginesMode
持续更新 …
开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!
更多推荐
已为社区贡献1条内容
所有评论(0)