Return-Path: X-Original-To: apmail-hive-user-archive@www.apache.org Delivered-To: apmail-hive-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3321F10738 for ; Wed, 6 Nov 2013 02:51:55 +0000 (UTC) Received: (qmail 24367 invoked by uid 500); 6 Nov 2013 02:51:53 -0000 Delivered-To: apmail-hive-user-archive@hive.apache.org Received: (qmail 24321 invoked by uid 500); 6 Nov 2013 02:51:53 -0000 Mailing-List: contact user-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hive.apache.org Delivered-To: mailing list user@hive.apache.org Received: (qmail 24313 invoked by uid 99); 6 Nov 2013 02:51:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Nov 2013 02:51:53 +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 (athena.apache.org: domain of hellojinjie@gmail.com designates 209.85.214.178 as permitted sender) Received: from [209.85.214.178] (HELO mail-ob0-f178.google.com) (209.85.214.178) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Nov 2013 02:51:49 +0000 Received: by mail-ob0-f178.google.com with SMTP id va2so1701041obc.37 for ; Tue, 05 Nov 2013 18:51:28 -0800 (PST) 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=jPyd8n6c2k8NxS8cX8XI/vINBMiZpFyqG6gsSeKTJEo=; b=mEM9wXgvu4KFRURVTKY96FGNRPacJB5UCTTpuqufXnBFmfrSfruvL5yBasETknnUU0 AeL3/VXPRKG8YyPoFJ0IEqyEefOdMf/DvdL5bMPVE0+yBfeEG6Riaklib1TORd1WB8iE 6xlHcwXwwO+xGToGNOG+JfdaVFIRINNOieIfHqLVZm37fqRWtBjfumBNnHfTV9sHYDgV sTjhAHt1gPwcMLfXyD2As8ujEm6vBEzbRoqugFQBp3j359p52m3R0ti8G36TAODP0o4M UXMUFwSBQzSOf/8LJ6Gbsps09zrBypZMFjxkZb0R91McC/XAcctvDJ5gkrYF7Z60wOjI rELw== MIME-Version: 1.0 X-Received: by 10.182.101.134 with SMTP id fg6mr739332obb.30.1383706288107; Tue, 05 Nov 2013 18:51:28 -0800 (PST) Received: by 10.182.156.37 with HTTP; Tue, 5 Nov 2013 18:51:28 -0800 (PST) In-Reply-To: References: Date: Wed, 6 Nov 2013 10:51:28 +0800 Message-ID: Subject: Re: UnitTest did not pass during compile the latest hive code From: =?UTF-8?B?6YeR5p2w?= To: user@hive.apache.org Content-Type: multipart/alternative; boundary=e89a8ff250e0c6b61404ea7939a2 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8ff250e0c6b61404ea7939a2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks Tim & Thejas I trying to compile the latest code because I want to learn HIVE code. I have compiled HIVE successfully. But still have problem in running the tests. The test ./hcatalog/core/src/test/java/org/apache/hive/hcatalog/cli/TestUseDatabase.= java failed to pass the junit test. we have code below in the test code: CommandProcessorResponse response; response =3D hcatDriver.run("alter table " + tblName + " add partition (b=3D'2') location '/tmp'"); assertEquals(0, response.getResponseCode()); assertNull(response.getErrorMessage()); The code is trying to read /tmp directory. But, in my /tmp directory, there is a file name "fcitx-socket-:0". Accroding to this issue https://issues.apache.org/jira/browse/HADOOP-7945 hadoop did not allow ":" in filename. The code print following message: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: fcitx-socket-:0= ) I'm trying to fix it. Best Regards =E9=87=91=E6=9D=B0 (Jay Jin) On Wed, Nov 6, 2013 at 4:58 AM, Thejas Nair wrote: > The new instructions for using maven are here - > https://cwiki.apache.org/confluence/display/Hive/HiveDeveloperFAQ > I have updated the > https://cwiki.apache.org/confluence/display/Hive/DeveloperGuide with > link to above document. But it still needs cleanup. > > > On Tue, Nov 5, 2013 at 7:46 AM, Tim Chou wrote: > > Hi Jie, > > > > Can you compile HIVE successfully now? You need to modify some settings > > according to your error information. > > Maybe you can use the release version to avoid the error. > > > > Tim > > > > > > 2013/11/5 =E9=87=91=E6=9D=B0 > >> > >> I got it. > >> > >> I need to run "mvn install -DskipTests" before I run "mvn install" > >> > >> Are there any documents that I can follow to help me compile or readin= g > >> hive code? > >> The documents on > >> https://cwiki.apache.org/confluence/display/Hive/DeveloperGuide seems > to be > >> outdated. > >> > >> > >> > >> > >> Best Regards > >> =E9=87=91=E6=9D=B0 (Jay Jin) > >> > >> > >> On Tue, Nov 5, 2013 at 9:31 PM, =E9=87=91=E6=9D=B0 wrote: > >>> > >>> Hi, All > >>> > >>> When I try to compile the latest code of hive using "mvn install" > >>> I got these messages. How to pass these unit tests? Did I miss > something? > >>> > >>> I was compiling the code on ubuntu 13.04 > >>> And my JAVA_HOME is set: > >>> $ echo $JAVA_HOME > >>> /usr/lib/jvm/java-6-oracle/ > >>> > >>> > >>> Running org.apache.hadoop.hive.ql.exec.TestExecDriver > >>> Tests run: 8, Failures: 8, Errors: 0, Skipped: 0, Time elapsed: 16.95= 1 > >>> sec <<< FAILURE! - in org.apache.hadoop.hive.ql.exec.TestExecDriver > >>> testMapPlan1(org.apache.hadoop.hive.ql.exec.TestExecDriver) Time > >>> elapsed: 1.205 sec <<< FAILURE! > >>> junit.framework.AssertionFailedError: expected: but was: > >>> at junit.framework.Assert.fail(Assert.java:50) > >>> at junit.framework.Assert.failNotEquals(Assert.java:287) > >>> at junit.framework.Assert.assertEquals(Assert.java:67) > >>> at junit.framework.Assert.assertEquals(Assert.java:147) > >>> at junit.framework.Assert.assertEquals(Assert.java:153) > >>> at > >>> > org.apache.hadoop.hive.ql.exec.TestExecDriver.executePlan(TestExecDriver.= java:465) > >>> at > >>> > org.apache.hadoop.hive.ql.exec.TestExecDriver.testMapPlan1(TestExecDriver= .java:474) > >>> > >>> More error message is skipped. > >>> > >>> > >>> Best Regards > >>> =E9=87=91=E6=9D=B0 (Jay Jin) > >> > >> > > > > -- > CONFIDENTIALITY NOTICE > NOTICE: This message is intended for the use of the individual or entity = to > which it is addressed and may contain information that is confidential, > privileged and exempt from disclosure under applicable law. If the reader > of this message is not the intended recipient, you are hereby notified th= at > any printing, copying, dissemination, distribution, disclosure or > forwarding of this communication is strictly prohibited. If you have > received this communication in error, please contact the sender immediate= ly > and delete it from your system. Thank You. > --e89a8ff250e0c6b61404ea7939a2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks Tim & Thejas

