Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Standalone Metastore shuts unexpectedly and can't find service file

avatar
New Contributor

I configured standalone metastore for presto but I cannot find a service file for it. In order to run metastore I have to run - 

./bin/start-metastore &>null &

This does not help as the metastore goes down unexpectedly in sometime

I can't find a hive-metastore service file as well 

I need to run metastore for presto

@mszurap Please let me know if u can help me with this

2 REPLIES 2

avatar
Community Manager

@pragz  Welcome to the Cloudera Community!

To help you get the best possible solution, I have tagged our Hive expert @mszurap  who may be able to assist you further.

Please keep us updated on your post, and we hope you find a satisfactory solution to your query.
 In the meantime, you can check some resources within our articles:  Hive Metastore validate issue


Regards,

Diana Torres,
Community Moderator


Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community:

avatar

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