Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I created two accounts, one is a common user, the other is just for hadoop, which is a superuser as root. I can load eclipse normally under my common user account, but I could not use it under hadoop account. I tried uninstalling eclipse and reinstalling it under the hadoop account but it still does not work.

Below is the error reported:

$ eclipse&
[1] 28486
hadoop@city-ubuntu:/home/city$ No protocol specified
No protocol specified

(eclipse:28487): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(eclipse:28487): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

** (eclipse:28487): WARNING **: The connection is closed

(eclipse:28487): Gtk-CRITICAL **: IA__gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed

(eclipse:28487): Gtk-WARNING **: Screen for GtkWindow not set; you must always set
a screen for a GtkWindow before using the window

(eclipse:28487): Gtk-WARNING **: Screen for GtkWindow not set; you must always set
a screen for a GtkWindow before using the window

(eclipse:28487): Gdk-CRITICAL **: IA__gdk_screen_get_display: assertion `GDK_IS_SCREEN (screen)' failed

(eclipse:28487): Gdk-CRITICAL **: IA__gdk_display_get_pointer: assertion `GDK_IS_DISPLAY (display)' failed

(eclipse:28487): Gtk-WARNING **: Screen for GtkWindow not set; you must always set
a screen for a GtkWindow before using the window

(eclipse:28487): Gdk-CRITICAL **: IA__gdk_screen_get_n_monitors: assertion `GDK_IS_SCREEN (screen)' failed

(eclipse:28487): Gtk-WARNING **: Screen for GtkWindow not set; you must always set
a screen for a GtkWindow before using the window

(eclipse:28487): Gdk-CRITICAL **: IA__gdk_screen_get_monitor_geometry: assertion `GDK_IS_SCREEN (screen)' failed

(eclipse:28487): Gdk-CRITICAL **: IA__gdk_screen_get_default_colormap: assertion `GDK_IS_SCREEN (screen)' failed

(eclipse:28487): Gdk-CRITICAL **: IA__gdk_colormap_get_visual: assertion `GDK_IS_COLORMAP (colormap)' failed

(eclipse:28487): Gdk-CRITICAL **: IA__gdk_screen_get_default_colormap: assertion `GDK_IS_SCREEN (screen)' failed

(eclipse:28487): Gdk-CRITICAL **: IA__gdk_screen_get_root_window: assertion `GDK_IS_SCREEN (screen)' failed

(eclipse:28487): Gdk-CRITICAL **: IA__gdk_screen_get_root_window: assertion `GDK_IS_SCREEN (screen)' failed

(eclipse:28487): Gdk-CRITICAL **: IA__gdk_window_new: assertion `GDK_IS_WINDOW (parent)' failed
Segmentation fault (core dumped)

[1]+  Exit 139                eclipse

I installed eclipse with this command:

sudo apt-get install eclipse.

What is wrong?

share|improve this question
    
Does it work if you run xhost + as your normal user and then launch eclipse as hadoop? –  terdon Aug 5 '13 at 0:57
    
@terdon, it reports : hadoop@city-ubuntu:/home/city$ xhost +city No protocol specified No protocol specified xhost: unable to open display ":0.0" –  city Aug 5 '13 at 2:04
    
@terdon, now i run command xhost +localhost, then ssh -X hadoop@localhost eclipse, it can work now. but the hadoop plugin does not work! it can work under normal user. –  city Aug 5 '13 at 3:12
    
Huh?Why are you sshing? Just run xhost + by itself, you can always reactivate it later. I am just thinking that your hadoop user might not have access to the X server which has been started by your normal user. So, if you disable X access control, it should work. –  terdon Aug 5 '13 at 14:30
    
@terdon, now when i log in ubuntu with hadoop user account, eclipse can work normally, but the hadoop plugin cannot work, which means there is no map reduce option in window->preference menu. However, this plugin can work under my normal user account. This problem drives me crazy!!! thanks for your help! –  city Aug 5 '13 at 15:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.