Skip to content

Commit 1d4af7d

Browse files
committed
readd schematool fix for 4.0.x
1 parent c8673ad commit 1d4af7d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

hive/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ elif [[ "${PRODUCT_VERSION}" == 4.0.* ]]; then
8484
# We only seem to get a .tar.gz archive, so let's extract that to the correct location
8585
tar --extract --directory=/stackable -f standalone-metastore/metastore-server/target/apache-hive-standalone-metastore-server-${NEW_VERSION}-bin.tar.gz
8686
mv standalone-metastore/metastore-server/target/bom.json /stackable/apache-hive-metastore-${NEW_VERSION}-bin/apache-hive-metastore-${NEW_VERSION}.cdx.json
87+
88+
# The schemaTool.sh is still pointing to the class location from Hive < 4.0.0, it seems like it was forgotten to update it
89+
sed -i -e 's/CLASS=org.apache.hadoop.hive.metastore.tools.MetastoreSchemaTool/CLASS=org.apache.hadoop.hive.metastore.tools.schematool.MetastoreSchemaTool/' /stackable/apache-hive-metastore-${NEW_VERSION}-bin/bin/ext/schemaTool.sh
8790
)
8891
else
8992
# Starting with 4.1.0 the build process changed again in https://github.com/apache/hive/pull/5936 (HIVE-29062)

0 commit comments

Comments
 (0)