由於Hadoop-0.20.2-eclipse-plugin需要eclipse-3.3.2,費了很大勁找了一個linux版的,在CentOS-5.4下還不能用,啟動時讀完條就自動關了。
經仔細查看,在eclipse文件夾中發現了一個錯誤日志 hs_err_pid4831.log,開頭幾行的內容如下:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x0494b4e0, pid=4831, tid=3086752272
#
# JRE version: 6.0_24-b07
# Java VM: Java HotSpot(TM) Client VM (19.1-b02 mixed mode, sharing linux-x86 )
# Problematic frame:
# C [libxul.so+0xd174e0]
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
注意到了其中的Problematic frame: C [libxul.so+0xd174e0],於是上網搜了一下解決方案。
在eclipse.ini的末尾加上兩行即可:
-Dorg.eclipse.swt.browser.UseWebKitGTK=true
-Dorg.eclipse.swt.browser.XULRunnerPath==/usr/lib/xulrunner-2
錯誤原因是Firefox3的依賴包xulrunner(負責網頁的渲染的模塊)與JRE沖突。