hadoop启动报错:jobtracker,secondarynamenode 已死,但 pid 文件仍存解决

  在启动hadoop过程中,出现如下错误:

192.168.10.100: Invalid maximum heap size: -Xmx0m
192.168.10.100: Could not create the Java virtual machine.
192.168.10.100: jobtracker 已死,但 pid 文件仍存

  此时查看jobtracker的日志,

1 [root@ccloud100 manager]# vim /var/log/hadoop/hadoop-hadoop-jobtracker-ccloud100.out
2 --Invalid maximum heap size: -Xmx0m
3 --Could not create the Java virtual machine.

  说明是java堆设置错误,继续看问题出在hadoop-env.sh这个文件里。

[root@ccloud100 manager]# vim /etc/hadoop/conf/hadoop-env.sh
--export HADOOP_JOBTRACKER_OPTS="-Xmx0m -Dcom.sun.management.jmxremote $HADOOP_JOBTRACKER_OPTS"

  在HADOOP_JOBTRACKER_OPTS这个属性里,把-Xmx0m改为-Xmx4096m,再重启hadoop,问题就解决了。

草原战狼淘宝小店:http://xarxf.taobao.com/ 淘宝搜小矮人鞋坊,主营精致美丽时尚女鞋,为您的白雪公主挑一双哦。

 

posted @ 2013-03-12 10:02  草原战狼  阅读(1495)  评论(0编辑  收藏  举报
草原战狼淘宝小店

No one indebted for others,while many people don't know how to cherish others.

No one indebted for others,while many people don't know how to cherish others.

Don‘t cry because it is over, smile because it happened.

Don‘t try so hard, the best things come when you least expect them to.