[
https://issues.apache.org/jira/browse/AMBARI-22142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16192695#comment-16192695
]
Donal Madden commented on AMBARI-22142:
---------------------------------------
This issue was resolved locally by changing the user that runs the failing
smoke test to *hive* in
/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/alerts/alert_hive_metastore.py
and restarting all services.
It appears that when the smokeuser *ambari-qa* executes hive, the _hadoop
version_ command fails (works fine when executed by the *hive* user).
> Hive Metastore Process smoke test fails with critical error - reports
> "returned 5. Unable to determine Hadoop version information."
> -----------------------------------------------------------------------------------------------------------------------------------
>
> Key: AMBARI-22142
> URL: https://issues.apache.org/jira/browse/AMBARI-22142
> Project: Ambari
> Issue Type: Bug
> Components: test
> Affects Versions: 2.4.2
> Environment: CentOS 6.9
> Reporter: Donal Madden
>
> Description:
> Cluster install completes ok. However Hive Metastore Process smoke test
> continuously fails with the following stack trace:
> {code:shell}
> Metastore on hwx************.***-***-**.local failed (Traceback (most recent
> call last):
> File
> "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/alerts/alert_hive_metastore.py",
> line 198, in execute
> timeout=int(check_command_timeout) )
> File "/usr/lib/python2.6/site-packages/resource_management/core/base.py",
> line 155, in __init__
> self.env.run()
> File
> "/usr/lib/python2.6/site-packages/resource_management/core/environment.py",
> line 160, in run
> self.run_action(resource, action)
> File
> "/usr/lib/python2.6/site-packages/resource_management/core/environment.py",
> line 124, in run_action
> provider_action()
> File
> "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py",
> line 273, in action_run
> tries=self.resource.tries, try_sleep=self.resource.try_sleep)
> File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py",
> line 71, in inner
> result = function(command, **kwargs)
> File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py",
> line 93, in checked_call
> tries=tries, try_sleep=try_sleep)
> File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py",
> line 141, in _call_wrapper
> result = _call(command, **kwargs_copy)
> File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py",
> line 294, in _call
> raise Fail(err_msg)
> Fail: Execution of 'export
> HIVE_CONF_DIR='/usr/hdp/current/hive-metastore/conf/conf.server' ; hive
> --hiveconf hive.metastore.uris=thrift://hwx************.***-***-**.local:9083
> --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;'' returned 5. Unable to
> determine Hadoop version information.
> 'hadoop version' returned:
> Hadoop 2.7.3.2.5.0.0-1245 Subversion [email protected]:hortonworks/hadoop.git
> -r cb6e514b14fb60e9995e5ad9543315cd404b4e59 Compiled by jenkins on
> 2016-08-26T00:55Z Compiled with protoc 2.5.0 From source with checksum
> eba8ae32a1d8bb736a829d9dc18dddc2 This command was run using
> /usr/hdp/2.5.0.0-1245/hadoop/hadoop-common-2.7.3.2.5.0.0-1245.jar
> )
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)