Return-Path: X-Original-To: apmail-ambari-user-archive@www.apache.org Delivered-To: apmail-ambari-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C3219188CC for ; Thu, 15 Oct 2015 17:52:58 +0000 (UTC) Received: (qmail 60843 invoked by uid 500); 15 Oct 2015 17:52:53 -0000 Delivered-To: apmail-ambari-user-archive@ambari.apache.org Received: (qmail 60814 invoked by uid 500); 15 Oct 2015 17:52:53 -0000 Mailing-List: contact user-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ambari.apache.org Delivered-To: mailing list user@ambari.apache.org Received: (qmail 60804 invoked by uid 99); 15 Oct 2015 17:52:53 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Oct 2015 17:52:53 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 219241809D2 for ; Thu, 15 Oct 2015 17:52:53 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.879 X-Spam-Level: ** X-Spam-Status: No, score=2.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id mws3PquRNXpQ for ; Thu, 15 Oct 2015 17:52:52 +0000 (UTC) Received: from mail-vk0-f41.google.com (mail-vk0-f41.google.com [209.85.213.41]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 133C442ABE for ; Thu, 15 Oct 2015 17:52:52 +0000 (UTC) Received: by vkex70 with SMTP id x70so47049778vke.3 for ; Thu, 15 Oct 2015 10:52:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Mt2ib0x1GfZFpoggznekrKUT85rlL7ebNmZ3lPGVzJ4=; b=SuLs+Qex20dphBXx1ooPZqTo+TgBCmIql48Tcd6mWh8bqsFr125T7OKoVGn+2gDUdy 7SzdCdlUATEVFTdArLhPm9Pa3qmkZVj7PdXVfGubvxFTHyPMDu5b0uHX6Mqwd8H+CWJo OpVX+m77T/vHY2gSxVpzCwRUDV0fGJjH7iyyWeat5D9ynQZX6T8HKgsVXgp3//3zK/Z5 iRHMS7qut0NsZXOz9PUt+LJstkqO95BlRxSb16Nrv/IRHnFfkZe6O/xxoS7dhJXwKwi5 G3fY6BiOhhmB6I1hAaxNVMfNnNese9bC/BAcaN1idZFKbGqMN/C4KlC1DpBY7CwibdG1 gsgg== MIME-Version: 1.0 X-Received: by 10.31.128.19 with SMTP id b19mr6967741vkd.70.1444931571625; Thu, 15 Oct 2015 10:52:51 -0700 (PDT) Received: by 10.31.4.67 with HTTP; Thu, 15 Oct 2015 10:52:51 -0700 (PDT) Date: Thu, 15 Oct 2015 10:52:51 -0700 Message-ID: Subject: Host substitution not happening within blueprint From: Stephen Boesch To: user@ambari.apache.org Content-Type: multipart/alternative; boundary=001a11429d4c0d3b4a05222859f0 --001a11429d4c0d3b4a05222859f0 Content-Type: text/plain; charset=UTF-8 Summary: the HOST_GROUP .. is not being substituted within the blueprint. I am wondering why and what the correct process would be. Details: We see the following template substitution error (i.e. it is not performed) in NameNode logs - which shows the blueprints are not setup/working correctly: 2015-10-13 17:58:49,101 INFO namenode.NameNode (NameNode.java:setClientNamenodeAddress(397)) - fs.defaultFS is *hdfs://%HOSTGROUP::nn_1%:8020* 2015-10-13 17:58:49,103 ERROR namenode.NameNode (NameNode.java:main(1571)) - Failed to start namenode. java.lang.IllegalArgumentException: Malformed escape pair at index 7: hdfs://%HOSTGROUP::nn_1%:8020 Here is the first portion of our blueprints: { "configurations" : [ { "core-site" : { "properties_attributes" : { "final" : { "fs.defaultFS" : "true", "ha.zookeeper.quorum" : "%HOSTGROUP::slave_zkfc%:2181,%HOSTGROUP::slave_zk%:2181" } }, "properties" : { "fs.defaultFS" : *"hdfs://%HOSTGROUP::nn_1%:8020",* "fs.trash.interval" : "360", Here is the hostgroup called nn_1 "host_groups" : [ { "name" : "nn_1", "configurations" : [ ], "components" : [ { "name" : "NAMENODE" }, { "name" : "HDFS_CLIENT" }, .. etc ], "cardinality" : "1" }, So why is the substitution not occurring? Thx! --001a11429d4c0d3b4a05222859f0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Summary: the HOST_GROUP .. <group_name> is not = being substituted within the blueprint. I am wondering why and what the cor= rect process would be.


Details:

We see the following template substitution error (i.e= . it is not performed) in NameNode logs - which shows the blueprints are no= t setup/working correctly:

2015-10-13 17:58:49,101 INFO = =C2=A0namenode.NameNode (NameNode.java:setClientNamenodeAddress(397)) - fs.= defaultFS is hdfs://%HOSTGROUP::nn_1%:8020

2015-10= -13 17:58:49,103 ERROR namenode.NameNode (NameNode.java:main(1571)) - Faile= d to start namenode.
java.lang.IllegalArgumentException: Malforme= d escape pair at index 7: hdfs://%HOSTGROUP::nn_1%:8020


Here is the first portion of our = blueprints:


{

=C2=A0 "configurations" : [

=C2=A0 =C2=A0 {

=C2=A0 =C2=A0 =C2=A0 "core-site" : {

=C2=A0 =C2=A0 =C2=A0 =C2=A0 "properties_attributes" : {<= /span>

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "final" : {

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "fs.defaultFS"= : "true",

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0"ha.zookeeper= .quorum" : "%HOSTGROUP::slave_zkfc%:2181,%HOSTGROUP::slave_zk%:21= 81"

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 }

=C2=A0 =C2=A0 =C2=A0 =C2=A0 },

=C2=A0 =C2=A0 =C2=A0 =C2=A0 "properties" : {

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "fs.defaultFS" : &= quot;hdfs://%HOSTGROUP::nn_1%:8020",

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "fs.trash.interval" := "360",


Here is the =C2=A0hostgroup called nn_1

= =C2=A0 "host_groups" : [

=C2=A0 =C2=A0 {

=C2=A0 = =C2=A0 =C2=A0 "name" : "nn_1",

=C2=A0 =C2=A0 =C2= =A0 "configurations" : [ ],

=C2=A0 =C2=A0 =C2=A0 "comp= onents" : [

=C2=A0 =C2=A0 =C2=A0 =C2=A0 {

=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 "name" : "NAMENODE"

=C2=A0 = =C2=A0 =C2=A0 =C2=A0 },

=C2=A0 =C2=A0 =C2=A0 =C2=A0 {

=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 "name" : "HDFS_CLIENT"

<= p>=C2=A0 =C2=A0 =C2=A0 =C2=A0 },

=C2=A0.. etc

=C2=A0=C2=A0 =C2= =A0 =C2=A0],

=C2=A0 =C2=A0 =C2=A0 "cardinality" : "= ;1"

=C2=A0 =C2=A0 },


So why is the substitution not occurring? Thx!

--001a11429d4c0d3b4a05222859f0--