问题背景:
在搭建yarn集群的时候,顺利的启动了JobHistoryServer历史服务器,然后在关闭虚拟机,重新启动集群的时候报错:
WARNING: HADOOP_MAPRED_ROOT_LOGGER has been replaced by HADOOP_ROOT_LOGGER. Using value of HADOOP_MAPRED_ROOT_LOGGER.
historyserver is running as process 12098. Stop it first and ensure /tmp/hadoop-hadoop-historyserver.pid file is empty before retry.
原因分析:
占用了进程号:12098
解决方法:
kill -9 12098
然后重新使用命令启动历史服务器:mapred --daemon start historyserver
启动成功!