dengzhhu653 commented on code in PR #5629:
URL: https://github.com/apache/hive/pull/5629#discussion_r1946176463


##########
packaging/src/docker/entrypoint.sh:
##########
@@ -31,11 +31,19 @@ function initialize_hive {
   fi
   $HIVE_HOME/bin/schematool -dbType $DB_DRIVER $COMMAND $VERBOSE_MODE
   if [ $? -eq 0 ]; then
-    echo "Initialized schema successfully.."
+    echo "Initialized Hive Metastore Server schema successfully.."
   else
-    echo "Schema initialization failed!"
+    echo "Hive Metastore Server schema initialization failed!"
     exit 1
   fi
+  if [[ "${SERVICE_NAME:-}" == "hiveserver2" ]]; then
+      $HIVE_HOME/bin/schematool $COMMAND -dbType hive -metaDbType $DB_DRIVER 
-url jdbc:hive2://localhost:10000/default $VERBOSE_MODE
+      if [ $? -ne 0 ]; then
+        echo "Hive-Server 2 schema initialization failed!"

Review Comment:
   I would prefer the HiveServer2, the documentation is here: 
https://github.com/apache/hive-site/blob/main/themes/hive/layouts/partials/features.html#L40



-- 
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: gitbox-unsubscr...@hive.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org
For additional commands, e-mail: gitbox-h...@hive.apache.org

Reply via email to