Support Questions
Find answers, ask questions, and share your expertise

Hive Metastore failure urgent help !!!!



Hive metastore is giving error.Tried restarting the Metsatore,Hive and the cluster also .Still the error is there .

Metastore on failed (Traceback (most recent call last): File "/var/lib/ambari-agent/cache/common-services/HIVE/", line 190, in execute timeout=int(check_command_timeout) ) File "/usr/lib/python2.6/site-packages/resource_management/core/", line 154, in __init__ File "/usr/lib/python2.6/site-packages/resource_management/core/", line 160, in run self.run_action(resource, action) File "/usr/lib/python2.6/site-packages/resource_management/core/", line 124, in run_action provider_action() File "/usr/lib/python2.6/site-packages/resource_management/core/providers/", line 238, in action_run tries=self.resource.tries, try_sleep=self.resource.try_sleep) File "/usr/lib/python2.6/site-packages/resource_management/core/", line 70, in inner result = function(command, **kwargs) File "/usr/lib/python2.6/site-packages/resource_management/core/", line 92, in checked_call tries=tries, try_sleep=try_sleep) File "/usr/lib/python2.6/site-packages/resource_management/core/", line 140, in _call_wrapper result = _call(command, **kwargs_copy) File "/usr/lib/python2.6/site-packages/resource_management/core/", line 285, in _call raise ExecuteTimeoutException(err_msg) ExecuteTimeoutException: Execution of ' su ambari-qa -l -s /bin/bash -c 'export PATH='"'"'/usr/sbin:/sbin:/usr/lib/ambari-server/*:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/tss/bin:/opt/tss/itrs:/opt/tss/post.d:/opt/VRTSvcs/bin:/opt/dell/srvadmin/bin:/opt/dell/srvadmin/sbin:/root/bin:/var/lib/ambari-agent:/bin/:/usr/bin/:/usr/sbin/:/usr/hdp/current/hive-metastore/bin'"'"' ; export HIVE_CONF_DIR='"'"'/usr/hdp/current/hive-metastore/conf/conf.server'"'"' ; hive --hiveconf hive.metastore.uris=thrift:// --hiveconf hive.metastore.client.connect.retry.delay=1 --hiveconf hive.metastore.failure.retries=1 --hiveconf hive.metastore.connect.retries=1 --hiveconf hive.metastore.client.socket.timeout=14 --hiveconf hive.execution.engine=mr -e '"'"'show databases;'"'"''' was killed due timeout after 60 seconds )

Any help appreciated

Thanks inadvance


could you please post hive metastore logs


check if the metastore is on : netstat -anpe | grep 9083 | grep LISTEN

you should have one line, if not then metastore is off.

Like @Rajkumar Singh said, then look or post at metastore logs (if you post then use the "code" tag please)


Hi All,

Looks like only my Hive Cli is not working .I am able to access Hive through beeline works file .Because the CLI is hanging Ambari is showing metastore critical.We dont have an option to use beeline cz all our code is written to use hive cli .

Any inputs.

@Rajkumar Singh

@Laurent Edel

@Shihab as per your comment you are getting metastore critical alert, could you please check metastore logs.


Do you have Tez jobs running in the setup for adhoc queries? Are the queues configured as documented here:

Using Tez with Hive Especially, the following:


If there are going to simultaneous connections, more queues need to be defined and each queue should have 2-5 sessions.