You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by Vitalyi Brodetskyi <vb...@hortonworks.com> on 2015/02/20 14:17:24 UTC
Review Request 31225: Added HiveMetastore failed to start on secure
cluster
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/31225/
-----------------------------------------------------------
Review request for Ambari and Robert Levas.
Bugs: AMBARI-9723
https://issues.apache.org/jira/browse/AMBARI-9723
Repository: ambari
Description
-------
1.Go to secure cluster
2.Install Hive Metastore on some host
3.Try to start added Hive Metastore
{code}
2015-02-16 19:01:18,862 - Error while executing command 'start':
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 208, in execute
method(env)
File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_metastore.py", line 54, in start
hive_service('metastore', action = 'start')
File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_service.py", line 55, in hive_service
Execute(hive_kinit_cmd, user=params.hive_user)
File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 148, in __init__
self.env.run()
File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 152, in run
self.run_action(resource, action)
File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 118, in run_action
provider_action()
File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 276, in action_run
raise ex
Fail: Execution of '/usr/bin/kinit -kt /etc/security/keytabs/hive.service.keytab hive/c6402.ambari.apache.org@EXAMPLE.COM; ' returned 1. kinit: Keytab contains no suitable keys for hive/c6402.ambari.apache.org@EXAMPLE.COM while getting initial credentials
{code}
Looks like host - credentials mapping is wrong. In my case Hive Metastore originally was installed on c6402.ambari.apache.org. I got this fail when tried to install second one on c6401.ambari.apache.org
Diffs
-----
ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params.py c6bb3f2
ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_metastore.py ed936d0
ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_server.py 1fc3fbf
ambari-server/src/test/python/stacks/2.1/HIVE/test_hive_metastore.py c545e93
Diff: https://reviews.apache.org/r/31225/diff/
Testing
-------
mvn clean test
Thanks,
Vitalyi Brodetskyi
Re: Review Request 31225: Added HiveMetastore failed to start on
secure cluster
Posted by Robert Levas <rl...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/31225/#review73271
-----------------------------------------------------------
Ship it!
Ship It!
- Robert Levas
On Feb. 20, 2015, 8:17 a.m., Vitalyi Brodetskyi wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/31225/
> -----------------------------------------------------------
>
> (Updated Feb. 20, 2015, 8:17 a.m.)
>
>
> Review request for Ambari and Robert Levas.
>
>
> Bugs: AMBARI-9723
> https://issues.apache.org/jira/browse/AMBARI-9723
>
>
> Repository: ambari
>
>
> Description
> -------
>
> 1.Go to secure cluster
> 2.Install Hive Metastore on some host
> 3.Try to start added Hive Metastore
> {code}
> 2015-02-16 19:01:18,862 - Error while executing command 'start':
> Traceback (most recent call last):
> File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 208, in execute
> method(env)
> File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_metastore.py", line 54, in start
> hive_service('metastore', action = 'start')
> File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_service.py", line 55, in hive_service
> Execute(hive_kinit_cmd, user=params.hive_user)
> File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 148, in __init__
> self.env.run()
> File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 152, in run
> self.run_action(resource, action)
> File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 118, in run_action
> provider_action()
> File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 276, in action_run
> raise ex
> Fail: Execution of '/usr/bin/kinit -kt /etc/security/keytabs/hive.service.keytab hive/c6402.ambari.apache.org@EXAMPLE.COM; ' returned 1. kinit: Keytab contains no suitable keys for hive/c6402.ambari.apache.org@EXAMPLE.COM while getting initial credentials
> {code}
>
>
> Looks like host - credentials mapping is wrong. In my case Hive Metastore originally was installed on c6402.ambari.apache.org. I got this fail when tried to install second one on c6401.ambari.apache.org
>
>
> Diffs
> -----
>
> ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params.py c6bb3f2
> ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_metastore.py ed936d0
> ambari-server/src/test/python/stacks/2.0.6/HIVE/test_hive_server.py 1fc3fbf
> ambari-server/src/test/python/stacks/2.1/HIVE/test_hive_metastore.py c545e93
>
> Diff: https://reviews.apache.org/r/31225/diff/
>
>
> Testing
> -------
>
> mvn clean test
>
>
> Thanks,
>
> Vitalyi Brodetskyi
>
>