本文主要是介绍启动yarn时RM起不来解决办法,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
我玩3台虚拟机集群的时候,要起hdfs和yarn,用start-dfs.sh和start-yarn.sh启动的时候,hdfs能正常起,yarn的NM三台正常启,RM起不来,在103的log里查看了rm的日之后,它的报错信息是
报错信息:
2024-03-21 18:20:22,303 ERROR org.apache.hadoop.yarn.server.resourcemanager.ResourceManager: RECEIVED SIGNAL 15: SIGTERM --终止信号
2024-03-21 18:20:22,306 ERROR org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager: ExpiredTokenRemover received java.lang.InterruptedException: sleep interrupted2024-03-21 18:20:22,322 ERROR org.apache.hadoop.yarn.event.EventDispatcher: Returning, interrupted : java.lang.InterruptedException
2024-03-21 18:20:22,323 ERROR org.apache.hadoop.yarn.server.resourcemanager.ResourceManager: Returning, interrupted : java.lang.InterruptedException: sleep interrupted2024-03-21 18:20:22,327 ERROR org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager: ExpiredTokenRemover received java.lang.InterruptedException: sleep interrupted
大概意思就是为了线程安全,给我中断了。
网上查了好多,都他妈没用,然后我又无意中试了一遍myhadoop.sh start/stop这个群起脚本,(这个脚本里启yarn的脚本是:
echo " --------------- 启动 yarn ---------------" ssh hadoop103 "/opt/module/hadoop-3.3.4/sbin/start-yarn.sh"
)
诶?
诶?
诶?RM竟然好了,能起了,行吧,既然问题解决了,那就不深究了。
如果有大神知道这内里原因,烦请告知!
这篇关于启动yarn时RM起不来解决办法的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!