由于需要安装presto345,需要将JDK换成了11+的版本,导致Hadoop集群不能启动ResourceManager和NodeManager
查看日志,发现的如下错误:
Caused by: java.lang.NoClassDefFoundError: javax/activation/DataSource
解决方案:
直接下载activation-1.1.1.jar到lib目录下,或者本地上传到${HADOOP_HOME}/share/hadoop/yarn/lib目录下:
cd ${HADOOP_HOME}/share/hadoop/yarn/lib wget https://repo1.maven.org/maven2/javax/activation/activation/1.1.1/activation-1.1.1.jar
执行完,重新启动start-yarn.sh
start-yarn.sh 使用jps查看进程: 248979 NodeManager 249456 Jps 245766 DataNode 240026 QuorumPeerMain 245166 NameNode 245421 DFSZKFailoverController 248828 ResourceManager
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)