ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aonis...@apache.org
Subject ambari git commit: Revert "AMBARI-14447. Fix slider install failure and review comments for AMBARI-14430 (aonishuk)"
Date Mon, 21 Dec 2015 15:21:25 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk d4adc1a9f -> 901d6afca


Revert "AMBARI-14447. Fix slider install failure and review comments for AMBARI-14430 (aonishuk)"

This reverts commit 1ad5db19470ee28f5acd6cd7b6313174dedc0b6a.


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/901d6afc
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/901d6afc
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/901d6afc

Branch: refs/heads/trunk
Commit: 901d6afca459fa2d1bf66234f07b351f78266413
Parents: d4adc1a
Author: Andrew Onishuk <aonishuk@hortonworks.com>
Authored: Mon Dec 21 17:20:56 2015 +0200
Committer: Andrew Onishuk <aonishuk@hortonworks.com>
Committed: Mon Dec 21 17:20:56 2015 +0200

----------------------------------------------------------------------
 .../resource_management/TestPackagesAnalyzer.py | 40 ---------
 .../libraries/functions/hdp_select.py           | 19 -----
 .../libraries/script/script.py                  | 58 ++++++-------
 .../custom_actions/scripts/install_packages.py  |  4 +-
 .../stacks/HDP/2.2/services/FALCON/metainfo.xml |  4 +-
 .../stacks/HDP/2.2/services/FLUME/metainfo.xml  |  4 +-
 .../stacks/HDP/2.2/services/HBASE/metainfo.xml  |  8 +-
 .../stacks/HDP/2.2/services/HDFS/metainfo.xml   | 40 ++++-----
 .../stacks/HDP/2.2/services/HIVE/metainfo.xml   | 26 +++---
 .../stacks/HDP/2.2/services/KAFKA/metainfo.xml  |  4 +-
 .../stacks/HDP/2.2/services/KNOX/metainfo.xml   |  4 +-
 .../stacks/HDP/2.2/services/OOZIE/metainfo.xml  |  8 +-
 .../stacks/HDP/2.2/services/PIG/metainfo.xml    |  4 +-
 .../stacks/HDP/2.2/services/RANGER/metainfo.xml |  8 +-
 .../stacks/HDP/2.2/services/SLIDER/metainfo.xml |  8 +-
 .../stacks/HDP/2.2/services/SPARK/metainfo.xml  |  8 +-
 .../stacks/HDP/2.2/services/SQOOP/metainfo.xml  |  4 +-
 .../stacks/HDP/2.2/services/STORM/metainfo.xml  |  4 +-
 .../stacks/HDP/2.2/services/TEZ/metainfo.xml    |  4 +-
 .../stacks/HDP/2.2/services/YARN/metainfo.xml   | 14 ++--
 .../HDP/2.3/services/ACCUMULO/metainfo.xml      |  4 +-
 .../stacks/HDP/2.3/services/ATLAS/metainfo.xml  |  4 +-
 .../stacks/HDP/2.3/services/HDFS/metainfo.xml   | 71 ----------------
 .../stacks/HDP/2.3/services/HIVE/metainfo.xml   | 86 --------------------
 .../stacks/HDP/2.3/services/OOZIE/metainfo.xml  |  8 +-
 .../stacks/HDP/2.3/services/PIG/metainfo.xml    |  8 +-
 .../HDP/2.3/services/RANGER_KMS/metainfo.xml    |  4 +-
 .../HDP/2.3/services/ZOOKEEPER/metainfo.xml     |  8 +-
 .../custom_actions/TestInstallPackages.py       |  6 +-
 .../configs/install_packages_config.json        |  4 +-
 30 files changed, 129 insertions(+), 347 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/901d6afc/ambari-agent/src/test/python/resource_management/TestPackagesAnalyzer.py
----------------------------------------------------------------------
diff --git a/ambari-agent/src/test/python/resource_management/TestPackagesAnalyzer.py b/ambari-agent/src/test/python/resource_management/TestPackagesAnalyzer.py
deleted file mode 100644
index d9ddb38..0000000
--- a/ambari-agent/src/test/python/resource_management/TestPackagesAnalyzer.py
+++ /dev/null
@@ -1,40 +0,0 @@
-'''
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  The ASF licenses this file
-to you under the Apache License, Version 2.0 (the
-"License"); you may not use this file except in compliance
-with the License.  You may obtain a copy of the License at
-
-   http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-'''
-from unittest import TestCase
-from mock.mock import patch, MagicMock, call
-from ambari_commons.os_check import OSCheck
-from resource_management.libraries.functions import packages_analyzer
-
-class TestPackagesAnalyzer(TestCase):
-  @patch("resource_management.libraries.functions.packages_analyzer.rmf_shell.checked_call")
-  @patch.object(OSCheck, "is_ubuntu_family")
-  def test_get_installed_package_version_ubuntu(self, is_ubuntu_family_mock, checked_call_mock):
-    is_ubuntu_family_mock.return_value = True
-    checked_call_mock.return_value = (0, '1.2.3','')
-    result = packages_analyzer.getInstalledPackageVersion("package1")
-    self.assertEqual(result, '1.2.3')
-    self.assertEqual(checked_call_mock.call_args_list, [call("dpkg -s package1 | grep Version | awk '{print $2}'", stderr=-1)])
-    
-  @patch("resource_management.libraries.functions.packages_analyzer.rmf_shell.checked_call")
-  @patch.object(OSCheck, "is_ubuntu_family")
-  def test_get_installed_package_version_centos_suse(self, is_ubuntu_family_mock, checked_call_mock):
-    is_ubuntu_family_mock.return_value = False
-    checked_call_mock.return_value = (0, '0.0.1-SNAPSHOT','')
-    result = packages_analyzer.getInstalledPackageVersion("package1")
-    self.assertEqual(result, '0.0.1-SNAPSHOT')
-    self.assertEqual(checked_call_mock.call_args_list, [call("rpm -q --queryformat '%{version}-%{release}' package1 | sed -e 's/\\.el[0-9]//g'", stderr=-1)])
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ambari/blob/901d6afc/ambari-common/src/main/python/resource_management/libraries/functions/hdp_select.py
----------------------------------------------------------------------
diff --git a/ambari-common/src/main/python/resource_management/libraries/functions/hdp_select.py b/ambari-common/src/main/python/resource_management/libraries/functions/hdp_select.py
index 5de9602..5628f33 100644
--- a/ambari-common/src/main/python/resource_management/libraries/functions/hdp_select.py
+++ b/ambari-common/src/main/python/resource_management/libraries/functions/hdp_select.py
@@ -20,7 +20,6 @@ limitations under the License.
 
 import os
 import sys
-import re
 from resource_management.core.logger import Logger
 from resource_management.core.exceptions import Fail
 from resource_management.core.resources.system import Execute
@@ -264,21 +263,3 @@ def get_hdp_versions(stack_root):
   if not versions:
     versions = get_versions_from_stack_root(stack_root)
   return versions
