abstractdog commented on PR #5859:
URL: https://github.com/apache/hive/pull/5859#issuecomment-2976206982

   > @abstractdog , what you said above is correct but as per my understanding, 
schematool will launch 1 jvm which will have embedded HS2 and HMS and based on 
the HS2 logs attached in the JIRA, it looks like user tried to ran the content 
of the _hive-schema-*.hive.sql_ from the beeline.
   > 
   > 1. I added `set -x` in `schematool.sh` and captured the classpath and 
captured
   >    `schematool -dbType hive -initSchema -metaDbType mysql` logs as well by 
adding
   >    `org.apache.hadoop.hive.ql.hooks.HiveProtologgingHook` in HiveConf.java 
(pre, post and failure hooks) itself to be picked up by embedded HS2 and HMS 
but still didn't receive NoClassDefFoundError. Attaching the same.
   > 
   > 
[schema_logs.txt](https://github.com/user-attachments/files/20712770/schema_logs.txt)
 
[classpath.txt](https://github.com/user-attachments/files/20712771/classpath.txt)
   > 
   > 2. Can you please share the steps to repro this issue in hive4 if possible?
   
   thanks for taking a look
   I can see this in the logs you attached:
   ```
   2025-06-12 21:28:38,225 ERROR hooks.HiveProtoLoggingHook: 
hive.hook.proto.base-directory is not set, logging disabled.
   ```
   


-- 
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