This is an automated email from the ASF dual-hosted git repository. yuqi4733 pushed a commit to branch fix_charset_problem in repository https://gitbox.apache.org/repos/asf/gravitino.git
commit 8d455f2bc0a924b6cc700bd7a6dbd5f2010dbef3 Author: yuqi <y...@datastrato.com> AuthorDate: Thu Mar 6 21:50:52 2025 +0800 fix --- dev/docker/hive/start.sh | 8 -------- 1 file changed, 8 deletions(-) diff --git a/dev/docker/hive/start.sh b/dev/docker/hive/start.sh index af389d0407..d6b4361402 100644 --- a/dev/docker/hive/start.sh +++ b/dev/docker/hive/start.sh @@ -167,14 +167,6 @@ echo """ CREATE DATABASE hive; """ | mysql --user=root --password=${MYSQL_PWD} - -# change charset - -set -i 's/CHARACTER SET latin1 COLLATE latin1_bin/CHARACTER SET utf8mb4 COLLATE utf8mb4_bin/g' ${HIVE_HOME}/scripts/metastore/upgrade/mysql/hive-schema-2.3.0.mysql.sql -set -i 's/CHARSET=latin1/CHARSET=utf8/g' ${HIVE_HOME}/scripts/metastore/upgrade/mysql/hive-schema-2.3.0.mysql.sql -set -i 's/varchar(4000)/text/g' ${HIVE_HOME}/scripts/metastore/upgrade/mysql/hive-schema-2.3.0.mysql.sql -set -i 's/varchar(767)/text/g' ${HIVE_HOME}/scripts/metastore/upgrade/mysql/hive-schema-2.3.0.mysql.sql - # start hive echo "Starting Hive..." ${HIVE_HOME}/bin/schematool -initSchema -dbType mysql