I trying to compile the latest code because I want to learn HIVE code.

I have= compiled HIVE successfully.

But still have problem in running the tests.

The test
./hcata= log/core/src/test/java/org/apache/hive/hcatalog/cli/TestUseDatabase.java
failed to pass the junit = test.

we have= code below in the test code:

<= div class=3D"gmail_default" style=3D"color:rgb(34,34,34);font-family:arial,= sans-serif;font-size:13px">
CommandProcessorResponse response;

response =3D hcatDriver.run("alter table = " + tblName + " add partition (b=3D'2') location '/tm= p'");
assertEquals(0, response.getResponseCode());
assertNull(response.getErrorMessage());

T= he code is trying to read /tmp directory. But, in my /tmp directory, there = is a file name "fcitx-socket-:0".
Accroding to this issue=C2=A0https://issues.apache.org/jira/br= owse/HADOOP-7945=C2=A0hadoop= did not allow ":" in filename.=C2=A0
The code print following message:

FAILED: Execution Error, r= eturn code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(mes= sage:java.lang.IllegalArgumentException: java.net.URISyntaxException: Relat= ive path in absolute URI: fcitx-socket-:0)

I'm trying to fix it.


B= est Regards
=E9=87= =91=E6=9D=B0 (Jay Jin)


On Wed, Nov 6, 2013 at 4:58 AM, Thejas N= air <thejas@hortonworks.com> wrote:
The new instructions for using maven are here -
https://cwiki.apache.org/confluence/display/Hive/HiveD= eveloperFAQ
I have updated the
https://cwiki.apache.org/confluence/display/Hive/Develop= erGuide with
link to above document. But it still needs cleanup.


