Saturday, November 11, 2017

Install Cloudera Manager and CDH using local repository

Step 1: install prerequsite packages:
yum install yum-utils createrepo httpd
Step 2: prepare httpd server
>>>> /etc/httpd/conf.d/cloudera.conf
Alias "/cm" "/repo/cm"
< Directory "/repo/cm">
    Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted
< /Directory>
Alias "/cdh" "/repo/cdh"
< Directory "/repo/cdh">
    Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted

Alternatively, using python SimpleHTTPServer built-in module:
[root@cdh-vm repo]# cd /repo/
[root@cdh-vm repo]# python -m SimpleHTTPServer 80
Serving HTTP on 0.0.0.0 port 80 ...

Step 3: download CM and parcels into respective folder.
https://archive.cloudera.com/cm5/redhat/7/x86_64/cm/5.13.0/RPMS/
https://archive.cloudera.com/cdh5/parcels/5.13/
Step 4: Setup local repo
[root@cdh-vm ~]# createrepo /repo/cm/
>>>>>>> /etc/yum.repos.d/cloudera-local.repo
[cloudera-local]
name=cloudera-local
baseurl=http://cdh-vm/cm/
gpgcheck=0
enabled=1
Step 5: Install Cloudera Manager
[root@cdh-vm cm]# yum install cloudera-manager-server cloudera-manager-daemons
Step 6: Configure CM using mysql
[root@cdh-vm ~]# /usr/share/cmf/schema/scm_prepare_database.sh mysql cmserver cmserver password
Step 7: login http://cdh-vm.dbaglobe.com:7180 to setup cluster
ScreenHunter 1812
ScreenHunter 1813

No comments:

Post a Comment