2013年8月15日星期四
Run eclipse hadoop account in error
The problem now is that I run in the general account eclipse no problem at all, but in the hadoop account run on the error.
I follow this blog installed hadoop: http://www.cnblogs.com/tippoint/archive/2012/10/23/2735532.html
error display:
$ 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 was told to use xhost + ordinary users to try, results are shown below:
hadoop @ city-ubuntu :/ home / city $ xhost + city
No protocol specified
No protocol specified
xhost: unable to open display ": 0.0"
seek expert advice, be grateful
PS: Currently I use xhost + localhost, and then in the general account under ssh-X hadoop @ localhost eclipse eclipse can run, but I installed hadoop plugin did not play a role. Under ordinary users can see mapreduce options that are now under the hadoop do not see, and has the authority to plug 777.
------ Solution ---------------------------------------- ----
that we should pay attention when installing Eclipse! I was also so your eclipse I do not know where you installed, I suggest you reinstall it. This must be reasonable when installed in / home under construction in an eclipse folder, and then manually install themselves on this below, if you will be free to install a bunch of questions, time for you to solve these problems not as heavy equipment. I guess you might be installed in an ordinary user's directory, but the user is not authorized to access hadoop you that the user's home directory. You have installed in / home bottom, so that all users can use eclipse, every time I use are cd / home + sudo. / Eclipse / eclipse. You look at is not the case.
------ For reference only -------------------------------------- -
you get these two articles from the following ideas to solve it, a similar problem in a similar way, are generally effective
1, http://blog.sina.com.cn/s/blog_7195429b0100qxl5.html
2, http://blog.csdn.net/muzizhuben/article/details/6735795
------ For reference only --------------- ------------------------
your approach really solved my previous problem, but now there is a new problem!
After installing the plug-in, is not displayed on the left sidebar DFD Locations, other touches everything is normal.
seek advice
------ For reference only -------------------------------- -------
I could not confirm whether the eclipse platform I run hadoop program
------ For reference only --------- ------------------------------
I just created a mapreduce project, then dfs location ; out on his own forehead. . . Toss hungry for a long time ah! !
订阅:
博文评论 (Atom)
没有评论:
发表评论