Skip to content

Just me or Gradle tests fail for iceberg-hive when env variable HIVE_HOME is present? #92

@fbocse

Description

@fbocse
$ hive --version
...
Hive 3.1.1
Git git://daijymacpro-2.local/Users/daijy/commit/hive -r f4e0529634b6231a0072295da48af466cf2f10b7
Compiled by daijy on Tue Oct 23 17:19:24 PDT 2018
From source with checksum 6deca5a8401bbb6c6b49898be6fcb80e

$ ls -las $HIVE_HOME
/usr/local/hive/current -> apache-hive-3.1.1-bin

$ which hive
/usr/local/hive/current/bin/hive

So when running ./gradlew test it starts yielding errors

> Task :iceberg-hive:test

com.netflix.iceberg.hive.HiveTablesTest > testFailure FAILED
    javax.jdo.JDOFatalInternalException at HiveTablesTest.java:43
        Caused by: java.lang.reflect.InvocationTargetException at HiveTablesTest.java:43
            Caused by: org.datanucleus.exceptions.NucleusException at HiveTablesTest.java:43
                Caused by: org.datanucleus.store.rdbms.connectionpool.DatastoreDriverNotFoundException at HiveTablesTest.java:43

com.netflix.iceberg.hive.HiveTablesTest > testExistingTableUpdate FAILED
    javax.jdo.JDOFatalInternalException at HiveTablesTest.java:43
        Caused by: java.lang.reflect.InvocationTargetException at HiveTablesTest.java:43
            Caused by: org.datanucleus.exceptions.NucleusException at HiveTablesTest.java:43
                Caused by: org.datanucleus.store.rdbms.connectionpool.DatastoreDriverNotFoundException at HiveTablesTest.java:43

com.netflix.iceberg.hive.HiveTablesTest > testConcurrentFastAppends FAILED
    javax.jdo.JDOFatalInternalException at HiveTablesTest.java:43
        Caused by: java.lang.reflect.InvocationTargetException at HiveTablesTest.java:43
            Caused by: org.datanucleus.exceptions.NucleusException at HiveTablesTest.java:43
                Caused by: org.datanucleus.store.rdbms.connectionpool.DatastoreDriverNotFoundException at HiveTablesTest.java:43

com.netflix.iceberg.hive.HiveTablesTest > testCreate FAILED
    javax.jdo.JDOFatalInternalException at HiveTablesTest.java:43
        Caused by: java.lang.reflect.InvocationTargetException at HiveTablesTest.java:43
            Caused by: org.datanucleus.exceptions.NucleusException at HiveTablesTest.java:43
                Caused by: org.datanucleus.store.rdbms.connectionpool.DatastoreDriverNotFoundException at HiveTablesTest.java:43

4 tests completed, 4 failed

FAILURE: Build failed with an exception.

Workaround:
Just set HIVE_HOME env var to empty string (fix in shell or just override it in code maybe setup method ?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions