Hive 2.1.0
See original GitHub issueI hope this helps anyone who wants to use Hiverunner with Hive 2.1.0. I had to make some modifications for the tool to work on 2.1.0:
- Did not work on Windows, I had to run on Linux (see #45 )
- Switched Metastore to embedded Derby
- set “datanucleus.schema.autoCreateAll” to “true”
- modify StandaloneHiveServerContext.java
//metaStorageUrl = "jdbc:hsqldb:mem:" + UUID.randomUUID().toString();
metaStorageUrl = "jdbc:derby:;databaseName=" + basedir.getRoot().getAbsolutePath() + "/metastore_db";
- Hive API change
- HiveServerContainer.java
21a22
> import org.apache.hadoop.hive.conf.HiveVariableSource;
23c24
< import org.apache.hadoop.hive.ql.parse.VariableSubstitution;
---
> import org.apache.hadoop.hive.conf.VariableSubstitution;
206c207,214
< return new VariableSubstitution();
---
> final SessionState ss = currentSessionState;
> return new VariableSubstitution(new HiveVariableSource() {
>
> @Override
> public Map<String, String> getHiveVariable() {
> return ss.getHiveVariables();
> }
> });
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Index of /dist/hive/hive-2.1.0
Index of /dist/hive/hive-2.1.0. Icon Name Last modified Size Description. [PARENTDIR] Parent Directory - [ ] apache-hive-2.1.0-bin.tar.gz 2016-06-21 01:26 ...
Read more >hive 2.1.0 | Dart Package - Pub.dev
Hive is a lightweight and blazing fast key-value database written in pure Dart. Inspired by Bitcask. Documentation & Samples #. If you need...
Read more >Central Repository: org/apache/hive/hive/2.1.0
org/apache/hive/hive/2.1.0 ../ hive-2.1.0-source-release.zip 2016-06-17 00:41 266367842 hive-2.1.0-source-release.zip.asc 2016-06-17 00:41 819 ...
Read more >org.apache.hive » hive » 2.1.0 - Maven Repository
Category/License Group / Artifact Version Updates
BSD 3‑clause com.esotericsoftware » kryo‑shaded 3.0.3 4.0.2
Apache 2.0 com.google.code.tempus‑fugit » tempus‑fugit 1.1 ✓
Core Utils Apache 2.0 com.google.guava »...
Read more >Apache Hadoop : Hive 2.1.0 install on Ubuntu 16.04 - 2020
Apache Hadoop : Hive 2.1.0 install on Ubuntu 16.04 ... bogotobogo.com site search: What is Hive? Apache Hive is considered the defacto standard...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi Per,
I am updating one of our hive metastore testing tools (https://github.com/HotelsDotCom/beeju) to use Hive 2.1.1 and I am seeing similar issues with HSQL DB looks like Hive doesn’t support it anymore due to transactions. We’re hitting this code in hive: https://github.com/apache/hive/blob/rel/release-2.1.1/metastore/src/java/org/apache/hadoop/hive/metastore/txn/TxnHandler.java#L1994
So we are considering going back to Derby as well, have you got any other recommendations?
Thanks, Patrick
Update, fyi: I’ve updated our project (BeeJU) to use derby in memory db (jdbc:derby:memory) so fairly similar to hsqldb I haven’t seen a slow down in test. But our project is a tiny one. Hopefully it won’t be a problem for HiveRunner.
We have tested the 4.0.0 release against Hive 2.3.3 and HIve 2.1.0. Admittedly we haven’t tested all Hive functionality but our test cases (in downstream projects) passed. So I’ve closed this, we can open new tickets if users report other things not working in 4.0.0