[补充资料] 手动搭建 Cloudera 环境

Posted 代码艺术

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[补充资料] 手动搭建 Cloudera 环境相关的知识,希望对你有一定的参考价值。

本课主题

  • 集群搭建
  • 设置 Web 服务器
  • 启动 ClouderManager
  • 登入 Cloudera Manager

 

引言

这部份是一个补充资料,记录如何安装 Cloudera 服务器

  

集群搭建

  1. 查看你主机的 IP 地址并且设置静态 IP,这里显示的是 192.168.80.145
    ifconfig -a
    


    用图型界面来设置静态 IP

  2. 修改 network 文件来修改 HOSTNAME 
    vim /etc/sysconfig/network
    hostname elephant
    service network restart
  3. 修改 /etc/hosts 文件
    192.168.80.145  elephant
    192.168.80.146  monkey 

 

设置 Web 服务器

  1. 首先是关掉防火墙
    service iptables stop
    chkconfig iptables off
    vim /etc/selinux/config
    setenforce 0
    
  2. 查看 httpd 服务和启动状况,如果发现没有安装 httpd 服务,请先安装 sudo yum -y install httpd
    [enmoedu@elephant softwares]$ rpm -qa | grep httpd
    httpd-2.2.15-59.el6.centos.x86_64
    httpd-tools-2.2.15-59.el6.centos.x86_64
    rpm -qa | grep httpd
    [root@elephant softwares]# service httpd status
    httpd is stopped
    [root@elephant softwares]# service httpd start
    Starting httpd: httpd: Could not reliably determine the server\'s fully qualified domain name, using 192.168.80.145 for ServerName
                                                               [  OK  ]
    [root@elephant softwares]# service httpd status
    httpd (pid  3002) is running...
    service httpd status
  3. 查看 WEB 服务器的状况: http://elephant

  4. 安装好之后把 cloudera-cdh5 和 cloudera-manager 移动到 /var/www/html/ 文件夹里。 
    http://elephant/cloudera-manager5.9
    http://elephant/cloudera-cdh5.9 


    此时你可以创建安装包啦,进入 cloudera-cdh5 和 cloudera-manager 创建 repo
    createrepo .
    
    [root@elephant html]# cd cloudera-cdh5.9/
    [root@elephant cloudera-cdh5.9]# ls
    repodata  RPMS
    [root@elephant cloudera-cdh5.9]# createrepo .
    Spawning worker 0 with 117 pkgs
    Workers Finished
    Gathering worker results
    
    Saving Primary metadata
    Saving file lists metadata
    Saving other metadata
    Generating sqlite DBs
    Sqlite DBs complete
    [root@elephant cloudera-cdh5.9]# cd ..
    [root@elephant html]# ls
    cloudera-cdh5.9  cloudera-manager5.9
    [root@elephant html]# cd cloudera-manager5.9/
    [root@elephant cloudera-manager5.9]# ls
    repodata  RPMS
    [root@elephant cloudera-manager5.9]# createrepo .
    Spawning worker 0 with 6 pkgs
    Workers Finished
    Gathering worker results
    
    Saving Primary metadata
    Saving file lists metadata
    Saving other metadata
    Generating sqlite DBs
    Sqlite DBs complete
    createrepo
  5. 完成以上的步骤,服务器已经搭建好了,剩下来是客户端的配置。创建好 repo 之后可以到 /etc/yum.repos.d/ 文件夹创建 repo文件,新建 cloudera-cdh5 的 yum 源。
    [Cloudera-cdh5]
    name=Cloudera-cdh5
    baseurl=http://elephant/Cloudera-cdh5
    gpgcheck=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
    Cloudera-cdh5.repo
    [cloudera-manager]
    name=cloudera-manager
    baseurl=http://elephant/cloudera-manager
    gpgcheck=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
    cloudera-manager.repo
    mv Cloudera-cdh5/ cloudera-manager/ /var/www/html/
    service httpd status
    cd /var/www/html/
    
    cd Cloudera-cdh5/
    createrepo .
    
    cd cloudera-manager/
    createrepo .
    
    cd /etc/yum.repos.d/ 
    
    cat << EOF > /etc/yum.repos.d/Cloudera-cdh5.repo
    [Cloudera-cdh5]
    name=Cloudera-cdh5
    baseurl=http://elephant/Cloudera-cdh5
    gpgcheck=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
    EOF
    
    cat << EOF > /etc/yum.repos.d/cloudera-manager.repo
    [cloudera-manager]
    name=cloudera-manager
    baseurl=http://elephant/cloudera-manager
    gpgcheck=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
    EOF
    completed-code

    清理一下 yum  

    [root@elephant yum.repos.d]# yum clean all
    Loaded plugins: fastestmirror, refresh-packagekit
    Cleaning repos: base cloudera-cdh5.9 cloudera-manager extras updates
    Cleaning up Everything
    Cleaning up list of fastest mirrors
    yum clean all
    [root@elephant yum.repos.d]# yum install spark-core
    Loaded plugins: fastestmirror, refresh-packagekit
    Setting up Install Process
    Determining fastest mirrors
     * base: centos.01link.hk
     * extras: centos.01link.hk
     * updates: centos.01link.hk
    base                                                                                                                                   | 3.7 kB     00:00     
    base/primary_db                                                                                                                        | 4.7 MB     00:02     
    cloudera-cdh5.9                                                                                                                        | 2.9 kB     00:00     
    cloudera-cdh5.9/primary_db                                                                                                             |  64 kB     00:00     
    cloudera-manager                                                                                                                       | 2.9 kB     00:00     
    cloudera-manager/primary_db                                                                                                            | 8.8 kB     00:00     
    extras                                                                                                                                 | 3.4 kB     00:00     
    extras/primary_db                                                                                                                      |  37 kB     00:00     
    updates                                                                                                                                | 3.4 kB     00:00     
    updates/primary_db                                                                                                                     | 803 kB     00:00     
    Resolving Dependencies
    --> Running transaction check
    ---> Package spark-core.noarch 0:1.6.0+cdh5.9.0+229-1.cdh5.9.0.p0.30.el6 will be installed
    base/filelists_db                                                                                                                      | 6.4 MB     00:02     
    cloudera-cdh5.9/filelists_db                                                                                                           | 413 kB     00:00     
    cloudera-manager/filelists_db                                                                                                          |  94 kB     00:00     
    extras/filelists_db                                                                                                                    |  38 kB     00:00     
    updates/filelists_db                                                                                                                   | 644 kB     00:00     
    --> Processing Dependency: bigtop-utils >= 0.7 for package: spark-core-1.6.0+cdh5.9.0+229-1.cdh5.9.0.p0.30.el6.noarch
    --> Processing Dependency: parquet for package: spark-core-1.6.0+cdh5.9.0+229-1.cdh5.9.0.p0.30.el6.noarch
    --> Processing Dependency: hive for package: spark-core-1.6.0+cdh5.9.0+229-1.cdh5.9.0.p0.30.el6.noarch
    --> Processing Dependency: hadoop-client for package: spark-core-1.6.0+cdh5.9.0+229-1.cdh5.9.0.p0.30.el6.noarch
    --> Processing Dependency: flume-ng for package: spark-core-1.6.0+cdh5.9.0+229-1.cdh5.9.0.p0.30.el6.noarch
    --> Processing Dependency: avro-libs for package: spark-core-1.6.0+cdh5.9.0+229-1.cdh5.9.0.p0.30.el6.noarch
    --> Processing Dependency: /lib/lsb/init-functions for package: spark-core-1.6.0+cdh5.9.0+229-1.cdh5.9.0.p0.30.el6.noarch
    --> Running transaction check
    ---> Package avro-libs.noarch 0:1.7.6+cdh5.9.0+115-1.cdh5.9.0.p0.30.el6 will be installed
    ---> Package bigtop-utils.noarch 0:0.7.0+cdh5.9.0+0-1.cdh5.9.0.p0.30.el6 will be installed
    ---> Package flume-ng.noarch 0:1.6.0+cdh5.9.0+74-1.cdh5.9.0.p0.30.el6 will be installed
    --> Processing Dependency: kite >= 0.10.0+cdh5.1.0 for package: flume-ng-1.6.0+cdh5.9.0+74-1.cdh5.9.0.p0.30.el6.noarch
    --> Processing Dependency: hive-jdbc >= 1.1.0+cdh5.4.0 for package: flume-ng-1.6.0+cdh5.9.0+74-1.cdh5.9.0.p0.30.el6.noarch
    --> Processing Dependency: hadoop-yarn for package: flume-ng-1.6.0+cdh5.9.0+74-1.cdh5.9.0.p0.30.el6.noarch
    --> Processing Dependency: hadoop-mapreduce for package: flume-ng-1.6.0+cdh5.9.0+74-1.cdh5.9.0.p0.30.el6.noarch
    --> Processing Dependency: hadoop-hdfs for package: flume-ng-1.6.0+cdh5.9.0+74-1.cdh5.9.0.p0.30.el6.noarch
    --> Processing Dependency: hadoop for package: flume-ng-1.6.0+cdh5.9.0+74-1.cdh5.9.0.p0.30.el6.noarch
    ---> Package hadoop-client.x86_64 0:2.6.0+cdh5.9.0+1799-1.cdh5.9.0.p0.30.el6 will be installed
    --> Processing Dependency: hadoop-0.20-mapreduce = 2.6.0+cdh5.9.0+1799-1.cdh5.9.0.p0.30.el6 for package: hadoop-client-2.6.0+cdh5.9.0+1799-1.cdh5.9.0.p0.30.el6.x86_64
    --> Processing Dependency: hadoop-0.20-mapreduce = 2.6.0+cdh5.9.0+1799-1.cdh5.9.0.p0.30.el6 for package: hadoop-client-2.6.0+cdh5.9.0+1799-1.cdh5.9.0.p0.30.el6.x86_64
    --> Processing Dependency: zookeeper for package: hadoop-client-2.6.0+cdh5.9.0+1799-1.cdh5.9.0.p0.30.el6.x86_64
    ---> Package hive.noarch 0:1.1.0+cdh5.9.0+752-1.cdh5.9.0.p0.30.el6 will be installed
    --> Processing Dependency: sentry for package: hive-1.1.0+cdh5.9.0+752-1.cdh5.9.0.p0.30.el6.noarch
    ---> Package parquet.noarch 0:1.5.0+cdh5.9.0+176-1.cdh5.9.0.p0.30.el6 will be installed
    --> Processing Dependency: parquet-format >= 2.1.0 for package: parquet-1.5.0+cdh5.9.0+176-1.cdh5.9.0.p0.30.el6.noarch
    ---> Package redhat-lsb-core.x86_64 0:4.0-7.el6.centos will be installed
    --> Processing Dependency: perl-Test-Simple for package: redhat-lsb-core-4.0-7.el6.centos.x86_64
    --> Processing Dependency: perl-Test-Harness for package: redhat-lsb-core-4.0-7.el6.centos.x86_64
    --> Processing Dependency: perl-ExtUtils-MakeMaker for package: redhat-lsb-core-4.0-7.el6.centos.x86_64
    --> Processing Dependency: perl-CGI for package: redhat-lsb-core-4.0-7.el6.centos.x86_64
    --> Processing Dependency: /usr/bin/time for package: redhat-lsb-core-4.0-7.el6.centos.x86_64
    --> Processing Dependency: /usr/bin/pax for package: redhat-lsb-core-4.0-7.el6.centos.x86_64
    --> Processing Dependency: /usr/bin/man for package: redhat-lsb-core-4.0-7.el6.centos.x86_64
    --> Processing Dependency: /usr/bin/bc for package: redhat-lsb-core-4.0-7.el6.centos.x86_64
    --> Processing Dependency: /usr/bin/batch for package: redhat-lsb-core-4.0-7.el6.centos.x86_64
    --> Processing Dependency: /usr/bin/at for package: redhat-lsb-core-4.0-7.el6.centos.x86_64
    --> Processing Dependency: /bin/mailx for package: redhat-lsb-core-4.0-7.el6.centos.x86_64
    --> Processing Dependency: /bin/ed for package: redhat-lsb-core-4.0-7.el6.centos.x86_64
    --> Running transaction check
    ---> Package at.x86_64 0:3.1.10-49.el6 will be installed
    ---> Package bc.x86_64 0:1.06.95-1.el6 will be installed
    ---> Package ed.x86_64 0:1.1-3.3.el6 will be installed
    ---> Package hadoop.x86_64 0:2.6.0+cdh5.9.0+1799-1.cdh5.9.0.p0.30.el6 will be installed
    --> Processing Dependency: nc for package: hadoop-2.6.0+cdh5.9.0+1799-1.cdh5.9.0.p0.30.el6.x86_64
    ---> Package hadoop-0.20-mapreduce.x86_64 0:2.6.0+cdh5.9.0+1799-1.cdh5.9.0.p0.30.el6 will be installed
    ---> Package hadoop-hdfs.x86_64 0:2.6.0+cdh5.9.0+1799-1.cdh5.9.0.p0.30.el6 will be installed
    --> Processing Dependency: bigtop-jsvc for package: hadoop-hdfs-2.6.0+cdh5.9.0+1799-1.cdh5.9.0.p0.30.el6.x86_64
    ---> Package hadoop-mapreduce.x86_64 0:2.6.0+cdh5.9.0+1799-1.cdh5.9.0.p0.30.el6 will be installed
    ---> Package hadoop-yarn.x86_64 0:2.6.0+cdh5.9.0+1799-1.cdh5.9.0.p0.30.el6 will be installed
    ---> Package hive-jdbc.noarch 0:1.1.0+cdh5.9.0+752-1.cdh5.9.0.p0.30.el6 will be installed
    ---> Package kite.noarch 0:1.0.0+cdh5.9.0+138-1.cdh5.9.0.p0.30.el6 will be installed
    --> Processing Dependency: solr >= 4.4.0+cdh5.1.0 for package: kite-1.0.0+cdh5.9.0+138-1.cdh5.9.0.p0.30.el6.noarch
    ---> Package mailx.x86_64 0:12.4-8.el6_6 will be installed
    ---> Package man.x86_64 0:1.6f-39.el6 will be installed
    ---> Package parquet-format.noarch 0:2.1.0+cdh5.9.0+14-1.cdh5.9.0.p0.30.el6 will be installed
    ---> Package pax.x86_64 0:3.4-10.1.el6 will be installed
    ---> Package perl-CGI.x86_64 0:3.51-144.el6 will be installed
    --> Processing Dependency: perl = 4:5.10.1-144.el6 for package: perl-CGI-3.51-144.el6.x86_64
    ---> Package perl-ExtUtils-MakeMaker.x86_64 0:6.55-144.el6 will be installed
    --> Processing Dependency: perl-devel for package: perl-ExtUtils-MakeMaker-6.55-144.el6.x86_64
    ---> Package perl-Test-Harness.x86_64 0:3.17-144.el6 will be installed
    ---> Package perl-Test-Simple.x86_64 0:0.92-144.el6 will be installed
    ---> Package sentry.noarch 0:1.5.1+cdh5.9.0+261-1.cdh5.9.0.p0.30.el6 will be installed
    ---> Package time.x86_64 0:1.7-38.el6 will be installed
    ---> Package zookeeper.x86_64 0:3.4.5+cdh5.9.0+98-1.cdh5.9.0.p0.30.el6 will be installed
    --> Running transaction check
    ---> Package bigtop-jsvc.x86_64 0:0.6.0+cdh5.9.0+855-1.cdh5.9.0.p0.30.el6 will be installed
    ---> Package nc.x86_64 0:1.84-24.el6 will be installed
    ---> Package perl.x86_64 4:5.10.1-141.el6_7.1 will be updated
    --> Processing Dependency: perl = 4:5.10.1-141.el6_7.1 for package: 1:perl-Pod-Escapes-1.04-141.el6_7.1.x86_64
    --> Processing Dependency: perl = 4:5.10.1-141.el6_7.1 for package: perl-IO-Compress-Base-2.021-141.el6_7.1.x86_64
    --> Processing Dependency: perl = 4:5.10.1-141.el6_7.1 for package: 1:perl-Compress-Raw-Zlib-2.021-141.el6_7.1.x86_64
    --> Processing Dependency: perl = 4:5.10.1-141.el6_7.1 for package: perl-IO-Compress-Zlib-2.021-141.el6_7.1.x86_64
    --> Processing Dependency: perl = 4:5.10.1-141.el6_7.1 for package: 1:perl-Module-Pluggable-3.90-141.el6_7.1.x86_64
    --> Processing Dependency: perl = 4:5.10.1-141.el6_7.1 for package: perl-Compress-Zlib-2.021-141.el6_7.1.x86_64
    --> Processing Dependency: perl = 4:5.10.1-141.el6_7.1 for package: 3:perl-version-0.77-141.el6_7.1.x86_64
    --> Processing Dependency: perl = 4:5.10.1-141.el6_7.1 for package: 4:perl-libs-5.10.1-141.el6_7.1.x86_64
    --> Processing Dependency: perl = 4:5.10.1-141.el6_7.1 for package: 1:perl-Pod-Simple-3.13-141.el6_7.1.x86_64
    ---> Package perl.x86_64 4:5.10.1-144.el6 will be an update
    ---> Package perl-devel.x86_64 4:5.10.1-144.el6 will be installed
    --> Processing Dependency: perl(ExtUtils::ParseXS) for package: 4:perl-devel-5.10.1-144.el6.x86_64
    --> Processing Dependency: gdbm-devel for package: 4:perl-devel-5.10.1-144.el6.x86_64
    --> Processing Dependency: db4-devel for package: 4:perl-devel-5.10.1-144.el6.x86_64
    ---> Package solr.noarch 0:4.10.3+cdh5.9.0+458-1.cdh5.9.0.p0.30.el6 will be installed
    --> Processing Dependency: bigtop-tomcat for package: solr-4.10.3+cdh5.9.0+458-1.cdh5.9.0.p0.30.el6.noarch
    --> Running transaction check
    ---> Package bigtop-tomcat.noarch 0:0.7.0+cdh5.9.0+0-1.cdh5.9.0.p0.30.el6 will be installed
    ---> Package db4-devel.x86_64 0:4.7.25-22.el6 will be installed
    --> Processing Dependency: db4-cxx = 4.7.25-22.el6 for package: db4-devel-4.7.25-22.el6.x86_64
    --> Processing Dependency: db4 = 4.7.25-22.el6 for package: db4-devel-4.7.25-22.el6.x86_64
    --> Processing Dependency: libdb_cxx-4.7.so()(64bit) for package: db4-devel-4.7.25-22.el6.x86_64
    ---> Package gdbm-devel.x86_64 0:1.8.0-39.el6 will be installed
    ---> Package perl-Compress-Raw-Zlib.x86_64 1:2.021-141.el6_7.1 will be updated
    ---> Package perl-Compress-Raw-Zlib.x86_64 1:2.021-144.el6 will be an update
    ---> Package perl-Compress-Zlib.x86_64 0:2.021-141.el6_7.1 will be updated
    ---> Package perl-Compress-Zlib.x86_64 0:2.021-144.el6 will be an update
    ---> Package perl-ExtUtils-ParseXS.x86_64 1:2.2003.0-144.el6 will be installed
    ---> Package perl-IO-Compress-Base.x86_64 0:2.021-141.el6_7.1 will be updated
    ---> Package perl-IO-Compress-Base.x86_64 0:2.021-144.el6 will be an update
    ---> Package perl-IO-Compress-Zlib.x86_64 0:2.021-141.el6_7.1 will be updated
    ---> Package perl-IO-Compress-Zlib.x86_64 0:2.021-144.el6 will be an update
    ---> Package perl-Module-Pluggable.x86_64 1:3.90-141.el6_7.1 will be updated
    ---> Package perl-Module-Pluggable.x86_64 1:3.90-144.el6 will be an update
    ---> Package perl-Pod-Escapes.x86_64 1:1.04-141.el6_7.1 will be updated
    ---> Package perl-Pod-Escapes.x86_64 1:1.04-144.el6 will be an update
    ---> Package perl-Pod-Simple.x86_64 1:3.13-141.el6_7.1 will be updated
    ---> Package perl-Pod-Simple.x86_64 1:3.13-144.el6 will be an update
    ---> Package perl-libs.x86_64 4:5.10.1-141.el6_7.1 will be updated
    ---> Package perl-libs.x86_64 4:5.10.1-144.el6 will be an update
    ---> Package perl-version.x86_64 3:0.77-141.el6_7.1 will be updated
    ---> Package perl-version.x86_64 3:0.77-144.el6 will be an update
    --> Running transaction check
    ---> Package db4.x86_64 0:4.7.25-20.el6_7 will be updated
    --> Processing Dependency: db4 = 4.7.25-20.el6_7 for package: db4-utils-4.7.25-20.el6_7.x86_64
    ---> Package db4.x86_64 0:4.7.25-22.el6 will be an update
    ---> Package db4-cxx.x86_64 0:4.7.25-22.el6 will be installed
    --> Running transaction check
    ---> Package db4-utils.x86_64 0:4.7.25-20.el6_7 will be updated
    ---> Package db4-utils.x86_64 0:4.7.25-22.el6 will be an update
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    ==============================================================================================================================================================
     Package                                Arch                  Version                                                    Repository                      Size
    ==============================================================================================================================================================
    Installing:
     spark-core                             noarch                1.6.0+cdh5.9.0+229-1.cdh5.9.0.p0.30.el6                    cloudera-cdh5.9                112 M
    Installing for dependencies:
     at                                     x86_64                3.1.10-49.el6                                              base                            61 k
     avro-libs                              noarch                1.7.6+cdh5.9.0+115-1.cdh5.9.0.p0.30.el6                    cloudera-cdh5.9                 45 M
     bc                                     x86_64                1.06.95-1.el6                                              base                           110 k
     bigtop-jsvc                            x86_64                0.6.0+cdh5.9.0+855-1.cdh5.9.0.p0.30.el6                    cloudera-cdh5.9                 27 k
     bigtop-tomcat                          noarch                0.7.0+cdh5.9.0+0-1.cdh5.9.0.p0.30.el6                      cloudera-cdh5.9                7.5 M
     bigtop-utils                           noarch                0.7.0+cdh5.9.0+0-1.cdh5.9.0.p0.30.el6                      cloudera-cdh5.9                 11 k
     db4-cxx                                x86_64                4.7.25-22.el6                                              base                           589 k
     db4-devel                              x86_64                4.7.25-22.el6                                              base                           6.6 M
     ed                                     x86_64                1.1-3.3.el6                                                base                            72 k
     flume-ng                               noarch                1.6.0+cdh5.9.0+74-1.cdh5.9.0.p0.30.el6                     cloudera-cdh5.9                 52 M
     gdbm-devel                             x86_64                1.8.0-39.el6                                               base                            26 k
     hadoop                                 x86_64                2.6.0+cdh5.9.0+1799-1.cdh5.9.0.p0.30.el6                   cloudera-cdh5.9                 27 M
     hadoop-0.20-mapreduce                  x86_64                2.6.0+cdh5.9.0+1799-1.cdh5.9.0.p0.30.el6                   cloudera-cdh5.9                 36 M
     hadoop-client                          x86_64                2.6.0+cdh5.9.0+1799-1.cdh5.9.0.p0.30.el6                   cloudera-cdh5.9                 34 k
     hadoop-hdfs                            x86_64                2.6.0+cdh5.9.0+1799-1.cdh5.9.0.p0.30.el6                   cloudera-cdh5.9                 24 M
     hadoop-mapreduce                       x86_64                2.6.0+cdh5.9.0+1799-1.cdh5.9.0.p0.30.el6                   cloudera-cdh5.9                 32 M
     hadoop-yarn                            x86_64                2.6.0+cdh5.9.0+1799-1.cdh5.9.0.p0.30.el6                   cloudera-cdh5.9                 15 M
     hive                                   noarch                1.1.0+cdh5.9.0+752-1.cdh5.9.0.p0.30.el6                    cloudera-cdh5.9                 42 M
     hive-jdbc                              noarch                1.1.0+cdh5.9.0+752-1.cdh5.9.0.p0.30.el6                    cloudera-cdh5.9                 46 M
     kite                                   noarch                1.0.0+cdh5.9.0+138-1.cdh5.9.0.p0.30.el6                    cloudera-cdh5.9                114 M
     mailx                                  x86_64                12.4-8.el6_6                                               base                           235 k
     man                                    x86_64                1.6f-39.el6                                                base                           265 k
     nc                                     x86_64                1.84-24.el6                                                base                            57 k
     parquet                                noarch                1.5.0+cdh5.9.0+176-1.cdh5.9.0.p0.30.el6                    cloudera-cdh5.9                 26 M
     parquet-format                         noarch                2.1.0+cdh5.9.0+14-1.cdh5.9.0.p0.30.el6                     cloudera-cdh5.9                467 k
     pax                                    x86_64                3.4-10.1.el6                                               base                            69 k
     perl-CGI                               x86_64                3.51-144.el6                                               base                           210 k
     perl-ExtUtils-MakeMaker                x86_64                6.55-144.el6                                               base                           294 k
     perl-ExtUtils-ParseXS                  x86_64                1:2.2003.0-144.el6                                         base                            46 k
     perl-Test-Harness                      x86_64                3.17-144.el6                                               base                           232 k
     perl-Test-Simple                       x86_64                0.92-144.el6                                               base                           113 k
     perl-devel                             x86_64                4:5.10.1-144.el6                                           base                           424 k
     redhat-lsb-core                        x86_64                4.0-7.el6.centos                                           base                            25 k
     sentry                                 noarch                1.5.1+cdh5.9.0+261-1.cdh5.9.0.p0.30.el6                    cloudera-cdh5.9                 56 M
     solr                                   noarch                4.10.3+cdh5.9.0+458-1.cdh5.9.0.p0.30.el6                   cloudera-cdh5.9                 76 M
     time                                   x86_64                1.7-38.el6                                                 base                            26 k
     zookeeper                              x86_64                3.4.5+cdh5.9.0+98-1.cdh5.9.0.p0.30.el6                     cloudera-cdh5.9                4.4 M
    Updating for dependencies:
     db4                                    x86_64                4.7.25-22.el6                                              base                           564 k
     db4-utils                              x86_64                4.7.25-22.el6                                              base                           131 k
     perl                                   x86_64                4:5.10.1-144.el6                                           base                            10 M
     perl-Compress-Raw-Zlib                 x86_64                1:2.021-144.el6                                            base                            70 k
     perl-Compress-Zlib                     x86_64                2.021-144.el6                                              base                            46 k
     perl-IO-Compress-Base                  x86_64                2.021-144.el6                                              base                            70 k
     perl-IO-Compress-Zlib                  x86_64                2.021-144.el6                                              base                           136 k
     perl-Module-Pluggable                  x86_64                1:3.90-144.el6                                             base                            41 k
     perl-Pod-Escapes                       x86_64                1:1.04-144.el6                                             base                            33 k
     perl-Pod-Simple                        x86_64                1:3.13-144.el6                                             base                           213 k
     perl-libs                              x86_64                4:5.10.1-144.el6                                           base                           579 k
     perl-version                           x86_64                3:0.77-144.el6                                             base                            52 k
    
    Transaction Summary
    ==============================================================================================================================================================
    Install      38 Package(s)
    Upgrade      12 Package(s)
    
    Total download size: 736 M
    Is this ok [y/N]:y  
    Downloading Packages:
    (1/50): at-3.1.10-49.el6.x86_64.rpm                                                                                                    |  61 kB     00:00     
    (2/50): avro-libs-1.7.6+cdh5.9.0+115-1.cdh5.9.0.p0.30.el6.noarch.rpm                                                                   |  45 MB     00:00     
    (3/50): bc-1.06.95-1.el6.x86_64.rpm                                                                                                    | 110 kB     00:00     
    (4/50): bigtop-jsvc-0.6.0+cdh5.9.0+855-1.cdh5.9.0.p0.30.el6.x86_64.rpm                                                                 |  27 kB     00:00     
    (5/50): bigtop-tomcat-0.7.0+cdh5.9.0+0-1.cdh5.9.0.p0.30.el6.noarch.rpm                                                                 | 7.5 MB     00:00     
    (6/50): bigtop-utils-0.7.0+cdh5.9.0+0-1.cdh5.9.0.p0.30.el6.noarch.rpm                                                                  |  11 kB     00:00     
    (7/50): db4-4.7.25-22.el6.x86_64.rpm                                                                                                   | 564 kB     00:00     
    (8/50): db4-cxx-4.7.25-22.el6.x86_64.rpm                                                                                               | 589 kB     00:00     
    (9/50): db4-devel-4.7.25-22.el6.x86_64.rpm                                                                                             | 6.6 MB     00:02     
    (10/50): db4-utils-4.7.25-22.el6.x86_64.rpm                                                                                            | 131 kB     00:00     
    (11/50): ed-1.1-3.3.el6.x86_64.rpm                                                                                                     |  72 kB     00:00     
    (12/50): flume-ng-1.6.0+cdh5.9.0+74-1.cdh5.9.0.p0.30.el6.noarch.rpm                                                                    |  52 MB     00:00     
    (13/50): gdbm-devel-1.8.0-39.el6.x86_64.rpm                                                                                            |  26 kB     00:00     
    (14/50): hadoop-2.6.0+cdh5.9.0+1799-1.cdh5.9.0.p0.30.el6.x86_64.rpm                                                                    |  27 MB     00:00     
    (15/50): hadoop-0.20-mapreduce-2.6.0+cdh5.9.0+1799-1.cdh5.9.0.p0.30.el6.x86_64.rpm                                                     |  36 MB     00:00     
    (16/50): hadoop-client-2.6.0+cdh5.9.0+1799-1.cdh5.9.0.p0.30.el6.x86_64.rpm                                                             |  34 kB     00:00     
    (17/50): hadoop-hdfs-2.6.0+cdh5.9.0+1799-1.cdh5.9.0.p0.30.el6.x86_64.rpm                                                               |  24 MB     00:00     
    (18/50): hadoop-mapreduce-2.6.0+cdh5.9.0+1799-1.cdh5.9.0.p0.30.el6.x86_64.rpm                                                          |  32 MB     00:00     
    (19/50): hadoop-yarn-2.6.0+cdh5.9.0+1799-1.cdh5.9.0.p0.30.el6.x86_64.rpm                                                               |  15 MB     00:00     
    (20/50): hive-1.1.0+cdh5.9.0+752-1.cdh5.9.0.p0.30.el6.noarch.rpm                                                                       |  42 MB     00:00     
    (21/50): hive-jdbc-1.1.0+cdh5.9.0+752-1.cdh5.9.0.p0.30.el6.noarch.rpm                                                                  |  46 MB     00:00     
    (22/50): kite-1.0.0+cdh5.9.0+138-1.cdh5.9.0.p0.30.el6.noarch.rpm                                                                       | 114 MB     00:01     
    (23/50): mailx-12.4-8.el6_6.x86_64.rpm                                                                                                 | 235 kB     00:00     
    (24/50): man-1.6f-39.el6.x86_64.rpm                                                                                                    | 265 kB     00:00     
    (25/50): nc-1.84-24.el6.x86_64.rpm                                                                                                     |  57 kB     00:00     
    (26/50): parquet-1.5.0+cdh5.9.0+176-1.cdh5.9.0.p0.30.el6.noarch.rpm                                                                    |  26 MB     00:00     
    (27/50): parquet-format-2.1.0+cdh5.9.0+14-1.cdh5.9.0.p0.30.el6.noarch.rpm                                                              | 467 kB     00:00     
    (28/50): pax-3.4-10.1.el6.x86_64.rpm                                                                                                   |  69 kB     00:00     
    (29/50): perl-5.10.1-144.el6.x86_64.rpm                                                                                                |  10 MB     00:05     
    (30/50): perl-CGI-3.51-144.el6.x86_64.rpm                                                                                              | 210 kB     00:00     
    (31/50): perl-Compress-Raw-Zlib-2.021-144.el6.x86_64.rpm                                                                               |  70 kB     00:00     
    (32/50): perl-Compress-Zlib-2.021-144.el6.x86_64.rpm                                                                                   |  46 kB     00:00     
    (33/50): perl-ExtUtils-MakeMaker-6.55-144.el6.x86_64.rpm                                                                               | 294 kB     00:00     
    (34/50): perl-ExtUtils-ParseXS-2.2003.0-144.el6.x86_64.rpm                                                                             |  46 kB     00:00     
    (35/50): perl-IO-Compress-Base-2.021-144.el6.x86_64.rpm                                                                                |  70 kB     00:00     
    (36/50): perl-IO-Compress-Zlib-2.021-144.el6.x86_64.rpm                                                                                | 136 kB     00:00     
    (37/50): perl-Module-Pluggable-3.90-144.el6.x86_64.rpm                                                                                 |  41 kB     00:00     
    (38/50): perl-Pod-Escapes-1.04-144.el6.x86_64.rpm                                                                                      |  33 kB     00:00     
    (39/50): perl-Pod-Simple-3.13-144.el6.x86_64.rpm                                                                                       | 213 kB     00:00     
    (40/50): perl-Test-Harness-3.17-144.el6.x86_64.rpm                                                                                     | 232 kB     00:00     
    (41/50): perl-Test-Simple-0.92-144.el6.x86_64.rpm                                                                                      | 113 kB     00:00     
    (42/50): perl-devel-5.10.1-144.el6.x86_64.rpm                                                                                          | 424 kB     00:00     
    (43/50): perl-libs-5.10.1-144.el6.x86_64.rpm                                                                                           | 579 kB     00:00     
    (44/50): perl-version-0.77-144.el6.x86_64.rpm                                                                                          |  52 kB     00:00     
    (45/50): redhat-lsb-core-4.0-7.el6.centos.x86_64.rpm                                                                                   |  25 kB     00:00     
    (46/50): sentry-1.5.1+cdh5.9.0+261-1.cdh5.9.0.p0.30.el6.noarch.rpm                                                                     |  56 MB     00:00     
    (47/50): solr-4.10.3+cdh5.9.0+458-1.cdh5.9.0.p0.30.el6.noarch.rpm                                                                      |  76 MB     00:00     
    (48/50): spark-core-1.6.0+cdh5.9.0+229-1.cdh5.9.0.p0.30.el6.noarch.rpm                                                                 | 112 MB     00:01     
    (49/50): time-1.7-38.el6.x86_64.rpm                                                                                                    |  26 kB     00:00     
    (50/50): zookeeper-3.4.5+cdh5.9.0+98-1.cdh5.9.0.p0.30.el6.x86_64.rpm                                                                   | 4.4 MB     00:00     
    --------------------------------------------------------------------------------------------------------------------------------------------------------------
    Total                                                                                                                          35 MB/s | 736 MB     00:21     
    Running rpm_check_debug
    Running Transaction Test
    Transaction Test Succeeded
    Running Transaction
      Installing : avro-libs-1.7.6+cdh5.9.0+115-1.cdh5.9.0.p0.30.el6.noarch                                                                                  1/62 
      Installing : bigtop-utils-0.7.0+cdh5.9.0+0-1.cdh5.9.0.p0.30.el6.noarch                                                                                 2/62 
      Installing : zookeeper-3.4.5+cdh5.9.0+98-1.cdh5.9.0.p0.30.el6.x86_64                                                                                   3/62 
      Updating   : db4-4.7.25-22.el6.x86_64                                                                                                                  4/62 
      Updating   : 1:perl-Pod-Escapes-1.04-144.el6.x86_64                                                                                                    5/62 
      Updating   : 4:perl-libs-5.10.1-144.el6.x86_64                                                                                                         6/62 
      Updating   : 1:perl-Pod-Simple-3.13-144.el6.x86_64                                                                                                     7/62 
      Updating   : 1:perl-Module-Pluggable-3.90-144.el6.x86_64                                                                                               8/62 
      Updating   : 3:perl-version-0.77-144.el6.x86_64                                                                                                        9/62 
      Updating   : 4:perl-5.10.1-144.el6.x86_64                                                                                                             10/62 
      Updating   : 1:perl-Compress-Raw-Zlib-2.021-144.el6.x86_64                                                                                            11/62 
      Updating   : perl-IO-Compress-Base-2.021-144.el6.x86_64                                                                                               12/62 
      Updating   : perl-IO-Compress-Zlib-2.021-144.el6.x86_64                                                                                               13/62 
      Installing : perl-CGI-3.51-144.el6.x86_64                                                                                                             14/62 
      Installing : bigtop-jsvc-0.6.0+cdh5.9.0+855-1.cdh5.9.0.p0.30.el6.x86_64                                                                               15/62 
      Installing : bigtop-tomcat-0.7.0+cdh5.9.0+0-1.cdh5.9.0.p0.30.el6.noarch                                                                               16/62 
      Installing : nc-1.84-24.el6.x86_64                                                                                                                    17/62 
      Installing : ed-1.1-3.3.el6.x86_64                                                                                                                    18/62 
      Installing : mailx-12.4-8.el6_6.x86_64                                                                                                                19/62 
      Installing : man-1.6f-39.el6.x86_64                                                                                                                   20/62 
      Installing : db4-cxx-4.7.25-22.el6.x86_64                                                                                                             21/62 
      Installing : db4-devel-4.7.25-22.el6.x86_64                                                                                                           22/62 
      Installing : gdbm-devel-1.8.0-39.el6.x86_64                                                                                                           23/62 
      Installing : perl-ExtUtils-MakeMaker-6.55-144.el6.x86_64                                                                                              24/62 
      Installing : perl-Test-Harness-3.17-144.el6.x86_64                                                                                                    25/62 
      Installing : 1:perl-ExtUtils-ParseXS-2.2003.0-144.el6.x86_64                                                                                          26/62 
      Installing : 4:perl-devel-5.10.1-144.el6.x86_64                                                                                                       27/62 
      Installing : perl-Test-Simple-0.92-144.el6.x86_64                                                                                                     28/62 
      Installing : time-1.7-38.el6.x86_64                                                                                                                   29/62 
      Installing : bc-1.06.95-1.el6.x86_64                                                                                                                  30/62 
      Installing : pax-3.4-10.1.el6.x86_64                                                                                                                  31/62 
      Installing : at-3.1.10-49.el6.x86_64                                                                                                                  32/62 
      Installing : redhat-lsb-core-4.0-7.el6.centos.x86_64                                                                                                  33/62 
      Installing : parquet-format-2.1.0+cdh5.9.0+14-1.cdh5.9.0.p0.30.el6.noarch                                                                             34/62 
      Installing : parquet-1.5.0+cdh5.9.0+176-1.cdh5.9.0.p0.30.el6.noarch                                                                                   35/62 
      Installing : hadoop-2.6.0+cdh5.9.0+1799-1.cdh5.9.0.p0.30.el6.x86_64                                                                                   36/62 
      Installing : hadoop-hdfs-2.6.0+cdh5.9.0+1799-1.cdh5.9.0.p0.30.el6.x86_64                                                                              37/62 
      Installing : hadoop-yarn-2.6.0+cdh5.9.0+1799-1.cdh5.9.0.p0.30.el6.x86_64                                                                              38/62 
      Installing : hadoop-mapreduce-2.6.0+cdh5.9.0+1799-1.cdh5.9.0.p0.30.el6.x86_64                                                                         39/62 
      Installing : hadoop-0.20-mapreduce-2.6.0+cdh5.9.0+1799-1.cdh5.9.0.p0.30.el6.x86_64                                                                    40/62 
      Installing : hadoop-client-2.6.0+cdh5.9.0+1799-1.cdh5.9.0.p0.30.el6.x86_64                                                                            41/62 
      Installing : hive-jdbc-1.1.0+cdh5.9.0+752-1.cdh5.9.0.p0.30.el6.noarch                                                                                 42/62 
      Installing : hive-1.1.0+cdh5.9.0+752-1.cdh5.9.0.p0.30.el6.noarch                                                                                      43/62 
      Installing : sentry-1.5.1+cdh5.9.0+261-1.cdh5.9.0.p0.30.el6.noarch                                                                                    44/62 
      Installing : solr-4.10.3+cdh5.9.0+458-1.cdh5.9.0.p0.30.el6.noarch                                                                                     45/62 
    The following warning applies to any collections configured to
    use Non-SolrCloud mode. Any such collection configuration will
    need to be upgraded, see Upgrading Cloudera Search for details.
      Installing : kite-1.0.0+cdh5.9.0+138-1.cdh5.9.0.p0.30.el6.noarch                                                                                      46/62 
      Installing : flume-ng-1.6.0+cdh5.9.0+74-1.cdh5.9.0.p0.30.el6.noarch                                                    

    以上是关于[补充资料] 手动搭建 Cloudera 环境的主要内容,如果未能解决你的问题,请参考以下文章

    Cloudera Manager环境搭建

    Cloudera Manager环境搭建

    HIVE环境搭建

    HADOOP环境搭建

    Hadoop伪分布式环境快速搭建

    基于Hadoop生态圈的数据仓库实践 —— 环境搭建