eclipse启动失败

!SESSION 2016-09-07 17:29:06.245 -----------------------------------------------
eclipse.buildId=4.4.2.M20150204-1700
java.version=1.8.0_101
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.java.product

!ENTRY org.eclipse.osgi 4 0 2016-09-07 17:29:34.406
!MESSAGE Application error
!STACK 1
org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
at org.eclipse.swt.SWT.error(SWT.java:4467)
at org.eclipse.swt.widgets.Display.createDisplay(Display.java:934)
at org.eclipse.swt.widgets.Display.create(Display.java:918)
at org.eclipse.swt.graphics.Device.(Device.java:157)
at org.eclipse.swt.widgets.Display.(Display.java:514)
at org.eclipse.swt.widgets.Display.(Display.java:505)
at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:732)
at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:162)
at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:165)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:107)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
at org.eclipse.equinox.launcher.Main.main(Main.java:1438)

这个是命令行提示查看的日志文件内容。
现在直接eclipse启动失败。
已邀请:

zhudejun_1985 - 天下大事,必作于细

OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Eclipse: Cannot open display: 
org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized.  Will retry after the state location is initialized.
Eclipse: Cannot open display: 
Eclipse:
An error has occurred. See the log file
/root/eclipse/configuration/1473241101535.log
 
现在有什么好的对应jdk1.8的eclipse吗?
单击上可以,但是在云主机上没有好的办法下载啊

zhudejun_1985 - 天下大事,必作于细

其中一台云主机,zhumac1,我之前都是在笔记本单机上用eclpise,今天想把集群的也看看就报错了。

fish - Hadooper

用JDK1.7就能好么?确定是JDK版本的问题?

fish - Hadooper

别怀疑,把机器的JDK换成1.7你看看能好么?

zhudejun_1985 - 天下大事,必作于细

Eclipse: Cannot open display: 
org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized.  Will retry after the state location is initialized.
 
请问老师我怎么找到这个文件?org.eclipse.m2e.logback.configuration
这个不是1.7版本的问题

zhudejun_1985 - 天下大事,必作于细

百度了很多帖子,也有类似问题,但都没有给出个具体可行的解决办法,郁闷啊。麻烦老师有空给看看,机器随便上。
1、远程桌面服务没启动。
2、请直用eclipse-jee-luna-SR2-linux-gtk-x86_64.tar.gz这个包
我在/root/wxl目录下已经下载了,并且eclipse也启动成功。

[attach]4292[/attach]

若用的是 eclipse-java-luna-SR2-linux-gtk-x86_64.tar.gz,则需要配置jre运行是环境eclipse才可以启动成功。
具体配置请看 http://wenda.chinahadoop.cn/question/914

使用Eclipse请在远程桌面操作。

zhudejun_1985 - 天下大事,必作于细

我晕倒,eclipse-jee-luna竟然和eclipse-java-luna不是一个版本,有何区别?这个也太坑了吧?

zhudejun_1985 - 天下大事,必作于细

远程桌面服务怎么启动?我如果直接想在云主机上运行./eclipse, 像在我个人电脑上一样不行吗?刚才我试了一下直接启动还是不行,报同样的错误,Eclipse: Cannot open display: 
org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized.  Will retry after the state location is initialized.
当然不是版本的问题,你怎么试的?
和我图中的操作一样吗
 

zhudejun_1985 - 天下大事,必作于细

图里的操作有什么玄机吗?不就是命令行启动吗?难道必须敲./eclipse/eclipse???
我以为你已经在用eclipse了,还要继续啊
那全屏截图发下你的操作

zhudejun_1985 - 天下大事,必作于细

[root@zhumac1 wxl]# ll
total 258756
drwxrwsr-x 9  100 users      4096 9月   8 09:40 eclipse
-rw-r--r-- 1 root root  264956749 11月  5 2015 eclipse-jee-luna-SR2-linux-gtk-x86_64.tar.gz
drwxr-xr-x 5 root root       4096 9月   7 22:07 workspace
[root@zhumac1 wxl]# ./eclipse/eclipse
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Eclipse: Cannot open display: 
org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized.  Will retry after the state location is initialized.
Eclipse: Cannot open display: 
Eclipse:
An error has occurred. See the log file
/root/wxl/eclipse/configuration/1473299354650.log.
[root@zhumac1 wxl]# 
粘贴的,不方便截图,也就是说云主机上不能直接这样打开类似客户端的界面?
你已经说出答案了。和云主机没关系,你用的什么客户端?
只有命令行没有界面的客户端,你怎么打开eclipse

fish - Hadooper

得在图形界面上启动啊。

fish - Hadooper

云主机的话,yum groupinstall "Desktop" 就可以了,装的是gnome。参考http://www.chinahadoop.cn/course/640/learn#lesson/13198

zhudejun_1985 - 天下大事,必作于细

16/09/08 11:21:00 INFO ipc.Client: Retrying connect to server: 0.0.0.0/0.0.0.0:8032. Already tried 3 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
16/09/08 11:21:01 INFO ipc.Client: Retrying connect to server: 0.0.0.0/0.0.0.0:8032. Already tried 4 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
16/09/08 11:21:02 INFO ipc.Client: Retrying connect to server: 0.0.0.0/0.0.0.0:8032. Already tried 5 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
16/09/08 11:21:03 INFO ipc.Client: Retrying connect to server: 0.0.0.0/0.0.0.0:8032. Already tried 6 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
16/09/08 11:21:04 INFO ipc.Client: Retrying connect to server: 0.0.0.0/0.0.0.0:8032. Already tried 7 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
16/09/08 11:21:05 INFO ipc.Client: Retrying connect to server: 0.0.0.0/0.0.0.0:8032. Already tried 8 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
16/09/08 11:21:06 INFO ipc.Client: Retrying connect to server: 0.0.0.0/0.0.0.0:8032. Already tried 9 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
 

先在我本地单机系统上跑wordcount,敲命令行:bin/hadoop   jar    /home/zhudejun/hadoop/wordcount.jar    org.apache.hadoop.examples.WordCount    /test/input   /test/output
之后为什么不运行,一直循环的报这个错误呢?

fish - Hadooper

你的配置文件里,有什么配成0.0.0.0这个地址了?

fish - Hadooper

你在哪台机器的什么目录里提交的命令?

fish - Hadooper

还没看到你的回复,应该是你的yarn-site.xml中没有配yarn.resourcemanager.hostname吧?

fish - Hadooper

yarn.resourcemanager.hostname指定了yarn中resourcemanager的地址,客户端通过这个来链接resourcemanager,如果没配,是没法连上的。
 
关于配置项,你可以参考http://DX2/DX3-conf/​

要回复问题请先登录注册