On Tue, Nov 5, 2013 at 7:46 AM, Tim Chou <timchou.hit@gmail.com> wrote:
> Hi Jie,
>
> Can you compile HIVE successfully now? You need to modify some setting= s
> according to your error information.
> Maybe you can use the release version to avoid the error.
>
> Tim
>
>
> 2013/11/5 =E9=87=91=E6=9D=B0 <hellojinjie@gmail.com>
>>
>> I got it.
>>
>> I need to run "mvn install -DskipTests" before I run &qu= ot;mvn install"
>>
>> Are there any documents that I can follow to help me compile or re= ading
>> hive code?
>> The documents on
>> https://cwiki.apache.org/confluence/display/Hiv= e/DeveloperGuide seems to be
>> outdated.
>>
>>
>>
>>
>> Best Regards
>> =E9=87=91=E6=9D=B0 (Jay Jin)
>>
>>
>> On Tue, Nov 5, 2013 at 9:31 PM, =E9=87=91=E6=9D=B0 <hellojinjie@gmail.com> wrote:
>>>
>>> Hi, All
>>>
>>> When I try to compile the latest code of hive using "mvn = install"
>>> I got these messages. How to pass these unit tests? Did I miss= something?
>>>
>>> I was compiling the code on ubuntu 13.04
>>> And my JAVA_HOME is set:
>>> $ echo $JAVA_HOME
>>> /usr/lib/jvm/java-6-oracle/
>>>
>>>
>>> Running org.apache.hadoop.hive.ql.exec.TestExecDriver
>>> Tests run: 8, Failures: 8, Errors: 0, Skipped: 0, Time elapsed= : 16.951
>>> sec <<< FAILURE! - in org.apache.hadoop.hive.ql.exec.= TestExecDriver
>>> testMapPlan1(org.apache.hadoop.hive.ql.exec.TestExecDriver) = =C2=A0Time
>>> elapsed: 1.205 sec =C2=A0<<< FAILURE!
>>> junit.framework.AssertionFailedError: expected:<true> bu= t was:<false>
>>> at junit.framework.Assert.fail(Assert.java:50)
>>> at junit.framework.Assert.failNotEquals(Assert.java:287)
>>> at junit.framework.Assert.assertEquals(Assert.java:67)
>>> at junit.framework.Assert.assertEquals(Assert.java:147)
>>> at junit.framework.Assert.assertEquals(Assert.java:153)
>>> at
>>> org.apache.hadoop.hive.ql.exec.TestExecDriver.executePlan(Test= ExecDriver.java:465)
>>> at
>>> org.apache.hadoop.hive.ql.exec.TestExecDriver.testMapPlan1(Tes= tExecDriver.java:474)
>>>
>>> More error message is skipped.
>>>
>>>
>>> Best Regards
>>> =E9=87=91=E6=9D=B0 (Jay Jin)
>>
>>
>

--
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to=
which it is addressed and may contain information that is confidential,
privileged and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are hereby notified that=
any printing, copying, dissemination, distribution, disclosure or
forwarding of this communication is strictly prohibited. If you have
received this communication in error, please contact the sender immediately=
and delete it from your system. Thank You.

--e89a8ff250e0c6b61404ea7939a2--