[
https://issues.apache.org/jira/browse/AMBARI-20145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15882786#comment-15882786
]
Balázs Bence Sári commented on AMBARI-20145:
--------------------------------------------
Issue occurs when Ranger is installed and the Ranger Kafka plugin is enabled.
In this case the Kafka broker needs to be able to write to HDFS during startup.
> Restart Kafka broker failed after enabling kerberos with "kinit(v5): No such
> file or directory while getting initial credentials"
> ---------------------------------------------------------------------------------------------------------------------------------
>
> Key: AMBARI-20145
> URL: https://issues.apache.org/jira/browse/AMBARI-20145
> Project: Ambari
> Issue Type: Bug
> Components: ambari-admin
> Affects Versions: 2.5.0
> Reporter: Kishor Ramakrishnan
> Priority: Blocker
> Labels: system_test
> Fix For: 2.5.0
>
> Attachments: AMBARI-20145-KafkaKerb-25_v1.patch
>
>
> Restart Kafka broker failed after enabling kerberos with "kinit(v5): No such
> file or directory while getting initial credentials"
> Note : hdfs.headless.keytab is missing on the Kafka broker host keytabs
> folder (/etc/security/keytabs)
> Traceback (most recent call last):
> File
> "/var/lib/ambari-agent/cache/common-services/KAFKA/0.8.1/package/scripts/kafka_broker.py",
> line 129, in <module>
> KafkaBroker().execute()
> File
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
> line 280, in execute
> method(env)
> File
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
> line 720, in restart
> self.start(env, upgrade_type=upgrade_type)
> File
> "/var/lib/ambari-agent/cache/common-services/KAFKA/0.8.1/package/scripts/kafka_broker.py",
> line 83, in start
> setup_ranger_kafka() #Ranger Kafka Plugin related call
> File
> "/var/lib/ambari-agent/cache/common-services/KAFKA/0.8.1/package/scripts/setup_ranger_kafka.py",
> line 41, in setup_ranger_kafka
> recursive_chmod=True
> 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/libraries/providers/hdfs_resource.py",
> line 459, in action_create_on_execute
> self.action_delayed("create")
> File
> "/usr/lib/python2.6/site-packages/resource_management/libraries/providers/hdfs_resource.py",
> line 456, in action_delayed
> self.get_hdfs_resource_executor().action_delayed(action_name, self)
> File
> "/usr/lib/python2.6/site-packages/resource_management/libraries/providers/hdfs_resource.py",
> line 240, in action_delayed
> main_resource.kinit()
> File
> "/usr/lib/python2.6/site-packages/resource_management/libraries/providers/hdfs_resource.py",
> line 487, in kinit
> user=user
> 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 70, in inner
> result = function(command, **kwargs)
> File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py",
> line 92, in checked_call
> tries=tries, try_sleep=try_sleep)
> File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py",
> line 140, in _call_wrapper
> result = _call(command, **kwargs_copy)
> File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py",
> line 293, in _call
> raise ExecutionFailed(err_msg, code, out, err)
> resource_management.core.exceptions.ExecutionFailed: Execution of
> '/usr/bin/kinit -kt /etc/security/keytabs/hdfs.headless.keytab
> [email protected]' returned 1. ######## Hortonworks #############
> This is MOTD message, added for testing in qe infra
> kinit(v5): No such file or directory while getting initial credentials
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)