You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2019/02/11 07:54:05 UTC
[GitHub] fbocse opened a new issue #92: Gradle tests fail when env variable
`HIVE_HOME` is present
fbocse opened a new issue #92: Gradle tests fail when env variable `HIVE_HOME` is present
URL: https://github.com/apache/incubator-iceberg/issues/92
```
$ 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 (shell or just override it in code in setup method for hive/src/test/java/com/netflix/iceberg/hive/HiveTableBaseTest.java)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org