zhangbutao commented on code in PR #5980: URL: https://github.com/apache/hive/pull/5980#discussion_r2209713876
########## standalone-metastore/packaging/src/docker/Dockerfile: ########## @@ -67,15 +67,13 @@ ENV HADOOP_HOME=/opt/hadoop \ ENV PATH=$HIVE_HOME/bin:$HADOOP_HOME/bin:$PATH COPY entrypoint.sh / -COPY conf $HIVE_HOME/conf Review Comment: Yes, i know what you mean. The `docker logs -f` command is quite convenient for simple testing and viewing logs. However, in a real production environment, users typically persist the metastore logs locally for better log management. After this PR, log4j defaults to storing HMS logs in /tmp/hive/metastore.log. If users want to view the logs on the local host machine, they can mount the HMS logs to a local directory when starting the HMS Docker container. For example, using the command: `docker run -itd --name='hivehms' -v /data/hmslog:/tmp/hive apache/hive:standalone-metastore-4.1.0` Then, users can check the HMS logs in the local directory at `/data/hmslog/metastore.log`. -- 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