You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by Jeff Zhang <zj...@gmail.com> on 2014/12/16 09:17:33 UTC

How to debug hive unit test in eclipse ?

The wiki page looks like already out-dated,
https://cwiki.apache.org/confluence/display/Hive/DeveloperGuide#DeveloperGuide-DebuggingHiveCode

Is there any new wiki page for how to debug hive unit test in eclipse ?



-- 
Best Regards

Jeff Zhang

Re: How to debug hive unit test in eclipse ?

Posted by Jeff Zhang <zj...@gmail.com>.
Thanks Xuefu, very helpful.

On Tue, Dec 16, 2014 at 11:24 PM, Xuefu Zhang <xz...@cloudera.com> wrote:
>
> Besides running the test in eclipse (if possible), the other way to do is
> to enable debug for sure-fire and connect it with eclipse using remote
> application debugging.
>
>
> http://maven.apache.org/surefire/maven-surefire-plugin/examples/debugging.html
>
> --Xuefu
>
>
> On Tue, Dec 16, 2014 at 12:17 AM, Jeff Zhang <zj...@gmail.com> wrote:
>
> > The wiki page looks like already out-dated,
> >
> >
> https://cwiki.apache.org/confluence/display/Hive/DeveloperGuide#DeveloperGuide-DebuggingHiveCode
> >
> > Is there any new wiki page for how to debug hive unit test in eclipse ?
> >
> >
> >
> > --
> > Best Regards
> >
> > Jeff Zhang
> >
>


-- 
Best Regards

Jeff Zhang

Re: How to debug hive unit test in eclipse ?

Posted by Xuefu Zhang <xz...@cloudera.com>.
Besides running the test in eclipse (if possible), the other way to do is
to enable debug for sure-fire and connect it with eclipse using remote
application debugging.

http://maven.apache.org/surefire/maven-surefire-plugin/examples/debugging.html

--Xuefu


On Tue, Dec 16, 2014 at 12:17 AM, Jeff Zhang <zj...@gmail.com> wrote:

> The wiki page looks like already out-dated,
>
> https://cwiki.apache.org/confluence/display/Hive/DeveloperGuide#DeveloperGuide-DebuggingHiveCode
>
> Is there any new wiki page for how to debug hive unit test in eclipse ?
>
>
>
> --
> Best Regards
>
> Jeff Zhang
>

Re: How to debug hive unit test in eclipse ?

Posted by Sergey Shelukhin <se...@hortonworks.com>.
-Dmaven.surefire.debug when you run a test. Then attach eclipse to remote
process on port 5005 (default). Breakpoints will be hit in unit tests and
regular q file tests. In MiniMr/MiniTez/etc., not sure.

On 14/12/16, 00:17, "Jeff Zhang" <zj...@gmail.com> wrote:

>The wiki page looks like already out-dated,
>https://cwiki.apache.org/confluence/display/Hive/DeveloperGuide#DeveloperG
>uide-DebuggingHiveCode
>
>Is there any new wiki page for how to debug hive unit test in eclipse ?
>
>
>
>-- 
>Best Regards
>
>Jeff Zhang