-
-def get_hdp_version_before_install(component_name):
-  """
-  Works in the similar way to 'hdp-select status component', 
-  but also works for not yet installed packages.
-  
-  Note: won't work if doing initial install.
-  """
-  component_dir = HADOOP_HOME_DIR_TEMPLATE.format("current", component_name)
-  if os.path.islink(component_dir):
-    hdp_version = os.path.basename(os.path.dirname(os.readlink(component_dir)))
-    match = re.match('[0-9]+.[0-9]+.[0-9]+.[0-9]+-[0-9]+', hdp_version)
-    if match is None:
-      Logger.info('Failed to get extracted version with hdp-select in method get_hdp_version_before_install')
-      return None # lazy fail
-    return hdp_version
-  else:
-    return None

http://git-wip-us.apache.org/repos/asf/ambari/blob/901d6afc/ambari-common/src/main/python/resource_management/libraries/script/script.py
----------------------------------------------------------------------
diff --git a/ambari-common/src/main/python/resource_management/libraries/script/script.py b/ambari-common/src/main/python/resource_management/libraries/script/script.py
index 7101386..3deb7a6 100644
--- a/ambari-common/src/main/python/resource_management/libraries/script/script.py
+++ b/ambari-common/src/main/python/resource_management/libraries/script/script.py
@@ -70,7 +70,7 @@ USAGE = """Usage: {0} <COMMAND> <JSON_CONFIG> <BASEDIR> <STROUTPUT> <LOGGING_LEV
 
 _PASSWORD_MAP = {"/configurations/cluster-env/hadoop.user.name":"/configurations/cluster-env/hadoop.user.password"}
 DISTRO_SELECT_PACKAGE_NAME = "hdp-select"
-STACK_VERSION_PLACEHOLDER = "${stack_version}"
+HDP_VERSION_PLACEHOLDER = "${hdp_version}"
 
 def get_path_from_configuration(name, configuration):
   subdicts = filter(None, name.split('/'))
@@ -97,7 +97,7 @@ class Script(object):
   3 path to service metadata dir (Directory "package" inside service directory)
   4 path to file with structured command output (file will be created)
   """
-  stack_version_from_distro_select = None
+  stack_version_from_hdp_select = None
   structuredOut = {}
   command_data_file = ""
   basedir = ""
@@ -142,26 +142,17 @@ class Script(object):
         json.dump(Script.structuredOut, fp)
     except IOError, err:
       Script.structuredOut.update({"errMsg" : "Unable to write to " + self.stroutfile})
-      
-  def get_component_name(self):
-    stack_name = Script.get_stack_name()
-    stack_to_component = self.get_stack_to_component()
-    
-    if stack_to_component and stack_name:
-      component_name = stack_to_component[stack_name] if stack_name in stack_to_component else None
-      return component_name
-    
-    return None
 
   def save_component_version_to_structured_out(self):
     """
     :param stack_name: One of HDP, HDPWIN, PHD, BIGTOP.
     :return: Append the version number to the structured out.
     """
-    stack_name = Script.get_stack_name()
-    component_name = self.get_component_name()
-    
-    if component_name and stack_name:
+    from resource_management.libraries.functions.default import default
+    stack_name = default("/hostLevelParams/stack_name", None)
+    stack_to_component = self.get_stack_to_component()
+    if stack_to_component and stack_name:
+      component_name = stack_to_component[stack_name] if stack_name in stack_to_component else None
       component_version = get_component_version(stack_name, component_name)
 
       if component_version:
@@ -249,36 +240,34 @@ class Script(object):
     method = getattr(self, command_name)
     return method
   
-  def get_stack_version_before_packages_installed(self):
+  @staticmethod
+  def get_stack_version_from_hdp_select():
     """
     This works in a lazy way (calculates the version first time and stores it). 
     If you need to recalculate the version explicitly set:
     
-    Script.stack_version_from_distro_select = None
+    Script.stack_version_from_hdp_select = None
     
     before the call. However takes a bit of time, so better to avoid.
-
+    
+    :param install_hdp_select: whether to ensure if hdp-select is installed, before checking the version.
+    Set this to false, if you're sure hdp-select is present at the point you call this, to save some time.
+    
     :return: hdp version including the build number. e.g.: 2.3.4.0-1234.
     """
-    # preferred way is to get the actual selected version of current component
-    component_name = self.get_component_name()
-    if not Script.stack_version_from_distro_select and component_name:
-      from resource_management.libraries.functions import hdp_select
-      Script.stack_version_from_distro_select = hdp_select.get_hdp_version_before_install(component_name)
+    if not Script.stack_version_from_hdp_select:
+      Script.stack_version_from_hdp_select = packages_analyzer.getInstalledPackageVersion(DISTRO_SELECT_PACKAGE_NAME)
       
-    # if hdp-select has not yet been done (situations like first install), we can use hdp-select version itself.
-    if not Script.stack_version_from_distro_select:
-      Script.stack_version_from_distro_select = packages_analyzer.getInstalledPackageVersion(DISTRO_SELECT_PACKAGE_NAME)
-      
-    return Script.stack_version_from_distro_select
+    return Script.stack_version_from_hdp_select
   
-  def format_package_name(self, name):
+  @staticmethod
+  def format_package_name(name):
     """
-    This function replaces ${stack_version} placeholder into actual version.
+    This function replaces ${hdp_version} placeholder into actual version.
     """
     package_delimiter = '-' if OSCheck.is_ubuntu_family() else '_'
-    stack_version_package_formatted = self.get_stack_version_before_packages_installed().replace('.', package_delimiter).replace('-', package_delimiter) if STACK_VERSION_PLACEHOLDER in name else name
-    package_name = name.replace(STACK_VERSION_PLACEHOLDER, stack_version_package_formatted)
+    hdp_version_package_formatted = Script.get_stack_version_from_hdp_select().replace('.', package_delimiter).replace('-', package_delimiter) if HDP_VERSION_PLACEHOLDER in name else name
+    package_name = name.replace(HDP_VERSION_PLACEHOLDER, hdp_version_package_formatted)
     
     return package_name
 
@@ -442,8 +431,9 @@ class Script(object):
       if isinstance(package_list_str, basestring) and len(package_list_str) > 0:
         package_list = json.loads(package_list_str)
         for package in package_list:
+          #import pydevd;pydevd.settrace(host='192.168.64.1',stdoutToServer=True, stderrToServer=True)
           if not Script.matches_any_regexp(package['name'], exclude_packages):
-            name = self.format_package_name(package['name'])
+            name = Script.format_package_name(package['name'])
             # HACK: On Windows, only install ambari-metrics packages using Choco Package Installer
             # TODO: Update this once choco packages for hadoop are created. This is because, service metainfo.xml support
             # <osFamily>any<osFamily> which would cause installation failure on Windows.

http://git-wip-us.apache.org/repos/asf/ambari/blob/901d6afc/ambari-server/src/main/resources/custom_actions/scripts/install_packages.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/custom_actions/scripts/install_packages.py b/ambari-server/src/main/resources/custom_actions/scripts/install_packages.py
index b1b4496..6b1c7f3 100644
--- a/ambari-server/src/main/resources/custom_actions/scripts/install_packages.py
+++ b/ambari-server/src/main/resources/custom_actions/scripts/install_packages.py
@@ -342,9 +342,9 @@ class InstallPackages(Script):
       packages_were_checked = True
       filtered_package_list = self.filter_package_list(package_list)
       for package in filtered_package_list:
