我正在尝试在 Ubuntu 12.04 版本中安装 Hadoop。按照http://michael-noll.com/tutorials/running-hadoop-on-ubuntu-linux-single-node-cluster/的说明
,我java-6-openjdk
从 Ubuntu 软件中心安装。我已经设置java_home
了.bashrc
。也设置java_home
在 Hadoop 中conf/env.sh
。格式化namenode时,出现以下错误:
usr/lib/jvm/java-6-openjdk/bin/java no such file or directory.
Run Code Online (Sandbox Code Playgroud)
谢谢你。但它是一个 64 位操作系统。
当我遇到以下问题时,我正在尝试使用 gedit:
myPC@TM77:~$ sudo gedit /etc/pm/config.d/config
(gedit:12512): IBUS-WARNING **: The owner of /home/myPC/.config/ibus/bus is not root!
(gedit:12512): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
Run Code Online (Sandbox Code Playgroud)
怎么了?
当我运行时sudo gedit /path/to/some/random/file
出现以下错误
** (gedit:6262): WARNING **: Command line `dbus-launch --autolaunch=7f8731869e1c690b8205727e0000000a --binary-syntax --close-stderr' exited with non-zero exit status 1: Autolaunch error: X11 initialization failed.
Cannot open display:
Run 'gedit --help' to see a full list of available command line options.
Run Code Online (Sandbox Code Playgroud)
使用gksudo
也无济于事
Cannot open display:
Run 'gedit --help' to see a full list of available command line options.
Run Code Online (Sandbox Code Playgroud)
任何帮助家伙。我需要有这种能力以 root 身份在 Gedit 中打开文件。
我发现这个问题有同样的错误,但没有解决方案Unable to launch gedit with sudo
编辑
我在Ubuntu 论坛中找到了这篇文章。
这些是说明: