Hi Jim,
you need to enrich metastore classes with datanucleus as follows:

$ cd standalone-metastore/metastore-server && mvn datanucleus:enhance

Best regards,
Alessandro

On Sun, 13 Nov 2022 at 23:19, Jim Hopper <hopperj...@gmail.com> wrote:

> Hi,
>
> I try to debug one of the test classes in Intellij under linux.
> I have my metastore setup with mysql and I can build hive 3.1.3
> I build hive using: mvn clean install -DskipTests -P thriftif
> -Dthrift.home=/use/local
> but when I run debug in Intellij I get this error:
>
> javax.jdo.JDOException: Exception thrown when executing query : SELECT
> 'org.apache.hadoop.hive.metastore.model.MDatabase' AS
>
> `NUCLEUS_TYPE`,`A0`.`CTLG_NAME`,`A0`.`DESC`,`A0`.`DB_LOCATION_URI`,`A0`.`NAME`,`A0`.`OWNER_NAME`,`A0`.`OWNER_TYPE`,`A0`.`DB_ID`
> FROM `DBS` `A0` WHERE `A0`.`NAME` = ''
> at
>
> org.datanucleus.api.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:677)
> ~[datanucleus-api-jdo-4.2.4.jar:?]
> at org.datanucleus.api.jdo.JDOQuery.executeInternal(JDOQuery.java:391)
> ~[datanucleus-api-jdo-4.2.4.jar:?]
> at org.datanucleus.api.jdo.JDOQuery.execute(JDOQuery.java:216)
> ~[datanucleus-api-jdo-4.2.4.jar:?]
>
> is there any other step I miss?
>

Reply via email to