-        name = self.format_package_name(package['name'])
+        name = Script.format_package_name(package['name'])
         Package(name
-        # action="upgrade" # should we use "upgrade" action here, to upgrade not versioned packages?       
+        # action="upgrade" - should we user ugrade action here? to updated not versioned packages?       
         )
     except Exception, err:
       ret_code = 1

http://git-wip-us.apache.org/repos/asf/ambari/blob/901d6afc/ambari-server/src/main/resources/stacks/HDP/2.2/services/FALCON/metainfo.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.2/services/FALCON/metainfo.xml b/ambari-server/src/main/resources/stacks/HDP/2.2/services/FALCON/metainfo.xml
index 77b593b..e0e4c63 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.2/services/FALCON/metainfo.xml
+++ b/ambari-server/src/main/resources/stacks/HDP/2.2/services/FALCON/metainfo.xml
@@ -27,7 +27,7 @@
           <osFamily>redhat7,redhat6,suse11</osFamily>
           <packages>
             <package>
-              <name>falcon_${stack_version}</name>
+              <name>falcon_${hdp_version}</name>
             </package>
           </packages>
         </osSpecific>
@@ -35,7 +35,7 @@
           <osFamily>debian7,ubuntu12,ubuntu14</osFamily>
           <packages>
             <package>
-              <name>falcon-${stack_version}</name>
+              <name>falcon-${hdp_version}</name>
             </package>
           </packages>
         </osSpecific>

http://git-wip-us.apache.org/repos/asf/ambari/blob/901d6afc/ambari-server/src/main/resources/stacks/HDP/2.2/services/FLUME/metainfo.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.2/services/FLUME/metainfo.xml b/ambari-server/src/main/resources/stacks/HDP/2.2/services/FLUME/metainfo.xml
index 48368ea..8d53e96 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.2/services/FLUME/metainfo.xml
+++ b/ambari-server/src/main/resources/stacks/HDP/2.2/services/FLUME/metainfo.xml
@@ -29,7 +29,7 @@
           <osFamily>redhat7,redhat6,suse11</osFamily>
           <packages>
             <package>
-              <name>flume_${stack_version}</name>
+              <name>flume_${hdp_version}</name>
             </package>
           </packages>
         </osSpecific>
@@ -37,7 +37,7 @@
           <osFamily>debian7,ubuntu12,ubuntu14</osFamily>
           <packages>
             <package>
-              <name>flume-${stack_version}</name>
+              <name>flume-${hdp_version}</name>
             </package>
           </packages>
         </osSpecific>

http://git-wip-us.apache.org/repos/asf/ambari/blob/901d6afc/ambari-server/src/main/resources/stacks/HDP/2.2/services/HBASE/metainfo.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.2/services/HBASE/metainfo.xml b/ambari-server/src/main/resources/stacks/HDP/2.2/services/HBASE/metainfo.xml
index d80b5d1..ccefaf2 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.2/services/HBASE/metainfo.xml
+++ b/ambari-server/src/main/resources/stacks/HDP/2.2/services/HBASE/metainfo.xml
@@ -28,10 +28,10 @@
           <osFamily>redhat7,redhat6,suse11</osFamily>
           <packages>
             <package>
-              <name>hbase_${stack_version}</name>
+              <name>hbase_${hdp_version}</name>
             </package>
             <package>
-              <name>phoenix_${stack_version}</name>
+              <name>phoenix_${hdp_version}</name>
             </package>
           </packages>
         </osSpecific>
@@ -39,10 +39,10 @@
           <osFamily>debian7,ubuntu12,ubuntu14</osFamily>
           <packages>
             <package>
-              <name>hbase-${stack_version}</name>
+              <name>hbase-${hdp_version}</name>
             </package>
             <package>
-              <name>phoenix-${stack_version}</name>
+              <name>phoenix-${hdp_version}</name>
             </package>
           </packages>
         </osSpecific>

http://git-wip-us.apache.org/repos/asf/ambari/blob/901d6afc/ambari-server/src/main/resources/stacks/HDP/2.2/services/HDFS/metainfo.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.2/services/HDFS/metainfo.xml b/ambari-server/src/main/resources/stacks/HDP/2.2/services/HDFS/metainfo.xml
index ca4b5c5..f524685 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.2/services/HDFS/metainfo.xml
+++ b/ambari-server/src/main/resources/stacks/HDP/2.2/services/HDFS/metainfo.xml
@@ -22,13 +22,20 @@
       <name>HDFS</name>
       <displayName>HDFS</displayName>
       <version>2.6.0.2.2</version>
-
       <osSpecifics>
         <osSpecific>
-          <osFamily>redhat6,suse11</osFamily>
+          <osFamily>any</osFamily>
+          <packages>
+            <package>
+              <name>rpcbind</name>
+            </package>
+          </packages>
+        </osSpecific>
+        <osSpecific>
+          <osFamily>redhat7,redhat6,suse11</osFamily>
           <packages>
             <package>
-              <name>hadoop_${stack_version}</name>
+              <name>hadoop_${hdp_version}</name>
             </package>
             <package>
               <name>snappy</name>
@@ -41,34 +48,34 @@
               <skipUpgrade>true</skipUpgrade>
             </package>
             <package>
-              <name>hadooplzo_${stack_version}</name>
+              <name>hadooplzo_${hdp_version}</name>
             </package>
             <package>
-              <name>hadoop_${stack_version}-libhdfs</name>
+              <name>hadoop_${hdp_version}-libhdfs</name>
             </package>
           </packages>
         </osSpecific>
 
         <osSpecific>
-          <osFamily>ubuntu12</osFamily>
+          <osFamily>debian7,ubuntu12,ubuntu14</osFamily>
           <packages>
             <package>
-              <name>hadoop-${stack_version}-client</name>
+              <name>hadoop-${hdp_version}-client</name>
             </package>
             <package>
-              <name>hadoop-${stack_version}-hdfs-datanode</name>
+              <name>hadoop-${hdp_version}-hdfs-datanode</name>
             </package>
             <package>
-              <name>hadoop-${stack_version}-hdfs-journalnode</name>
+              <name>hadoop-${hdp_version}-hdfs-journalnode</name>
             </package>
             <package>
-              <name>hadoop-${stack_version}-hdfs-namenode</name>
+              <name>hadoop-${hdp_version}-hdfs-namenode</name>
             </package>
             <package>
-              <name>hadoop-${stack_version}-hdfs-secondarynamenode</name>
+              <name>hadoop-${hdp_version}-hdfs-secondarynamenode</name>
             </package>
             <package>
-              <name>hadoop-${stack_version}-hdfs-zkfc</name>
+              <name>hadoop-${hdp_version}-hdfs-zkfc</name>
             </package>
             <package>
               <name>libsnappy1</name>
@@ -77,19 +84,14 @@
               <name>libsnappy-dev</name>
             </package>
             <package>
-              <name>hadooplzo-${stack_version}</name>
-            </package>
-            <package>
-              <name>liblzo2-2</name>
-              <skipUpgrade>true</skipUpgrade>
+              <name>hadooplzo-${hdp_version}</name>
             </package>
             <package>
