Return-Path: X-Original-To: apmail-hadoop-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0F07D10644 for ; Tue, 24 Dec 2013 16:38:57 +0000 (UTC) Received: (qmail 31783 invoked by uid 500); 24 Dec 2013 16:38:45 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 31311 invoked by uid 500); 24 Dec 2013 16:38:39 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 31304 invoked by uid 99); 24 Dec 2013 16:38:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Dec 2013 16:38:38 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [94.124.120.47] (HELO server7.bhosted.nl) (94.124.120.47) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 24 Dec 2013 16:38:31 +0000 Received: (qmail 12249 invoked by uid 87); 24 Dec 2013 17:38:08 +0100 Received: from mail-qe0-f48.google.com (postmaster@frankscholten.nl@mail-qe0-f48.google.com) by server7 (envelope-from , uid 0) with qmail-scanner-2.02 (clamdscan: 0.97.8/18278. spamassassin: 3.3.2. Clear:RC:0(209.85.128.48):. Processed in 0.021695 secs); 24 Dec 2013 16:38:08 -0000 Received: from mail-qe0-f48.google.com (postmaster@frankscholten.nl@209.85.128.48) by server7.bhosted.nl with SMTP; 24 Dec 2013 17:38:08 +0100 Received: by mail-qe0-f48.google.com with SMTP id gc15so6569690qeb.7 for ; Tue, 24 Dec 2013 08:38:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=AsaxKFLNGQq0o6gNFHDBEHToDnl8T+IIrqDA3VAXqqk=; b=iY58bdkf7BIBYsjvcfzG03PChurwemfDyRqll5C4h+Q7bR4xRB+SqL5yqpwpMSkXwQ iWaWUyQU/F/lsAFXhvgCPezyfEqWicb1bf2ONbIOrqZiAR6FyXo86o8OcfDdsDi21udi +keTR0AMcHdaUJYOajayOuNOWzZM76DOUbDiGmGntCRg5e0RFWp+cSyPqkZKeSHWC48T Hp1eivlohFXmMtO3gO3EjuSRJlP1IrvetNFS13uc//DbynetO7LMvJlW91cHE9mbbJGz t8/wvOpx1CnAC5+0dZEzhGCfprJ0ZJejE/1VP3Huf+fcQH0C6tQ+XFiLeI4LWfGGN+N5 MM8Q== MIME-Version: 1.0 X-Received: by 10.49.131.164 with SMTP id on4mr55546482qeb.16.1387903087568; Tue, 24 Dec 2013 08:38:07 -0800 (PST) Received: by 10.96.188.36 with HTTP; Tue, 24 Dec 2013 08:38:07 -0800 (PST) In-Reply-To: References: Date: Tue, 24 Dec 2013 17:38:07 +0100 Message-ID: Subject: Re: Building Hadoop 1.2.1 in IntelliJ IDEA From: Frank Scholten To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=047d7bd75132846dd104ee4a5e42 X-Virus-Checked: Checked by ClamAV on apache.org --047d7bd75132846dd104ee4a5e42 Content-Type: text/plain; charset=ISO-8859-1 Hi Yong, Thanks for the tip. Unfortunately this still gives the same issues in IntelliJ. Package name 'org.apache.hadoop.mapreduce.test.system' does not correspond to the file path 'system.java.org.apache.hadoop.mapreduce.test.system' less... (Ctrl+F1) Detects package statements that do not correspond to the project directory structure. What is your setup for developing Hadoop? Eclipse? Curious what other people are using which allows them to easily run tests, debug and so on. Cheers, Frank On Tue, Dec 24, 2013 at 3:50 PM, java8964 wrote: > The best way, I am thinking, is to try following: > > 1) Use the ant command line to generate eclipse file from the hadoop 1.2.1 > source folder by "ant eclipse" > 2) After that, you can using "import project" in IntelliJ for "Eclipse" > project, which will handle all the path correctly in Intellij for you. > > Yong > > ------------------------------ > Date: Tue, 24 Dec 2013 12:32:43 +0100 > Subject: Building Hadoop 1.2.1 in IntelliJ IDEA > From: frank@frankscholten.nl > To: user@hadoop.apache.org > > > Hi all, > > I might have found a small bug in the CLI minicluster code on Hadoop 1.2.1 > so I wanted to write a patch and test my code inside IntelliJ. > > I followed the instructions on > http://wiki.apache.org/hadoop/HadoopUnderIDEA. I added libraries and > source folders but I cannot build the test code of the project. > > The problem seems to be that the package structure under src/test varies. > There are org.apache.hadoop.* packages directly underneath it as well as a > few subfolders which themselves have packages. Adding src/test as a source > folder causes compilation errors for the packages under > subfolders because their package name does not match with the source > folder path. > > How can I configure the project in IntelliJ so I can develop and run unit > tests? > > Cheers, > > Frank > --047d7bd75132846dd104ee4a5e42 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi Yong,

Thanks for the tip. Unfort= unately this still gives the same issues in IntelliJ.

Package name &= #39;org.apache.hadoop.mapreduce.test.system' does not correspond to the= file path 'system.java.org.apache.hadoop.mapreduce.test.system' le= ss... (Ctrl+F1)
Detects package statements that do not correspond to the project directory = structure.

What is your setup for developing Hadoop? Eclipse? Curiou= s what other people are using which allows them to easily run tests, debug = and so on.

Cheers,

Frank



On Tue, Dec 24, 2013 a= t 3:50 PM, java8964 <java8964@hotmail.com> wrote:
The best way, I am thinking, is to try following:
1) Use the ant command line to generate eclipse file from t= he hadoop 1.2.1 source folder by "ant eclipse"
2) After= that, you can using "import project" in IntelliJ for "Eclip= se" project, which will handle all the path correctly in Intellij for = you.

Yong=A0


Date: Tue, 24 Dec 2013 12:32:43= +0100
Subject: Building Hadoop 1.2.1 in IntelliJ IDEA
From: frank@frankscholten.nl=
To: user@hadoop= .apache.org


Hi= all,

I might have found a small bug in=20 the CLI minicluster code on Hadoop 1.2.1 so I wanted to write a patch=20 and test my code inside IntelliJ.

I followed the instructions o= n=20 http://wiki.apache.org/hadoop/HadoopUnderIDEA. I added libraries and = =20 source folders but I cannot build the test code of the project.
The problem seems to be that the package structure under src/test varies.=20 There are org.apache.hadoop.* packages directly underneath it as well=20 as a few subfolders which themselves have packages. Adding src/test as a source folder causes compilation errors for the packages under
subfolders because their package name does not match with the source folder= path.

How can I configure the project in IntelliJ so I c= an develop and run unit tests?

Cheers,

Frank

--047d7bd75132846dd104ee4a5e42--