Return-Path: X-Original-To: apmail-hadoop-common-dev-archive@www.apache.org Delivered-To: apmail-hadoop-common-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 64D43D005 for ; Wed, 11 Jul 2012 20:24:48 +0000 (UTC) Received: (qmail 16826 invoked by uid 500); 11 Jul 2012 20:24:46 -0000 Delivered-To: apmail-hadoop-common-dev-archive@hadoop.apache.org Received: (qmail 16764 invoked by uid 500); 11 Jul 2012 20:24:46 -0000 Mailing-List: contact common-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-dev@hadoop.apache.org Delivered-To: mailing list common-dev@hadoop.apache.org Received: (qmail 16756 invoked by uid 99); 11 Jul 2012 20:24:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jul 2012 20:24:46 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of pavan.baburao@gmail.com designates 209.85.160.176 as permitted sender) Received: from [209.85.160.176] (HELO mail-gh0-f176.google.com) (209.85.160.176) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jul 2012 20:24:40 +0000 Received: by ghbz10 with SMTP id z10so1950358ghb.35 for ; Wed, 11 Jul 2012 13:24:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=tc0vGoeNKT5VfuqBUlMz3a1Bm23nmb9rNU3pD6N+KhA=; b=Nwx2/TeBP9xMPGVD0fRdcc9Z3XG+wxgNbD6mDLiwdDEYKHcF9q1KdEEKyA8/XkQdS2 HJBtbXN8DhXrWI0/LM104tXudK6rT4ESXjwxf5jQiCST6CbEnkcnYXNe1GtrQic0cgRc K4stnhz4r9IyFtYp7sWcbTng85dRwtyF1QmeGmLZzvt0ZRgMEidSST5hiFC8pp8cfUR+ o+2XbXwNSsHghA7LhT209cjkHxhvAd0bnyvSiT+b4h+B5F9X/XKkXmhb8SdlFYCLQ3MK s3lbckCuQqqyun7Kh493Rj1zQlGyrjJSIQaK4Ktik/ciVa+wCsQtdwkAwbUg09NJ5aOp fHuw== MIME-Version: 1.0 Received: by 10.50.157.194 with SMTP id wo2mr15746992igb.72.1342038258966; Wed, 11 Jul 2012 13:24:18 -0700 (PDT) Received: by 10.50.42.226 with HTTP; Wed, 11 Jul 2012 13:24:18 -0700 (PDT) In-Reply-To: References: Date: Wed, 11 Jul 2012 16:24:18 -0400 Message-ID: Subject: Re: Problem setting up 1st generation Hadoop-0.20 (ANT build) in Eclipse From: Pavan Kulkarni To: common-dev@hadoop.apache.org Content-Type: multipart/alternative; boundary=e89a8f3b9e1fb3613204c493a121 --e89a8f3b9e1fb3613204c493a121 Content-Type: text/plain; charset=ISO-8859-1 I resolved the issue of "*Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable."*. The problem was if the "ant tar" is being issued from root whereas the owner of the X Display Socket belongs to different user then, the error pops up. So to avoid this execute "*xhost +local:all*" in the terminal of the user who owns the X Display socket and then try issuing ant from root. It works fine. This does have some security concerns but this is the easiest workaround On Tue, Jul 10, 2012 at 5:50 PM, Pavan Kulkarni wrote: > I tried *"ant tar"* but it requested a forrest home directory ,so I ran > *"ant -Dforrest.home=/path/apache-forrest-0.8 compile-core tar"* > but this gets stuck at an Exception > "Exception in thread "main" java.lang.InternalError: Can't connect to X11 > window server using ':0' as the value of the DISPLAY variable." > No idea what this exception means. How come there isn't a good > documentation or a BUILDING.txt file for MR1 releases ? Any help regarding > this is appreciated.Thanks > > > On Tue, Jul 10, 2012 at 4:29 PM, Harsh J wrote: > >> Hey Pavan, >> >> Try an "ant tar". For more ant targets, read the build.xml at the root >> of your checkout. >> >> On Wed, Jul 11, 2012 at 1:15 AM, Pavan Kulkarni >> wrote: >> > Thanks a lot Harsh.I could set it up without any errors. >> > It would be great if you could provide me any pointers on how to build a >> > binary distribution tar file. >> > The information on wiki and in BUILDING.txt only has Maven >> > instructions.Thanks >> > >> > On Tue, Jul 10, 2012 at 2:39 PM, Harsh J wrote: >> > >> >> Hey Pavan, >> >> >> >> The 0.20.x version series was renamed recently to 1.x. Hence, you need >> >> to use the branch-1 code path if you want the latest stable branch >> >> (MR1, etc.) code. >> >> >> >> Do these once you have ant 1.8 and a Sun/Oracle JDK 1.6 installed, and >> >> you should have it: >> >> >> >> $ git clone http://github.com/apache/hadoop-common.git hadoop-1 >> >> $ cd hadoop-1; git checkout branch-1 >> >> $ ant eclipse >> >> >> >> (Now export this directory into Eclipse as a Java project) >> >> >> >> HTH. >> >> >> >> On Wed, Jul 11, 2012 at 12:00 AM, Pavan Kulkarni >> >> wrote: >> >> > Hi all, >> >> > >> >> > I am trying to setup hadoop 1st generation 0.20 in Eclipse which >> still >> >> > uses Ant as its build tool. >> >> > The build was successful , but when I want to set it up in the >> Eclipse >> >> IDE >> >> > i.e >> >> > *File-> new Project-> Project from existing ANT build file -> Select >> >> > build.xml ->Finish* >> >> > I get this following error : >> >> > *Problem setting the classpath of the project from the javac >> classpath: >> >> > Reference ivy-common.classpath not found.* >> >> > >> >> > I have tried finding solutions online but couldn't get a concrete >> one. >> >> Are >> >> > there any sources or workarounds on setting 1st generation >> >> > Hadoop in Eclipse.? >> >> > >> >> > Also my second question was how to build a binary tar file for >> >> hadoop-0.20 >> >> > which still uses ANT. The wiki pages only have information for maven. >> >> > Any help is highly appreciated.Thanks >> >> > -- >> >> > >> >> > --With Regards >> >> > Pavan Kulkarni >> >> >> >> >> >> >> >> -- >> >> Harsh J >> >> >> > >> > >> > >> > -- >> > >> > --With Regards >> > Pavan Kulkarni >> >> >> >> -- >> Harsh J >> > > > > -- > > --With Regards > Pavan Kulkarni > > -- --With Regards Pavan Kulkarni --e89a8f3b9e1fb3613204c493a121--