-              <name>libhdfs0-${stack_version}</name>
+              <name>libhdfs0-${hdp_version}</name>
             </package>
           </packages>
         </osSpecific>
       </osSpecifics>
-      
       <themes>
           <theme>
               <fileName>theme.json</fileName>

http://git-wip-us.apache.org/repos/asf/ambari/blob/901d6afc/ambari-server/src/main/resources/stacks/HDP/2.2/services/HIVE/metainfo.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.2/services/HIVE/metainfo.xml b/ambari-server/src/main/resources/stacks/HDP/2.2/services/HIVE/metainfo.xml
index ba87d8e..9d97946 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.2/services/HIVE/metainfo.xml
+++ b/ambari-server/src/main/resources/stacks/HDP/2.2/services/HIVE/metainfo.xml
@@ -55,7 +55,7 @@
         </component>
 
       </components>
-      
+
       <osSpecifics>
         <osSpecific>
           <osFamily>any</osFamily>
@@ -67,16 +67,19 @@
           </packages>
         </osSpecific>
         <osSpecific>
-          <osFamily>redhat6,redhat7,suse11</osFamily>
+          <osFamily>redhat7,redhat6,suse11</osFamily>
           <packages>
             <package>
-              <name>hive_${stack_version}</name>
+              <name>hive_${hdp_version}</name>
+            </package>
+            <package>
+              <name>hive_${hdp_version}-hcatalog</name>
             </package>
             <package>
-              <name>hive_${stack_version}-hcatalog</name>
+              <name>hive_${hdp_version}-webhcat</name>
             </package>
             <package>
-              <name>hive_${stack_version}-webhcat</name>
+              <name>atlas-metadata_${hdp_version}-hive-plugin</name>
             </package>
           </packages>
         </osSpecific>
@@ -103,21 +106,24 @@
           </packages>
         </osSpecific>
         <osSpecific>
-          <osFamily>ubuntu12</osFamily>
+          <osFamily>debian7,ubuntu12,ubuntu14</osFamily>
           <packages>
             <package>
-              <name>hive-${stack_version}</name>
+              <name>hive-${hdp_version}</name>
+            </package>
+            <package>
+              <name>hive-${hdp_version}-hcatalog</name>
             </package>
             <package>
-              <name>hive-${stack_version}-hcatalog</name>
+              <name>hive-${hdp_version}-webhcat</name>
             </package>
             <package>
-              <name>hive-${stack_version}-webhcat</name>
+              <name>atlas-metadata-${hdp_version}-hive-plugin</name>
             </package>
           </packages>
         </osSpecific>
         <osSpecific>
-          <osFamily>redhat6,ubuntu12</osFamily>
+          <osFamily>redhat6,debian7,ubuntu12,ubuntu14</osFamily>
           <packages>
             <package>
               <name>mysql-server</name>

http://git-wip-us.apache.org/repos/asf/ambari/blob/901d6afc/ambari-server/src/main/resources/stacks/HDP/2.2/services/KAFKA/metainfo.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.2/services/KAFKA/metainfo.xml b/ambari-server/src/main/resources/stacks/HDP/2.2/services/KAFKA/metainfo.xml
index 3268665..78b3021 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.2/services/KAFKA/metainfo.xml
+++ b/ambari-server/src/main/resources/stacks/HDP/2.2/services/KAFKA/metainfo.xml
@@ -26,7 +26,7 @@
           <osFamily>redhat7,redhat6,suse11</osFamily>
           <packages>
             <package>
-              <name>kafka_${stack_version}</name>
+              <name>kafka_${hdp_version}</name>
             </package>
           </packages>
         </osSpecific>
@@ -34,7 +34,7 @@
           <osFamily>debian7,ubuntu12,ubuntu14</osFamily>
           <packages>
             <package>
-              <name>kafka-${stack_version}</name>
+              <name>kafka-${hdp_version}</name>
             </package>
           </packages>
         </osSpecific>

http://git-wip-us.apache.org/repos/asf/ambari/blob/901d6afc/ambari-server/src/main/resources/stacks/HDP/2.2/services/KNOX/metainfo.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.2/services/KNOX/metainfo.xml b/ambari-server/src/main/resources/stacks/HDP/2.2/services/KNOX/metainfo.xml
index 22b1be4..1b97334 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.2/services/KNOX/metainfo.xml
+++ b/ambari-server/src/main/resources/stacks/HDP/2.2/services/KNOX/metainfo.xml
@@ -26,7 +26,7 @@
           <osFamily>redhat7,redhat6,suse11</osFamily>
           <packages>
             <package>
-              <name>knox_${stack_version}</name>
+              <name>knox_${hdp_version}</name>
             </package>
           </packages>
         </osSpecific>
@@ -34,7 +34,7 @@
           <osFamily>debian7,ubuntu12,ubuntu14</osFamily>
           <packages>
             <package>
-              <name>knox-${stack_version}</name>
+              <name>knox-${hdp_version}</name>
             </package>
           </packages>
         </osSpecific>

http://git-wip-us.apache.org/repos/asf/ambari/blob/901d6afc/ambari-server/src/main/resources/stacks/HDP/2.2/services/OOZIE/metainfo.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.2/services/OOZIE/metainfo.xml b/ambari-server/src/main/resources/stacks/HDP/2.2/services/OOZIE/metainfo.xml
index d5db93c..d09d648 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.2/services/OOZIE/metainfo.xml
+++ b/ambari-server/src/main/resources/stacks/HDP/2.2/services/OOZIE/metainfo.xml
@@ -77,10 +77,10 @@
           <osFamily>redhat5,redhat6,redhat7,suse11</osFamily>
           <packages>
             <package>
-              <name>oozie_${stack_version}</name>
+              <name>oozie_${hdp_version}</name>
             </package>
             <package>
-              <name>falcon_${stack_version}</name>
+              <name>falcon_${hdp_version}</name>
             </package>
           </packages>
         </osSpecific>
@@ -88,10 +88,10 @@
           <osFamily>debian7,ubuntu12,ubuntu14</osFamily>
           <packages>
             <package>
-              <name>oozie-${stack_version}</name>
+              <name>oozie-${hdp_version}</name>
             </package>
             <package>
-              <name>falcon-${stack_version}</name>
+              <name>falcon-${hdp_version}</name>
             </package>
             <package>
               <name>extjs</name>

http://git-wip-us.apache.org/repos/asf/ambari/blob/901d6afc/ambari-server/src/main/resources/stacks/HDP/2.2/services/PIG/metainfo.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.2/services/PIG/metainfo.xml b/ambari-server/src/main/resources/stacks/HDP/2.2/services/PIG/metainfo.xml
index c4b9c8b..818640c 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.2/services/PIG/metainfo.xml
+++ b/ambari-server/src/main/resources/stacks/HDP/2.2/services/PIG/metainfo.xml
@@ -27,7 +27,7 @@
           <osFamily>redhat6,suse11</osFamily>
           <packages>
             <package>
-              <name>pig_${stack_version}</name>
+              <name>pig_${hdp_version}</name>
             </package>
           </packages>
         </osSpecific>
