You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ao...@apache.org on 2014/11/08 19:19:10 UTC
[2/2] ambari git commit: AMBARI-8229. Couldn't find any package by
regex 'hadooplzo-2-1-.*' when HDFS Client installing at HDP 2.1 or 2.0 Stacks
(aonishuk)
AMBARI-8229. Couldn't find any package by regex 'hadooplzo-2-1-.*' when HDFS Client installing at HDP 2.1 or 2.0 Stacks (aonishuk)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/7c51a3e5
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/7c51a3e5
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/7c51a3e5
Branch: refs/heads/branch-1.7.0
Commit: 7c51a3e53c0c16d0441d75f9ed069edbf99ffd9e
Parents: 5002575
Author: Andrew Onishuk <ao...@hortonworks.com>
Authored: Sat Nov 8 20:19:00 2014 +0200
Committer: Andrew Onishuk <ao...@hortonworks.com>
Committed: Sat Nov 8 20:19:00 2014 +0200
----------------------------------------------------------------------
.../HDP/2.0.6/services/HDFS/package/scripts/params.py | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/7c51a3e5/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/HDFS/package/scripts/params.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/HDFS/package/scripts/params.py b/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/HDFS/package/scripts/params.py
index 5cd15ae..45f9d36 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/HDFS/package/scripts/params.py
+++ b/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/HDFS/package/scripts/params.py
@@ -228,15 +228,21 @@ HdfsDirectory = functools.partial(
io_compression_codecs = config['configurations']['core-site']['io.compression.codecs']
lzo_enabled = "com.hadoop.compression.lzo" in io_compression_codecs
-
+# stack_is_hdp22_or_further
underscorred_version = stack_version_unformatted.replace('.', '_')
dashed_version = stack_version_unformatted.replace('.', '-')
lzo_packages_to_family = {
"any": ["hadoop-lzo"],
- "redhat": ["lzo", "hadoop-lzo-native", format("hadooplzo_{underscorred_version}_*")],
- "suse": ["lzo", "hadoop-lzo-native", format("hadooplzo_{underscorred_version}_*")],
- "ubuntu": ["liblzo2-2", format("hadooplzo-{dashed_version}-.*")]
+ "redhat": ["lzo", "hadoop-lzo-native"],
+ "suse": ["lzo", "hadoop-lzo-native"],
+ "ubuntu": ["liblzo2-2"]
}
+
+if stack_is_hdp22_or_further:
+ lzo_packages_to_family["redhat"] += [format("hadooplzo_{underscorred_version}_*")]
+ lzo_packages_to_family["suse"] += [format("hadooplzo_{underscorred_version}_*")]
+ lzo_packages_to_family["ubuntu"] += [format("hadooplzo_{dashed_version}_*")]
+
lzo_packages_for_current_host = lzo_packages_to_family['any'] + lzo_packages_to_family[System.get_instance().os_family]
all_lzo_packages = set(itertools.chain(*lzo_packages_to_family.values()))