hqbhoho commented on code in PR #8258:
URL: https://github.com/apache/gravitino/pull/8258#discussion_r2318439508
##########
integration-test-common/docker-script/init/hive/init.sh:
##########
@@ -19,4 +19,14 @@
IP=$(hostname -I | awk '{print $1}')
sed -i "s|<value>hdfs://__REPLACE__HOST_NAME:9000|<value>hdfs://${IP}:9000|g"
${HIVE_TMP_CONF_DIR}/hive-site.xml
-/bin/bash /usr/local/sbin/start.sh
+/bin/bash /usr/local/sbin/start.sh &
+
Review Comment:
The main purpose here is to perform the execution to create the relevant
tables which define in `init.sql`.
Run `/bin/bash /usr/local/sbin/start.sh` will block.
`/usr/local/sbin/start.sh` define end with:
```shell
# start hive
echo "Starting Hive..."
${HIVE_HOME}/bin/schematool -initSchema -dbType mysql
${HIVE_HOME}/bin/hive --service hiveserver2 > /dev/null 2>&1 &
${HIVE_HOME}/bin/hive --service metastore > /dev/null 2>&1 &
echo "Hive started successfully."
# persist the container
tail -f /dev/null
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]