@@ -35,7 +35,7 @@
           <osFamily>ubuntu12</osFamily>
           <packages>
             <package>
-              <name>pig-${stack_version}</name>
+              <name>pig-${hdp_version}</name>
             </package>
           </packages>
         </osSpecific>

http://git-wip-us.apache.org/repos/asf/ambari/blob/901d6afc/ambari-server/src/main/resources/stacks/HDP/2.2/services/RANGER/metainfo.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.2/services/RANGER/metainfo.xml b/ambari-server/src/main/resources/stacks/HDP/2.2/services/RANGER/metainfo.xml
index b8edba5..8a4b335 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.2/services/RANGER/metainfo.xml
+++ b/ambari-server/src/main/resources/stacks/HDP/2.2/services/RANGER/metainfo.xml
@@ -35,10 +35,10 @@
           <osFamily>redhat7,redhat6,suse11</osFamily>
           <packages>
             <package>
-              <name>ranger_${stack_version}-admin</name>
+              <name>ranger_${hdp_version}-admin</name>
             </package>
             <package>
-              <name>ranger_${stack_version}-usersync</name>
+              <name>ranger_${hdp_version}-usersync</name>
             </package>
           </packages>
         </osSpecific>
@@ -46,10 +46,10 @@
           <osFamily>debian7,ubuntu12,ubuntu14</osFamily>
           <packages>
             <package>
-              <name>ranger-${stack_version}-admin</name>
+              <name>ranger-${hdp_version}-admin</name>
             </package>
             <package>
-              <name>ranger-${stack_version}-usersync</name>
+              <name>ranger-${hdp_version}-usersync</name>
             </package>
           </packages>
         </osSpecific>

http://git-wip-us.apache.org/repos/asf/ambari/blob/901d6afc/ambari-server/src/main/resources/stacks/HDP/2.2/services/SLIDER/metainfo.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.2/services/SLIDER/metainfo.xml b/ambari-server/src/main/resources/stacks/HDP/2.2/services/SLIDER/metainfo.xml
index dfab0d7..d6de7c8 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.2/services/SLIDER/metainfo.xml
+++ b/ambari-server/src/main/resources/stacks/HDP/2.2/services/SLIDER/metainfo.xml
@@ -26,10 +26,10 @@
           <osFamily>redhat7,redhat6,suse11</osFamily>
           <packages>
             <package>
-              <name>slider_${stack_version}</name>
+              <name>slider_${hdp_version}</name>
             </package>
             <package>
-              <name>storm_${stack_version}-slider-client</name>
+              <name>storm_${hdp_version}-slider-client</name>
             </package>
           </packages>
         </osSpecific>
@@ -37,10 +37,10 @@
           <osFamily>debian7,ubuntu12,ubuntu14</osFamily>
           <packages>
             <package>
-              <name>slider-${stack_version}</name>
+              <name>slider-${hdp_version}</name>
             </package>
             <package>
-              <name>storm-${stack_version}-slider-client</name>
+              <name>storm-${hdp_version}-slider-client</name>
             </package>
           </packages>
         </osSpecific>

http://git-wip-us.apache.org/repos/asf/ambari/blob/901d6afc/ambari-server/src/main/resources/stacks/HDP/2.2/services/SPARK/metainfo.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.2/services/SPARK/metainfo.xml b/ambari-server/src/main/resources/stacks/HDP/2.2/services/SPARK/metainfo.xml
index f370bf3..9f906a1 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.2/services/SPARK/metainfo.xml
+++ b/ambari-server/src/main/resources/stacks/HDP/2.2/services/SPARK/metainfo.xml
@@ -30,10 +30,10 @@
           <osFamily>redhat7,redhat6,suse11</osFamily>
           <packages>
             <package>
-              <name>spark_${stack_version}</name>
+              <name>spark_${hdp_version}</name>
             </package>
             <package>
-              <name>spark_${stack_version}-python</name>
+              <name>spark_${hdp_version}-python</name>
             </package>
           </packages>
         </osSpecific>
@@ -41,10 +41,10 @@
           <osFamily>debian7,ubuntu12,ubuntu14</osFamily>
           <packages>
             <package>
-              <name>spark-${stack_version}</name>
+              <name>spark-${hdp_version}</name>
             </package>
             <package>
-              <name>spark-${stack_version}-python</name>
+              <name>spark-${hdp_version}-python</name>
             </package>
           </packages>
         </osSpecific>

http://git-wip-us.apache.org/repos/asf/ambari/blob/901d6afc/ambari-server/src/main/resources/stacks/HDP/2.2/services/SQOOP/metainfo.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.2/services/SQOOP/metainfo.xml b/ambari-server/src/main/resources/stacks/HDP/2.2/services/SQOOP/metainfo.xml
index eaa4051..b3c0e34 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.2/services/SQOOP/metainfo.xml
+++ b/ambari-server/src/main/resources/stacks/HDP/2.2/services/SQOOP/metainfo.xml
@@ -35,7 +35,7 @@
           <osFamily>redhat7,redhat6,suse11</osFamily>
           <packages>
             <package>
-              <name>sqoop_${stack_version}</name>
+              <name>sqoop_${hdp_version}</name>
             </package>
           </packages>
         </osSpecific>
@@ -43,7 +43,7 @@
           <osFamily>debian7,ubuntu12,ubuntu14</osFamily>
           <packages>
             <package>
-              <name>sqoop-${stack_version}</name>
+              <name>sqoop-${hdp_version}</name>
             </package>
           </packages>
         </osSpecific>

http://git-wip-us.apache.org/repos/asf/ambari/blob/901d6afc/ambari-server/src/main/resources/stacks/HDP/2.2/services/STORM/metainfo.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.2/services/STORM/metainfo.xml b/ambari-server/src/main/resources/stacks/HDP/2.2/services/STORM/metainfo.xml
index eca29ae..a0144d7 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.2/services/STORM/metainfo.xml
+++ b/ambari-server/src/main/resources/stacks/HDP/2.2/services/STORM/metainfo.xml
@@ -34,7 +34,7 @@
           <osFamily>redhat7,redhat6,suse11</osFamily>
           <packages>
             <package>
-              <name>storm_${stack_version}</name>
+              <name>storm_${hdp_version}</name>
             </package>
           </packages>
         </osSpecific>
@@ -42,7 +42,7 @@
           <osFamily>debian7,ubuntu12,ubuntu14</osFamily>
           <packages>
             <package>
-              <name>storm-${stack_version}</name>
+              <name>storm-${hdp_version}</name>
             </package>
           </packages>
         </osSpecific>

http://git-wip-us.apache.org/repos/asf/ambari/blob/901d6afc/ambari-server/src/main/resources/stacks/HDP/2.2/services/TEZ/metainfo.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.2/services/TEZ/metainfo.xml b/ambari-server/src/main/resources/stacks/HDP/2.2/services/TEZ/metainfo.xml
index 3f3a10c..3bb9aea 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.2/services/TEZ/metainfo.xml
+++ b/ambari-server/src/main/resources/stacks/HDP/2.2/services/TEZ/metainfo.xml
@@ -28,7 +28,7 @@
           <osFamily>redhat7,redhat6,suse11</osFamily>
           <packages>
             <package>
