[ 
https://issues.apache.org/jira/browse/HIVE-14532?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15430983#comment-15430983
 ] 

Balint Molnar commented on HIVE-14532:
--------------------------------------

With IntelliJ I tried the above mentioned statements, for me further 
modification required.
{code}
git clean -dfx
mvn install -Pitests -DskipTests
mvn -q test -Pitests -Dtest=TestCliDriver -Dqfile=combine2.q
{code}
then I applied the uploaded patch.
I just found a datanucleus plugin for intelliJ but I haven't tried it, without 
it I got a
{code}
The class "org.apache.hadoop.hive.metastore.model.MDatabase" is not 
persistable. This means that it either hasnt been enhanced, or that the 
enhanced version of the file is not in the CLASSPATH (or is hidden by an 
unenhanced version), or the Meta-Data/annotations for the class are not found.
{code}
To adjust this problem I deleted the metastore module from the main pom.xml.
With this modification IntelliJ was able to run the above mentioned qtests.

> Enable qtests from IDE
> ----------------------
>
>                 Key: HIVE-14532
>                 URL: https://issues.apache.org/jira/browse/HIVE-14532
>             Project: Hive
>          Issue Type: Sub-task
>          Components: Tests
>            Reporter: Zoltan Haindrich
>            Assignee: Zoltan Haindrich
>            Priority: Minor
>         Attachments: HIVE-14532.1.patch
>
>
> with HIVE-14444 applied; i've played around with executing qtest-s from 
> eclipse...after the patch seemed ok; i've checked it with:
> {code}
> git clean -dfx
> mvn package install eclipse:eclipse -Pitests -DskipTests
> mvn -q test -Pitests -Dtest=TestCliDriver -Dqfile=combine2.q
> {code}
> the last step I think is not required...but I bootstrapped and checked my 
> project integrity this way.
> After this I was able to execute {{TestCliDriver}} from eclipse using 
> {{-Dqfile=combine.q}}, other qfiles may or may not work...but will have at 
> least some chances to be usable.
> For my biggest surprise {{alter_concatenate_indexed_table.q}} also 
> passed...which contains relative file references - and I suspected that it 
> will have issues with that..
> note: I've the datanucleus plugin installed...and i use it when I need to.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to