Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C468918BF4 for ; Mon, 14 Dec 2015 18:04:21 +0000 (UTC) Received: (qmail 62565 invoked by uid 500); 14 Dec 2015 18:04:21 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 62528 invoked by uid 500); 14 Dec 2015 18:04:21 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 62512 invoked by uid 99); 14 Dec 2015 18:04:21 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Dec 2015 18:04:21 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id B665A294047; Mon, 14 Dec 2015 18:04:20 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============6439276119308722825==" MIME-Version: 1.0 Subject: Re: Review Request 41328: Express Upgrade: Kafka broker restart failed during EU from 2.2.9 to 2.3.2 with customized service user accounts From: "Dmitro Lisnichenko" To: "Alejandro Fernandez" , "Jayush Luniya" , "Nate Cole" , "Jonathan Hurley" Cc: "Ambari" Date: Mon, 14 Dec 2015 18:04:20 -0000 Message-ID: <20151214180420.19750.99934@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "Dmitro Lisnichenko" X-ReviewGroup: Ambari X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/41328/ X-Sender: "Dmitro Lisnichenko" References: <20151214164703.19750.80850@reviews.apache.org> In-Reply-To: <20151214164703.19750.80850@reviews.apache.org> Reply-To: "Dmitro Lisnichenko" X-ReviewRequest-Repository: ambari --===============6439276119308722825== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit > On Dec. 14, 2015, 6:47 p.m., Nate Cole wrote: > > ambari-server/src/main/resources/common-services/KAFKA/0.8.1.2.2/package/scripts/kafka.py, lines 243-245 > > > > > > The closing paren is out in no man's land. Can you put it after sudo=True please. Could probably all fit on one one. fixed. Not on 1 line due to 80-character limit - Dmitro ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/41328/#review110251 ----------------------------------------------------------- On Dec. 14, 2015, 8:02 p.m., Dmitro Lisnichenko wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/41328/ > ----------------------------------------------------------- > > (Updated Dec. 14, 2015, 8:02 p.m.) > > > Review request for Ambari, Alejandro Fernandez, Jonathan Hurley, Jayush Luniya, and Nate Cole. > > > Bugs: AMBARI-14362 > https://issues.apache.org/jira/browse/AMBARI-14362 > > > Repository: ambari > > > Description > ------- > > *Steps:* > Setup HDP 2.2.9 cluster with Ambari build #2.2.0.0-1281; the cluster has HA enabled and setup with customized service users for all services > Did EU from HDP 2.2.9 to 2.3.2.0 > > Result: > Observed during EU that Kakfa broker restart failed on all hosts with error: > > {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 > KafkaBroker().execute() > File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 218, in execute > method(env) > File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 496, in restart > self.stop(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 88, in stop > user=params.kafka_user, > File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 154, in __init__ > self.env.run() > File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 158, in run > self.run_action(resource, action) > File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 121, in run_action > provider_action() > File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 238, 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 291, in _call > raise Fail(err_msg) > resource_management.core.exceptions.Fail: Execution of 'source /usr/hdp/current/kafka-broker/config/kafka-env.sh; /usr/hdp/current/kafka-broker/bin/kafka stop' returned 1. Stopping Kafka [23359] /usr/hdp/current/kafka-broker/bin/kafka: line 110: /var/log/kafka/kafka.out: Permission denied > failed. > {code} > > The problem is likely due to custom service user being used for Kafka > > > Diffs > ----- > > ambari-common/src/main/python/resource_management/core/resources/system.py 83abc64 > ambari-server/src/main/resources/common-services/KAFKA/0.8.1.2.2/package/scripts/kafka.py a8bd9d5 > ambari-server/src/main/resources/common-services/KAFKA/0.8.1.2.2/package/scripts/kafka_broker.py 6fcf08a > ambari-server/src/test/python/stacks/2.2/KAFKA/test_kafka_broker.py 72cb050 > > Diff: https://reviews.apache.org/r/41328/diff/ > > > Testing > ------- > > mvn clean test + check on live cluster > > > Thanks, > > Dmitro Lisnichenko > > --===============6439276119308722825==--