Skip to content

Commit 6afc47e

Browse files
committed
fixes & cleanup
1 parent 40cc57a commit 6afc47e

File tree

3 files changed

+39
-42
lines changed

3 files changed

+39
-42
lines changed

hive/Dockerfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,6 @@ USER ${STACKABLE_USER_UID}
236236
ENV HIVE_HOME=/stackable/hive-metastore
237237
ENV HADOOP_HOME=/stackable/hadoop
238238
ENV PATH="${PATH}:${HADOOP_HOME}/bin:${HIVE_HOME}/bin"
239-
#ENV CLASSPATH="${HADOOP_HOME}/lib/*:${HIVE_HOME}/lib/*:/stackable/auxlib/*:."
240-
#ENV CLASSPATH="${HADOOP_HOME}/lib/*:${HIVE_HOME}/lib/*:."
241-
#ENV HIVE_AUX_JARS_PATH="${HIVE_HOME}/auxlib/hms4-4.0.1-3.3.6-v1.0.0.jar"
242239

243240
# The following 2 env-vars are required for common hadoop scripts even if the respective libraries are never used.
244241
# We set them here to a sensible default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
From beabf57d974d85eaa0ffbd822e32a59b0781d42b Mon Sep 17 00:00:00 2001
2+
From: Malte Sander <malte.sander.it@gmail.com>
3+
Date: Mon, 24 Nov 2025 16:37:57 +0100
4+
Subject: Relocate jline to avoid depedency mess with hive schematool
5+
6+
---
7+
hms-v4/pom.xml | 19 +++++++++++++++++++
8+
1 file changed, 19 insertions(+)
9+
10+
diff --git a/hms-v4/pom.xml b/hms-v4/pom.xml
11+
index 4ebeac4..942fb94 100644
12+
--- a/hms-v4/pom.xml
13+
+++ b/hms-v4/pom.xml
14+
@@ -67,6 +67,25 @@
15+
</excludes>
16+
</filter>
17+
</filters>
18+
+ <!--
19+
+ ~ For Hive 4.0.1 the dependency loading is a mess. We explicitly shade jline to avoid the schematool using a wrong version:
20+
+ ~
21+
+ ~ Exception in thread "main" java.lang.NoSuchMethodError: 'void org.jline.reader.impl.completer.StringsCompleter.<init>(org.jline.reader.Candidate[])'
22+
+ ~ at sqlline.SqlLineOpts.setOptionCompleters(SqlLineOpts.java:160)
23+
+ ~ at sqlline.Application.getCommandHandlers(Application.java:294)
24+
+ ~ at sqlline.SqlLine$Config.<init>(SqlLine.java:1946)
25+
+ ~ at sqlline.SqlLine.setAppConfig(SqlLine.java:1875)
26+
+ ~ at sqlline.SqlLine.<init>(SqlLine.java:229)
27+
+ ~ at org.apache.hadoop.hive.metastore.tools.schematool.MetastoreSchemaTool.execSql(MetastoreSchemaTool.java:313)
28+
+ ~
29+
+ ~ This does not affect versions >= 4.1.x since the non shaded jar is used.
30+
+ -->
31+
+ <relocations>
32+
+ <relocation>
33+
+ <pattern>org.jline</pattern>
34+
+ <shadedPattern>com.bosch.bdps.jline</shadedPattern>
35+
+ </relocation>
36+
+ </relocations>
37+
</configuration>
38+
</execution>
39+
</executions>

hive/hive-metastore-opa-authorizer/stackable/patches/v1.0.0/0001-Shade-jline-explicitly.patch

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)