-              <name>tez_${stack_version}</name>
+              <name>tez_${hdp_version}</name>
             </package>
           </packages>
         </osSpecific>
@@ -36,7 +36,7 @@
           <osFamily>debian7,ubuntu12,ubuntu14</osFamily>
           <packages>
             <package>
-              <name>tez-${stack_version}</name>
+              <name>tez-${hdp_version}</name>
             </package>
           </packages>
         </osSpecific>

http://git-wip-us.apache.org/repos/asf/ambari/blob/901d6afc/ambari-server/src/main/resources/stacks/HDP/2.2/services/YARN/metainfo.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.2/services/YARN/metainfo.xml b/ambari-server/src/main/resources/stacks/HDP/2.2/services/YARN/metainfo.xml
index bb346f0..20de188 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.2/services/YARN/metainfo.xml
+++ b/ambari-server/src/main/resources/stacks/HDP/2.2/services/YARN/metainfo.xml
@@ -35,13 +35,13 @@
           <osFamily>redhat6,suse11</osFamily>
           <packages>
             <package>
-              <name>hadoop_${stack_version}-yarn</name>
+              <name>hadoop_${hdp_version}-yarn</name>
             </package>
             <package>
-              <name>hadoop_${stack_version}-mapreduce</name>
+              <name>hadoop_${hdp_version}-mapreduce</name>
             </package>
             <package>
-              <name>hadoop_${stack_version}-hdfs</name>
+              <name>hadoop_${hdp_version}-hdfs</name>
             </package>
           </packages>
         </osSpecific>
@@ -49,10 +49,10 @@
           <osFamily>ubuntu12</osFamily>
           <packages>
             <package>
-              <name>hadoop-${stack_version}-yarn</name>
+              <name>hadoop-${hdp_version}-yarn</name>
             </package>
             <package>
-              <name>hadoop-${stack_version}-mapreduce</name>
+              <name>hadoop-${hdp_version}-mapreduce</name>
             </package>
           </packages>
         </osSpecific>
@@ -75,7 +75,7 @@
           <osFamily>redhat6,suse11</osFamily>
           <packages>
             <package>
-              <name>hadoop_${stack_version}-mapreduce</name>
+              <name>hadoop_${hdp_version}-mapreduce</name>
             </package>
           </packages>
         </osSpecific>
@@ -83,7 +83,7 @@
           <osFamily>ubuntu12</osFamily>
           <packages>
             <package>
-              <name>hadoop-${stack_version}-mapreduce</name>
+              <name>hadoop-${hdp_version}-mapreduce</name>
             </package>
           </packages>
         </osSpecific>

http://git-wip-us.apache.org/repos/asf/ambari/blob/901d6afc/ambari-server/src/main/resources/stacks/HDP/2.3/services/ACCUMULO/metainfo.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.3/services/ACCUMULO/metainfo.xml b/ambari-server/src/main/resources/stacks/HDP/2.3/services/ACCUMULO/metainfo.xml
index de6983c..d24d9b8 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.3/services/ACCUMULO/metainfo.xml
+++ b/ambari-server/src/main/resources/stacks/HDP/2.3/services/ACCUMULO/metainfo.xml
@@ -27,7 +27,7 @@
           <osFamily>redhat7,redhat6,suse11</osFamily>
           <packages>
             <package>
-              <name>accumulo_${stack_version}</name>
+              <name>accumulo_${hdp_version}</name>
             </package>
           </packages>
         </osSpecific>
@@ -35,7 +35,7 @@
           <osFamily>debian7,ubuntu12,ubuntu14</osFamily>
           <packages>
             <package>
-              <name>accumulo-${stack_version}</name>
+              <name>accumulo-${hdp_version}</name>
             </package>
           </packages>
         </osSpecific>

http://git-wip-us.apache.org/repos/asf/ambari/blob/901d6afc/ambari-server/src/main/resources/stacks/HDP/2.3/services/ATLAS/metainfo.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.3/services/ATLAS/metainfo.xml b/ambari-server/src/main/resources/stacks/HDP/2.3/services/ATLAS/metainfo.xml
index 4983698..7e27659 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.3/services/ATLAS/metainfo.xml
+++ b/ambari-server/src/main/resources/stacks/HDP/2.3/services/ATLAS/metainfo.xml
@@ -27,7 +27,7 @@
           <osFamily>redhat7,redhat6,suse11</osFamily>
           <packages>
             <package>
-              <name>atlas-metadata_${stack_version}</name>
+              <name>atlas-metadata_${hdp_version}</name>
             </package>
           </packages>
         </osSpecific>
@@ -35,7 +35,7 @@
           <osFamily>debian7,ubuntu12,ubuntu14</osFamily>
           <packages>
             <package>
-              <name>atlas-metadata-${stack_version}</name>
+              <name>atlas-metadata-${hdp_version}</name>
             </package>
           </packages>
         </osSpecific>

http://git-wip-us.apache.org/repos/asf/ambari/blob/901d6afc/ambari-server/src/main/resources/stacks/HDP/2.3/services/HDFS/metainfo.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.3/services/HDFS/metainfo.xml b/ambari-server/src/main/resources/stacks/HDP/2.3/services/HDFS/metainfo.xml
index cb0062f..8c992d2 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.3/services/HDFS/metainfo.xml
+++ b/ambari-server/src/main/resources/stacks/HDP/2.3/services/HDFS/metainfo.xml
@@ -45,77 +45,6 @@
           </dependencies>
         </component>
       </components>
-      
-      <osSpecifics>
-        <osSpecific>
-          <osFamily>any</osFamily>
-          <packages>
-            <package>
-              <name>rpcbind</name>
-            </package>
-          </packages>
-        </osSpecific>
-        <osSpecific>
-          <osFamily>redhat7,redhat6,suse11</osFamily>
-          <packages>
-            <package>
-              <name>hadoop_${stack_version}</name>
-            </package>
-            <package>
-              <name>snappy</name>
-            </package>
-            <package>
-              <name>snappy-devel</name>
-            </package>
-            <package>
-              <name>lzo</name>
-              <skipUpgrade>true</skipUpgrade>
-            </package>
-            <package>
-              <name>hadooplzo_${stack_version}</name>
-            </package>
-            <package>
-              <name>hadoop_${stack_version}-libhdfs</name>
-            </package>
-          </packages>
-        </osSpecific>
-
-        <osSpecific>
-          <osFamily>debian7,ubuntu12,ubuntu14</osFamily>
-          <packages>
-            <package>
-              <name>hadoop-${stack_version}-client</name>
-            </package>
-            <package>
-              <name>hadoop-${stack_version}-hdfs-datanode</name>
-            </package>
-            <package>
-              <name>hadoop-${stack_version}-hdfs-journalnode</name>
-            </package>
-            <package>
-              <name>hadoop-${stack_version}-hdfs-namenode</name>
-            </package>
-            <package>
-              <name>hadoop-${stack_version}-hdfs-secondarynamenode</name>
-            </package>
-            <package>
-              <name>hadoop-${stack_version}-hdfs-zkfc</name>
-            </package>
-            <package>
-              <name>libsnappy1</name>
-            </package>
-            <package>
-              <name>libsnappy-dev</name>
-            </package>
-            <package>
-              <name>hadooplzo-${stack_version}</name>
-            </package>
-            <package>
-              <name>libhdfs0-${stack_version}</name>
-            </package>
-          </packages>
-        </osSpecific>
-      </osSpecifics>
 
       <quickLinksConfigurations>
         <quickLinksConfiguration>

