Return-Path: Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: (qmail 87732 invoked from network); 18 Jan 2010 02:20:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Jan 2010 02:20:26 -0000 Received: (qmail 66434 invoked by uid 500); 18 Jan 2010 02:20:21 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 66341 invoked by uid 500); 18 Jan 2010 02:20:21 -0000 Mailing-List: contact common-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-user@hadoop.apache.org Delivered-To: mailing list common-user@hadoop.apache.org Received: (qmail 66098 invoked by uid 99); 18 Jan 2010 02:20:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jan 2010 02:20:20 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tarandeep@gmail.com designates 209.85.160.50 as permitted sender) Received: from [209.85.160.50] (HELO mail-pw0-f50.google.com) (209.85.160.50) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jan 2010 02:20:12 +0000 Received: by pwi20 with SMTP id 20so1538644pwi.29 for ; Sun, 17 Jan 2010 18:19:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=nzDkNkfgyRUXi+pculXmJgGu5p09m4QCalrx2vXIcrw=; b=X6xHS8IVor72NC/IFjWTuqF21i2haATy9cjxcQsQj5KY57/QQDF28GKyzuNlM6V1Y7 UIZ2wZpQ6wMQwL3u+V9+XoKBz7ZVlp99bacwFsxqO8K13xb5FVL5/WtdFbDu67S7QYeW sVt9aQFPXovHMoeHID5Q4v6nqfmSvoSAeQ9Io= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=U7vw8Nn9wnv1QDfcnb2vNq5Lt8dOQ1wB/ymq8qP21xIMlEpIzZl7+qIv1G37FTj5wk wL+kxK+58gEimXbeTgMkn1OdMJHgrKUUtU7Rw1dUwV2JJyfjjdjm+yo/An8dpgvMyETP YBADpdIqAUEmZ7T9NRr2YYDIMoUpRJIrgB8HQ= MIME-Version: 1.0 Received: by 10.142.2.27 with SMTP id 27mr3713951wfb.278.1263781191087; Sun, 17 Jan 2010 18:19:51 -0800 (PST) In-Reply-To: References: From: Tarandeep Singh Date: Sun, 17 Jan 2010 18:19:31 -0800 Message-ID: Subject: Re: Hadoop and X11 related error To: common-user@hadoop.apache.org Cc: hadoop-user@lucene.apache.org Content-Type: multipart/alternative; boundary=00504502ad4af7f7bb047d66fc3b X-Virus-Checked: Checked by ClamAV on apache.org --00504502ad4af7f7bb047d66fc3b Content-Type: text/plain; charset=ISO-8859-1 On Sun, Jan 17, 2010 at 1:57 PM, Vladimir Klimontovich < klimontovich@gmail.com> wrote: > Maybe, hadoop running MR jobs using different user? For example, if you > followed installation instructions > from official site or used rpm/deb packages hadoop using "hadoop" user to > run jobs. And you probably using different user > for running your test program. > > Thanks Vladimir.. I am not running hadoop as the "hadoop" user. Both my test program and hadoop are run using same user. >From the exception, it is clear the DISPLAY variable is set properly, but java is not able to connect to the X server (not sure either some permission issues or what) > On Jan 18, 2010, at 12:41 AM, Tarandeep Singh wrote: > > > Hi, > > > > I am running a MR job that requires usage of some java.awt.* classes, > that > > can't be run in headless mode. > > > > Right now, I am running Hadoop in a single node cluster (my laptop) which > > has X11 server running. I have set up my ssh server and client to do X11 > > forwarding. > > > > I ran the following java program to ensure that X11 forwarding is > working- > > > > public class Test > > throws Exception > > { > > public static void main( String[] args) > > { > > Process p = runtime.getRuntime( ).exec( "/usr/bin/xterm"); > > p.waitFor( ); > > } > > } > > > > I ran it as- > > ssh localhost "java Test" > > and it worked confirming that X11 forwarding is working over SSH. > > > > However, when I run a Map Reduce program that uses java.awt.* classes > > (trying to create an object that extends Frame), I keep getting this > error- > > > > java.lang.InternalError- Can't connect to X11 window server using > > 'localhost:10.0' as the value of the DISPLAY variable > > > > I printed the value of DISPLAY variable- > > > > echo $DISPLAY > > :0.0 > > ssh localhost > > echo $DISPLAY > > localhost:10.0 > > > > I understand this is more of a SSH and X11 related issue, but X11 > forwarding > > is working over SSH in my standalone programs, but not in MR program. > That's > > why I am posting the problem here. > > > > Any help is greatly appreciated. > > > > Thanks, > > Tarandeep > > --- > Vladimir Klimontovich, > skype: klimontovich > GoogleTalk/Jabber: klimontovich@gmail.com > Cell phone: +7926 890 2349 > > --00504502ad4af7f7bb047d66fc3b--