ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alejandro Fernandez (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-14147) RU: Kafka broker restart failed on downgrade from HDP 2.3 to 2.2
Date Wed, 02 Dec 2015 01:06:10 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-14147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15035029#comment-15035029
] 

Alejandro Fernandez commented on AMBARI-14147:
----------------------------------------------

This happened because the code in kafka.py is comparing against params.hdp_stack_version (which
stays as HDP 2.3 during a downgrade) instead of params.version (which is the version either
upgrading or downgrading to).

> RU: Kafka broker restart failed on downgrade from HDP 2.3 to 2.2
> ----------------------------------------------------------------
>
>                 Key: AMBARI-14147
>                 URL: https://issues.apache.org/jira/browse/AMBARI-14147
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.1.3
>            Reporter: Alejandro Fernandez
>            Assignee: Alejandro Fernandez
>             Fix For: 2.1.3
>
>         Attachments: AMBARI-14147.trunk.patch
>
>
> ambari-server version: ambari-server-2.1.3.0-493
> ambari-server --hash: 498fa8d24b18c7a2e498675c060f83c6325a15fc
> HDP Version: 2.2.8.0-3150
> Kafka service
> Rolling Upgrade to 2.3.4.0-3335, then downgrade
> Kafka broker restart failed on downgrade. (Upgrade had no issues)
> {code}
> Traceback (most recent call last):
>   File \"/var/lib/ambari-agent/cache/common-services/KAFKA/0.8.1.2.2/package/scripts/kafka_broker.py\",
line 101, in <module>
>     KafkaBroker().execute()
>   File \"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py\",
line 217, in execute
>     method(env)
>   File \"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py\",
line 506, in restart
>     self.pre_upgrade_restart(env, upgrade_type=upgrade_type)
>   File \"/var/lib/ambari-agent/cache/common-services/KAFKA/0.8.1.2.2/package/scripts/kafka_broker.py\",
line 67, in pre_upgrade_restart
>     self.configure(env)
>   File \"/var/lib/ambari-agent/cache/common-services/KAFKA/0.8.1.2.2/package/scripts/kafka_broker.py\",
line 44, in configure
>     kafka()
>   File \"/var/lib/ambari-agent/cache/common-services/KAFKA/0.8.1.2.2/package/scripts/kafka.py\",
line 53, in kafka
>     listeners = kafka_server_config['listeners'].replace(\"localhost\", params.hostname)
> KeyError: 'listeners'",
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message