http://git-wip-us.apache.org/repos/asf/ambari/blob/901d6afc/ambari-server/src/main/resources/stacks/HDP/2.3/services/HIVE/metainfo.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.3/services/HIVE/metainfo.xml b/ambari-server/src/main/resources/stacks/HDP/2.3/services/HIVE/metainfo.xml
index f184741..0c70dbb 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.3/services/HIVE/metainfo.xml
+++ b/ambari-server/src/main/resources/stacks/HDP/2.3/services/HIVE/metainfo.xml
@@ -21,92 +21,6 @@
     <service>
       <name>HIVE</name>
       <version>1.2.1.2.3</version>
-      
-      <osSpecifics>
-        <osSpecific>
-          <osFamily>any</osFamily>
-          <packages>
-            <package>
-              <name>mysql-connector-java</name>
-              <skipUpgrade>true</skipUpgrade>
-            </package>
-          </packages>
-        </osSpecific>
-        <osSpecific>
-          <osFamily>redhat7,redhat6,suse11</osFamily>
-          <packages>
-            <package>
-              <name>hive_${stack_version}</name>
-            </package>
-            <package>
-              <name>hive_${stack_version}-hcatalog</name>
-            </package>
-            <package>
-              <name>hive_${stack_version}-webhcat</name>
-            </package>
-            <package>
-              <name>atlas-metadata_${stack_version}-hive-plugin</name>
-            </package>
-          </packages>
-        </osSpecific>
-        <osSpecific>
-          <osFamily>redhat6,suse11</osFamily>
-          <packages>
-            <package>
-              <name>mysql</name>
-              <skipUpgrade>true</skipUpgrade>
-            </package>
-          </packages>
-        </osSpecific>
-        <osSpecific>
-          <osFamily>redhat7</osFamily>
-          <packages>
-            <package>
-              <name>mysql-community-release</name>
-              <skipUpgrade>true</skipUpgrade>
-            </package>
-            <package>
-              <name>mysql-community-server</name>
-              <skipUpgrade>true</skipUpgrade>
-            </package>
-          </packages>
-        </osSpecific>
-        <osSpecific>
-          <osFamily>debian7,ubuntu12,ubuntu14</osFamily>
-          <packages>
-            <package>
-              <name>hive-${stack_version}</name>
-            </package>
-            <package>
-              <name>hive-${stack_version}-hcatalog</name>
-            </package>
-            <package>
-              <name>hive-${stack_version}-webhcat</name>
-            </package>
-            <package>
-              <name>atlas-metadata-${stack_version}-hive-plugin</name>
-            </package>
-          </packages>
-        </osSpecific>
-        <osSpecific>
-          <osFamily>redhat6,debian7,ubuntu12,ubuntu14</osFamily>
-          <packages>
-            <package>
-              <name>mysql-server</name>
-              <skipUpgrade>true</skipUpgrade>
-            </package>
-          </packages>
-        </osSpecific>
-        <osSpecific>
-          <osFamily>suse11</osFamily>
-          <packages>
-            <package>
-              <name>mysql-client</name>
-              <skipUpgrade>true</skipUpgrade>
-            </package>
-          </packages>
-        </osSpecific>
-      </osSpecifics>
     </service>
   </services>
 </metainfo>

http://git-wip-us.apache.org/repos/asf/ambari/blob/901d6afc/ambari-server/src/main/resources/stacks/HDP/2.3/services/OOZIE/metainfo.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.3/services/OOZIE/metainfo.xml b/ambari-server/src/main/resources/stacks/HDP/2.3/services/OOZIE/metainfo.xml
index 8d1dda1..12c8b5f 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.3/services/OOZIE/metainfo.xml
+++ b/ambari-server/src/main/resources/stacks/HDP/2.3/services/OOZIE/metainfo.xml
@@ -48,10 +48,10 @@
           <osFamily>redhat5,redhat6,redhat7,suse11</osFamily>
           <packages>
             <package>
-              <name>oozie_${stack_version}</name>
+              <name>oozie_${hdp_version}</name>
             </package>
             <package>
-              <name>falcon_${stack_version}</name>
+              <name>falcon_${hdp_version}</name>
             </package>
           </packages>
         </osSpecific>
@@ -59,10 +59,10 @@
           <osFamily>debian7,ubuntu12,ubuntu14</osFamily>
           <packages>
             <package>
-              <name>oozie-${stack_version}</name>
+              <name>oozie-${hdp_version}</name>
             </package>
             <package>
-              <name>falcon-${stack_version}</name>
+              <name>falcon-${hdp_version}</name>
             </package>
             <package>
               <name>extjs</name>

http://git-wip-us.apache.org/repos/asf/ambari/blob/901d6afc/ambari-server/src/main/resources/stacks/HDP/2.3/services/PIG/metainfo.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.3/services/PIG/metainfo.xml b/ambari-server/src/main/resources/stacks/HDP/2.3/services/PIG/metainfo.xml
index 95830de..fe05cff 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.3/services/PIG/metainfo.xml
+++ b/ambari-server/src/main/resources/stacks/HDP/2.3/services/PIG/metainfo.xml
@@ -26,10 +26,10 @@
           <osFamily>redhat7,redhat6,suse11</osFamily>
           <packages>
             <package>
-              <name>pig_${stack_version}</name>
+              <name>pig_${hdp_version}</name>
             </package>
             <package>
-              <name>datafu_${stack_version}</name>
+              <name>datafu_${hdp_version}</name>
             </package>
           </packages>
         </osSpecific>
@@ -37,10 +37,10 @@
           <osFamily>debian7,ubuntu12,ubuntu14</osFamily>
           <packages>
             <package>
-              <name>pig-${stack_version}</name>
+              <name>pig-${hdp_version}</name>
             </package>
             <package>
-              <name>datafu-${stack_version}</name>
+              <name>datafu-${hdp_version}</name>
             </package>
           </packages>
         </osSpecific>

http://git-wip-us.apache.org/repos/asf/ambari/blob/901d6afc/ambari-server/src/main/resources/stacks/HDP/2.3/services/RANGER_KMS/metainfo.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.3/services/RANGER_KMS/metainfo.xml b/ambari-server/src/main/resources/stacks/HDP/2.3/services/RANGER_KMS/metainfo.xml
index e3a9fd9..03768f0 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.3/services/RANGER_KMS/metainfo.xml
+++ b/ambari-server/src/main/resources/stacks/HDP/2.3/services/RANGER_KMS/metainfo.xml
@@ -29,7 +29,7 @@
           <osFamily>redhat7,redhat6,suse11</osFamily>
           <packages>
             <package>
-              <name>ranger_${stack_version}-kms</name>
+              <name>ranger_${hdp_version}-kms</name>
             </package>
           </packages>
         </osSpecific>
