Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hive >> mail # dev >> debugging into unit tests with the new mvn build setup


Copy link to this message
-
RE: debugging into unit tests with the new mvn build setup
Hi Brock,

I wanted to attach the debugger in eclipse to execution of a junit test in org.apache.hadoop.hive.ql.exec.vector.TestVectorizationContext.

Eric

-----Original Message-----
From: Brock Noland [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 13, 2013 7:02 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: debugging into unit tests with the new mvn build setup

Hi,

Specifically which test are you referring to?

A true unit test is debuggable via the debug menu without any additional work (e.g. the new UDF tests or TestMacroSemanticAnalyzer).  The so called "unit" tests that submit MR jobs might be a little more work, but are you looking to debug the parent process or the child process?

Brock
On Wed, Nov 13, 2013 at 6:58 PM, Eric Hanson (SQL SERVER) < [EMAIL PROTECTED]> wrote:

> Hi,
>
> How do you attach the debugger in eclipse to debug into a single unit
> test now, with the new mvn build setup? If somebody could add
> instructions for this into the Hive Developer FAQ<
> https://cwiki.apache.org/confluence/display/Hive/HiveDeveloperFAQ>,
> that would be great.
>
> Thanks,
> Eric
>

--
Apache MRUnit - Unit testing MapReduce - http://mrunit.apache.org
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB