[
https://issues.apache.org/jira/browse/AMBARI-24203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16530341#comment-16530341
]
Hudson commented on AMBARI-24203:
---------------------------------
SUCCESS: Integrated in Jenkins build Ambari-trunk-Commit #9562 (See
[https://builds.apache.org/job/Ambari-trunk-Commit/9562/])
[AMBARI-24203] - Check for under-replicated partitions in Kafka service
(m.magyar3:
[https://gitbox.apache.org/repos/asf?p=ambari.git&a=commit&h=60e547502b49f07c1c29077e71eb5a231baddc9f])
* (edit)
ambari-server/src/main/resources/common-services/KAFKA/0.8.1/package/scripts/service_check.py
> Improve Kafka service check to check for under-replicated partitions
> --------------------------------------------------------------------
>
> Key: AMBARI-24203
> URL: https://issues.apache.org/jira/browse/AMBARI-24203
> Project: Ambari
> Issue Type: Bug
> Components: stacks
> Affects Versions: 2.7.0
> Reporter: Yolanda M. Davis
> Assignee: Yolanda M. Davis
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.7.0
>
> Time Spent: 1.5h
> Remaining Estimate: 0h
>
> During Ambari Rolling Upgrade, we invoke Kafka Service check to ensure that
> Kafka is healthy. The current implementation only does basic topic
> creation/deletion. We need to extend the implementation to check for number
> of under-replicated partitions.
> We have this support in kafka-topics.sh script which is already used in the
> kafka service check script. We need to extend above script to call below
> command
> {noformat}
> sh kafka-topics.sh --describe --zookeeper localhost:2181
> --under-replicated-partitions
> {noformat}
> If the command output is empty, then there are no under replicated partotions.
> If the output contains "Topic:" string, then there are some under replicated
> partitions, we can fail the service check.
> {noformat}
> sh kafka-topics.sh --describe --zookeeper localhost:2181
> --under-replicated-partitions
> Topic: TEST Partition: 0 Leader: 1 Replicas: 1,2 Isr: 1
> Topic: TEST Partition: 1 Leader: 1 Replicas: 2,1 Isr: 1{noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)