Repository: bigtop Updated Branches: refs/heads/BIGTOP-2320 9cd5be13d -> 77a1f3cb8
BIGTOP-2323. Build slaves toolchain needs to be updated for HAWQ Setting up libhdfs automatically from an aux repo... Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/77a1f3cb Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/77a1f3cb Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/77a1f3cb Branch: refs/heads/BIGTOP-2320 Commit: 77a1f3cb868b12c8135812b753eac328f7800c50 Parents: 9cd5be1 Author: Cos <[email protected]> Authored: Thu Mar 17 14:18:43 2016 -0500 Committer: Cos <[email protected]> Committed: Thu Mar 17 14:19:42 2016 -0500 ---------------------------------------------------------------------- bigtop_toolchain/manifests/installer.pp | 2 ++ bigtop_toolchain/manifests/libhdfs.pp | 45 ++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/bigtop/blob/77a1f3cb/bigtop_toolchain/manifests/installer.pp ---------------------------------------------------------------------- diff --git a/bigtop_toolchain/manifests/installer.pp b/bigtop_toolchain/manifests/installer.pp index 246fcaf..060d4bd 100644 --- a/bigtop_toolchain/manifests/installer.pp +++ b/bigtop_toolchain/manifests/installer.pp @@ -20,6 +20,8 @@ class bigtop_toolchain::installer { include bigtop_toolchain::gradle include bigtop_toolchain::protobuf include bigtop_toolchain::packages +## The hack workaround until such times when the lib is embedded into Hawq + include bigtop_toolchain::libhdfs include bigtop_toolchain::env include bigtop_toolchain::user http://git-wip-us.apache.org/repos/asf/bigtop/blob/77a1f3cb/bigtop_toolchain/manifests/libhdfs.pp ---------------------------------------------------------------------- diff --git a/bigtop_toolchain/manifests/libhdfs.pp b/bigtop_toolchain/manifests/libhdfs.pp new file mode 100644 index 0000000..4698108 --- /dev/null +++ b/bigtop_toolchain/manifests/libhdfs.pp @@ -0,0 +1,45 @@ +# 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. + + +class bigtop_toolchain::libhdfs { + + include bigtop_toolchain::packages + + + case $operatingsystem { + /(?i:(centos|fedora|amazon))/: { + + $apache_prefix = nearest_apache_mirror() + $hackrepourl = "https://bintray.com/artifact/download/wangzw/rpm/centos7/x86_64" + $libhdfs = "libhdfs3-2.2.31-1.el7.centos.x86_64.rpm" + $libhdfs_dev = "libhdfs3-devel-2.2.31-1.el7.centos.x86_64.rpm" + + exec {"download": + path => "/usr/bin", + cwd => "/usr/src", + command => "curl -L $hackrepourl/$libhdfs -o $libhdfs ; curl -L $hackrepourl/$libhdfs_dev -o $libhdfs_dev", + creates => "/usr/src/$libhdfs, /usr/src/$libhdfs_dev", + } + + exec {"install": + path => "/usr/bin", + cwd => "/usr/src", + command => "yum install -y $libhdfs $libhdfs_dev", + require => [ Exec[ 'download' ], Package[ $packages::pkgs ] ], + } + } + } +}
