学习配置hadoop,按网上教程配置完后,然后jobhistoryserver一直没有,用jps查看没有,原理和nodemanager和resourcemanager一样,
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @5f565482
解决方法也以一样,直接再在mapred-env.sh
中加入
export MAPRED_HISTORYSERVER_OPTS="--add-opens java.base/java.lang=ALL-UNNAMED"
然后重新启动就ok