首页 > 代码库 > cdh hadoop 安装包自动下载脚本

cdh hadoop 安装包自动下载脚本

cdh hadoop 安装包自动下载脚本

下面的shell脚本用于自动下载cdh5.2.1的hadoop rpm包. 测试通过。

#!/bin/bash
#
# @file
#   cdh5_rhel6_x64_cdh5.2.1-downloads.sh
#
# @date
#   2014-12-18
#
# @author
#   cheungmine
#
# @version
#   0.0.1pre
#
# download all RPMS from:
# -- http://archive.cloudera.com/cdh5/redhat/6/x86_64/cdh/
#
################################################################################
# specify where you want to save downloaded packages here:
#
PREFIX="../downloads/cdh5.2-RPMS-x86_64/cdh5.2.1"

# get real path from relative path
function real_path() {
    \cd "$1"
    /bin/pwd
}

# server resources:
#
CDH_URL_REPODATA=http://www.mamicode.com/"http://archive.cloudera.com/cdh5/redhat/6/x86_64/cdh/5.2.1/repodata/">

cdh hadoop 安装包自动下载脚本