You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "amarnath reddy pappu (JIRA)" <ji...@apache.org> on 2019/01/02 22:54:00 UTC
[jira] [Created] (AMBARI-25080) Unable to install Hive service
amarnath reddy pappu created AMBARI-25080:
---------------------------------------------
Summary: Unable to install Hive service
Key: AMBARI-25080
URL: https://issues.apache.org/jira/browse/AMBARI-25080
Project: Ambari
Issue Type: Bug
Components: ambari-sever
Affects Versions: 2.7.1
Reporter: amarnath reddy pappu
Steps to reproduce the issue:
1. Install Ambari 2.7.1 and HDP3.0.1 with basic services
2. Enable the Kerberos for cluster.
3. Now try to add the Hive service. service installation would fail.
4. Finish the wizard and now try to start the service but it fails with below exception.
{noformat}
Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/HIVE/package/scripts/hive_metastore.py", line 201, in <module>
HiveMetastore().execute()
File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 351, in execute
method(env)
File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/HIVE/package/scripts/hive_metastore.py", line 55, in start
refresh_yarn()
File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/HIVE/package/scripts/hive.py", line 402, in refresh_yarn
Execute(params.yarn_kinit_cmd, user = params.yarn_user)
File "/usr/lib/ambari-agent/lib/resource_management/core/base.py", line 166, in __init__
self.env.run()
File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 160, in run
self.run_action(resource, action)
File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 124, in run_action
provider_action()
File "/usr/lib/ambari-agent/lib/resource_management/core/providers/system.py", line 263, in action_run
returns=self.resource.returns)
File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 72, in inner
result = function(command, **kwargs)
File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 102, in checked_call
tries=tries, try_sleep=try_sleep, timeout_kill_strategy=timeout_kill_strategy, returns=returns)
File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 150, in _call_wrapper
result = _call(command, **kwargs_copy)
File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 314, in _call
raise ExecutionFailed(err_msg, code, out, err)
resource_management.core.exceptions.ExecutionFailed: Execution of '/usr/bin/kinit -kt /etc/security/keytabs/yarn.service.keytab yarn/c2111-node3.hdp.com@HWX.COM;' returned 1. kinit: Client 'yarn/c2111-node3.hdp.com@HWX.COM' not found in Kerberos database while getting initial credentials
{noformat}
Basically during the installation stage one of the task fails with below exception and because of that it does not complete all the tasks that were part of the installation.
{noformat}
2019-01-02 22:36:32,560 INFO [Server Action Executor Worker 102] KerberosServerAction:432 - Processing identities...
2019-01-02 22:36:32,649 WARN [Server Action Executor Worker 102] ServerActionExecutor:471 - Task #102 failed to complete execution due to thrown exception: org.apache.ambari.server.HostNotFoundException:Host not found, hostname=c2111-node1.hdp.com
org.apache.ambari.server.HostNotFoundException: Host not found, hostname=c2111-node1.hdp.com
at org.apache.ambari.server.state.cluster.ClustersImpl.getHost(ClustersImpl.java:456)
at org.apache.ambari.server.state.ConfigHelper.getEffectiveDesiredTags(ConfigHelper.java:189)
at org.apache.ambari.server.state.ConfigHelper.getEffectiveDesiredTags(ConfigHelper.java:173)
at org.apache.ambari.server.controller.AmbariManagementControllerImpl.findConfigurationTagsWithOverrides(AmbariManagementControllerImpl.java:2354)
at sun.reflect.GeneratedMethodAccessor605.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:50)
at com.sun.proxy.$Proxy131.findConfigurationTagsWithOverrides(Unknown Source)
at org.apache.ambari.server.state.ConfigHelper.calculateExistingConfigurations(ConfigHelper.java:2158)
at org.apache.ambari.server.controller.KerberosHelperImpl.calculateConfigurations(KerberosHelperImpl.java:1727)
at org.apache.ambari.server.controller.KerberosHelperImpl.getActiveIdentities(KerberosHelperImpl.java:1802)
at org.apache.ambari.server.serveraction.kerberos.KerberosServerAction.calculateServiceIdentities(KerberosServerAction.java:507)
at org.apache.ambari.server.serveraction.kerberos.KerberosServerAction.processIdentities(KerberosServerAction.java:455)
at org.apache.ambari.server.serveraction.kerberos.CreatePrincipalsServerAction.execute(CreatePrincipalsServerAction.java:92)
at org.apache.ambari.server.serveraction.ServerActionExecutor$Worker.execute(ServerActionExecutor.java:550)
at org.apache.ambari.server.serveraction.ServerActionExecutor$Worker.run(ServerActionExecutor.java:466)
at java.lang.Thread.run(Thread.java:745)
{noformat}
so - here Ambari is expecting the Ambari server host also part of the cluster.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)