Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yuqi1129 committed Mar 6, 2025
1 parent af416bf commit 8d455f2
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions dev/docker/hive/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8d455f2

Please sign in to comment.