Hi @pragz
Not sure how you usually start HMS, but I would start with something like:
./bin/start-metastore >/var/tmp/hms-stdout.log 2>/var/tmp/hms-stderr.log
or
nohup ./bin/start-metastore >/var/tmp/hms-stdout.log 2>/var/tmp/hms-stderr.log &
to start in the background.
With that you should have a separate stdout and and stderr logfile.
If a process suddenly exits, usually it is because the OS killed it, so look in dmesg or messages if there is a sign for the oomkiller.
Also check your $HIVE_CONF_DIR/hive-log4j.properties is there and verify where the ordinary log4j based HMS logging messages are going.
Hope this helps.
Miklos