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 00C4A18111 for ; Sun, 7 Jun 2015 13:09:24 +0000 (UTC) Received: (qmail 7609 invoked by uid 500); 7 Jun 2015 13:09:23 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 7574 invoked by uid 500); 7 Jun 2015 13:09:23 -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 7560 invoked by uid 99); 7 Jun 2015 13:09:23 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Jun 2015 13:09:23 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id C75DA1D550E; Sun, 7 Jun 2015 13:09:22 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============4414627833134087892==" MIME-Version: 1.0 Subject: Re: Review Request 35185: Oozie Web Alert Has Wrong http Property In Alert Definition From: "Nate Cole" To: "Alejandro Fernandez" , "Nate Cole" Cc: "Ambari" , "Jonathan Hurley" Date: Sun, 07 Jun 2015 13:09:22 -0000 Message-ID: <20150607130922.27735.8856@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "Nate Cole" X-ReviewGroup: Ambari X-ReviewRequest-URL: https://reviews.apache.org/r/35185/ X-Sender: "Nate Cole" References: <20150607023102.7997.31111@reviews.apache.org> In-Reply-To: <20150607023102.7997.31111@reviews.apache.org> Reply-To: "Nate Cole" X-ReviewRequest-Repository: ambari --===============4414627833134087892== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/35185/#review86963 ----------------------------------------------------------- Ship it! ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/alerts.json I realize not a part of this jira (and won't hold it up), but should user.name=oozie be user.name=\{\{oozie-env/oozie_user\}\} ? - Nate Cole On June 6, 2015, 10:31 p.m., Jonathan Hurley wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/35185/ > ----------------------------------------------------------- > > (Updated June 6, 2015, 10:31 p.m.) > > > Review request for Ambari, Alejandro Fernandez and Nate Cole. > > > Bugs: AMBARI-11749 > https://issues.apache.org/jira/browse/AMBARI-11749 > > > Repository: ambari > > > Description > ------- > > Deployed a clean HDP 2.2 cluster and noticed a 404 NOT FOUND alert for Oozie. The alert definition has the following: > > {code} > "http": "{{oozie-site/oozie.base.url}}/oozie/?user.name=oozie", > {code} > > However, {{oozie/site/oozie.base.url}} is {{http://server/oozie}} which makes the alert look for {{http://server/oozie/oozie?usern.name=oozie}} instead of {{http://server/oozie?user.name=oozie}} > > Either the alert definitions (in both 4.* and 5.* OOZIE folders) needs to change or the base url property needs to change. > > > Diffs > ----- > > ambari-server/src/main/java/org/apache/ambari/server/state/alert/AlertUri.java c337dec > ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog210.java 76cd0fc > ambari-server/src/main/resources/common-services/OOZIE/4.0.0.2.0/alerts.json a14f782 > ambari-server/src/main/resources/common-services/OOZIE/5.0.0.2.3/alerts.json d75d1b2 > ambari-server/src/main/resources/stacks/BIGTOP/0.8/services/OOZIE/alerts.json e57a4f8 > > Diff: https://reviews.apache.org/r/35185/diff/ > > > Testing > ------- > > mvn clean test > > Verified new oozie alert definition does not throw a 404 > > > Thanks, > > Jonathan Hurley > > --===============4414627833134087892==--