Installation CDH3 on Cent OS 본문

Programming

Installation CDH3 on Cent OS

halatha 2011. 8. 25. 04:47

Cent OS

  1. during installation
    1. select only 'server' package
    2. manual setting for IP address
    3. manual setting for DNS
  2. after installation
    1. # yum -y update
    2. # /etc/init.d/ssh start
  3. set service which need to start automatically
    1. http://apollo89.com/blog/329

    2. # ntsysv

CDH

  1. Prerequisite
    1. add user for servers
      1. http://www.startupcto.com/server-tech/centos/adding-a-user

        http://devhome.tistory.com/tag/useradd

        http://wiki.centos.org/TipsAndTricks/BecomingRoot

      2. # groupadd [group name]
      3. # useradd [user id] -g [group name] -d /home/[user id] -s /bin/bash
      4. # passwd
    2. make added users password-less and root-privileged: http://devtainer.blogspot.com/2011/03/sudo-in-centos_16.html
      1. # su -
      2. # chmod u+w /etc/sudoers
      3. register user by setting '[user id]    ALL=(ALL)    NOPASSWD: ALL'

      4. # chmod u-w /etc/sudoers
      1. # vi /etc/sysconfig/iptables
      2. add this line '-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport [port number] -j ACCEPT'
      3. # /etc/init.d/iptables restart
      4. # iptables -L –n
      1. # service iptables save
      2. # service iptables stop
      3. # chkconfig iptables off
    3. check whether 'ping archive.cloudera.com' works: it didn't work, but it's okay to install
    4. configure DNS and reverse DNS properly: network manager's work
      1. http://itknowledgeexchange.techtarget.com/itanswers/how-to-configure-2/
      2. http://www.lamolabs.org/blog/282/how-to-setup-a-dns-server-on-centos-5/
      3. http://blueamor.tistory.com/98
      4. http://faq.hostway.co.kr/xe/1344
      5. http://www.starhost.co.kr/xe/index.php?mid=hosting_tip_server&page=3&document_srl=80494
      6. http://ituner.tistory.com/132

      1. # sestatus
      2. # vi /etc/selinux/config
      3. set 'SELINUX=disabled'

      4. # reboot
    5. check /etc/hosts
      1. if there is no line '10.1.20.xy ha01.something.com ha01' for ha01 and '10.1.20.zw ha02.something.com ha02' for ha02, scm installer doesn't work properly

      2. before modifying /etc/hosts: IP Adress has wrong information 127.0.0.1 for ha01.something.com

  2. execute scm installer
    1. $ wget http://archive.cloudera.com/scm/installer/latest/scm-installer.bin
    2. $ chmod u+x ./scm-installer.bin
    3. $ sudo ./scm-installer.bin
    4. If failed, execute it again then It'll work
    1. User Guide for SCM Express: https://ccp.cloudera.com/display/CDHDOC/User+Guide+for+Service+and+Configuration+Manager+Express+Edition
    2. Etc
      1. http://www.cloudera.com/blog/2011/07/scm-express-now-anyone-can-experience-the-power-of-apache-hadoop/
      2. http://kyiimn.tistory.com/tag/CDH3
Comments