You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by Navis류승우 <na...@nexr.com> on 2014/09/01 08:20:21 UTC

Re: Running tests in IntelliJ

Make a jar dependency on metastore module with hive-metastore,jar and give
higher priority to it than module source. Pretty sure there is a better way
than this.

Thanks,
Navis


2014-08-30 18:47 GMT+09:00 Lars Francke <la...@gmail.com>:

> Hi,
>
> I'm trying to set up my dev environment properly so that I can run tests in
> IntelliJ but a lot of them fail due to errors like this:
>
> "Caused by:
> org.datanucleus.api.jdo.exceptions.ClassNotPersistenceCapableException: The
> class "org.apache.hadoop.hive.metastore.model.MVersionTable" 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."
>
> I understand that this comes due to some stuff Datanucleus does behind the
> scenes but I can't get that to work in IntelliJ even with the two available
> Datanucleus plugins. They both seem to be unmaintained.
>
> So: Does anyone use IntelliJ and has all the tests running in it?
>
> I appreciate any pointers, thank you!
>
> Cheers,
> Lars
>

Re: Running tests in IntelliJ

Posted by Lars Francke <la...@gmail.com>.
Thanks Navis, I'll try that!


On Mon, Sep 1, 2014 at 8:20 AM, Navis류승우 <na...@nexr.com> wrote:

> Make a jar dependency on metastore module with hive-metastore,jar and give
> higher priority to it than module source. Pretty sure there is a better way
> than this.
>
> Thanks,
> Navis
>
>
> 2014-08-30 18:47 GMT+09:00 Lars Francke <la...@gmail.com>:
>
> > Hi,
> >
> > I'm trying to set up my dev environment properly so that I can run tests
> in
> > IntelliJ but a lot of them fail due to errors like this:
> >
> > "Caused by:
> > org.datanucleus.api.jdo.exceptions.ClassNotPersistenceCapableException:
> The
> > class "org.apache.hadoop.hive.metastore.model.MVersionTable" 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."
> >
> > I understand that this comes due to some stuff Datanucleus does behind
> the
> > scenes but I can't get that to work in IntelliJ even with the two
> available
> > Datanucleus plugins. They both seem to be unmaintained.
> >
> > So: Does anyone use IntelliJ and has all the tests running in it?
> >
> > I appreciate any pointers, thank you!
> >
> > Cheers,
> > Lars
> >
>