@@ -37,7 +37,7 @@
           <osFamily>debian7,ubuntu12,ubuntu14</osFamily>
           <packages>
             <package>
-              <name>ranger-${stack_version}-kms</name>
+              <name>ranger-${hdp_version}-kms</name>
             </package>
           </packages>
         </osSpecific>

http://git-wip-us.apache.org/repos/asf/ambari/blob/901d6afc/ambari-server/src/main/resources/stacks/HDP/2.3/services/ZOOKEEPER/metainfo.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.3/services/ZOOKEEPER/metainfo.xml b/ambari-server/src/main/resources/stacks/HDP/2.3/services/ZOOKEEPER/metainfo.xml
index 315f319..3e27928 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.3/services/ZOOKEEPER/metainfo.xml
+++ b/ambari-server/src/main/resources/stacks/HDP/2.3/services/ZOOKEEPER/metainfo.xml
@@ -26,10 +26,10 @@
           <osFamily>redhat6,suse11</osFamily>
           <packages>
             <package>
-              <name>zookeeper_${stack_version}</name>
+              <name>zookeeper_${hdp_version}</name>
             </package>
             <package>
-              <name>zookeeper_${stack_version}-server</name>
+              <name>zookeeper_${hdp_version}-server</name>
             </package>
           </packages>
         </osSpecific>
@@ -37,10 +37,10 @@
           <osFamily>ubuntu12</osFamily>
           <packages>
             <package>
-              <name>zookeeper-${stack_version}</name>
+              <name>zookeeper-${hdp_version}</name>
             </package>
             <package>
-              <name>zookeeper-${stack_version}-server</name>
+              <name>zookeeper-${hdp_version}-server</name>
             </package>
           </packages>
         </osSpecific>

http://git-wip-us.apache.org/repos/asf/ambari/blob/901d6afc/ambari-server/src/test/python/custom_actions/TestInstallPackages.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/python/custom_actions/TestInstallPackages.py b/ambari-server/src/test/python/custom_actions/TestInstallPackages.py
index 679ae2a..39be4aa 100644
--- a/ambari-server/src/test/python/custom_actions/TestInstallPackages.py
+++ b/ambari-server/src/test/python/custom_actions/TestInstallPackages.py
@@ -131,7 +131,7 @@ class TestInstallPackages(RMFTestCase):
                             read_actual_version_from_history_file_mock,
                             hdp_versions_mock, put_structured_out_mock, allInstalledPackages_mock, list_ambari_managed_repos_mock, is_suse_family_mock):
     is_suse_family_mock = True
-    Script.stack_version_from_distro_select = VERSION_STUB
+    Script.stack_version_from_hdp_select = VERSION_STUB
     hdp_versions_mock.side_effect = [
       [],  # before installation attempt
       [VERSION_STUB]
@@ -197,7 +197,7 @@ class TestInstallPackages(RMFTestCase):
       [],  # before installation attempt
       [VERSION_STUB]
     ]
-    Script.stack_version_from_distro_select = VERSION_STUB
+    Script.stack_version_from_hdp_select = VERSION_STUB
     allInstalledPackages_mock.side_effect = TestInstallPackages._add_packages
     list_ambari_managed_repos_mock.return_value=["HDP-UTILS-2.2.0.1-885"]
     is_redhat_family_mock.return_value = True
@@ -327,7 +327,7 @@ class TestInstallPackages(RMFTestCase):
                                hdp_versions_mock,
                                allInstalledPackages_mock, put_structured_out_mock,
                                package_mock, is_suse_family_mock):
-    Script.stack_version_from_distro_select = VERSION_STUB
+    Script.stack_version_from_hdp_select = VERSION_STUB
     hdp_versions_mock.side_effect = [
       [],  # before installation attempt
       [VERSION_STUB]

http://git-wip-us.apache.org/repos/asf/ambari/blob/901d6afc/ambari-server/src/test/python/custom_actions/configs/install_packages_config.json
----------------------------------------------------------------------
diff --git a/ambari-server/src/test/python/custom_actions/configs/install_packages_config.json b/ambari-server/src/test/python/custom_actions/configs/install_packages_config.json
index fcd7765..24906cd 100644
--- a/ambari-server/src/test/python/custom_actions/configs/install_packages_config.json
+++ b/ambari-server/src/test/python/custom_actions/configs/install_packages_config.json
@@ -26,7 +26,7 @@
         "stack_id": "HDP-2.2",
         "repository_version": "2.2.0.1-885",
         "base_urls": "[{\"name\":\"HDP-UTILS\",\"baseUrl\":\"http://repo1/HDP/centos5/2.x/updates/2.2.0.0\",\"repositoryId\":\"HDP-UTILS-1.1.0.20\"},{\"name\":\"HDP\",\"baseUrl\":\"http://repo1/HDP/centos5/2.x/updates/2.2.0.0\",\"repositoryId\":\"HDP-2.2\"}]",
-        "package_list": "[{\"name\":\"hadoop_${stack_version}\"},{\"name\":\"snappy\"},{\"name\":\"snappy-devel\"},{\"name\":\"lzo\"},{\"name\":\"hadooplzo_${stack_version}\"},{\"name\":\"hadoop_${stack_version}-libhdfs\"},{\"name\":\"ambari-log4j\"}]"
+        "package_list": "[{\"name\":\"hadoop_${hdp_version}\"},{\"name\":\"snappy\"},{\"name\":\"snappy-devel\"},{\"name\":\"lzo\"},{\"name\":\"hadooplzo_${hdp_version}\"},{\"name\":\"hadoop_${hdp_version}-libhdfs\"},{\"name\":\"ambari-log4j\"}]"
     }, 
     "serviceName": "null", 
     "role": "install_packages", 
@@ -44,7 +44,7 @@
         "script_type": "PYTHON",
         "repository_version": "2.2.0.1-885",
         "base_urls": "[{\"name\":\"HDP-UTILS\",\"baseUrl\":\"http://repo1/HDP/centos5/2.x/updates/2.2.0.0\",\"repositoryId\":\"HDP-UTILS-1.1.0.20\"},{\"name\":\"HDP\",\"baseUrl\":\"http://repo1/HDP/centos5/2.x/updates/2.2.0.0\",\"repositoryId\":\"HDP-2.2\"}]",
-        "package_list": "[{\"name\":\"hadoop_${stack_version}\"},{\"name\":\"snappy\"},{\"name\":\"snappy-devel\"},{\"name\":\"lzo\"},{\"name\":\"hadooplzo_${stack_version}\"},{\"name\":\"hadoop_${stack_version}-libhdfs\"},{\"name\":\"ambari-log4j\"}]",
+        "package_list": "[{\"name\":\"hadoop_${hdp_version}\"},{\"name\":\"snappy\"},{\"name\":\"snappy-devel\"},{\"name\":\"lzo\"},{\"name\":\"hadooplzo_${hdp_version}\"},{\"name\":\"hadoop_${hdp_version}-libhdfs\"},{\"name\":\"ambari-log4j\"}]",
         "script": "install_packages.py"
     }, 
     "commandId": "14-1", 


Mime
View raw message