Cloudera Manager方式在Hype-V中安装CDH4

安装 RHEL6.3

首先按照常规方式安装 RHEL6.3,注意需要设置 hostname 为 FQDN 格式(如 cdh0.localdomain)

由于Hyper-v默认无法识别网卡驱动,需要等安装CI后手动设置,参见下一步说明
                                                                                            #1

安装Hyper-V CI

  • 设置eth0

检查配置文件 /etc/sysconfig/network-scripts/ifcfg-eth0 是否存在,如不存在则创建静态配置:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
BOOTPROTO=static
# 广播地址(非必须)
BROADCAST=255.255.255.255
IPADDR=192.168.1.103
NETMASK=255.255.255.0
# 网络地址(非必须)
NETWORK=192.168.1.0
# MAC地址
HWADDR=00:0C:29:01:98:27
# 网关地址
GATEWAY=192.168.1.1
ONBOOT=yes
  • 设置 DHCP
1
2
3
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
  • 检查hostname
1
vim /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=localhost.localdomain
  • 激活eth0
1
2
ifconfig eth0 up
dhclient eth0
  • 设置开机激活eth0
1
2
echo "ifconfig eth0 up" >> /etc/rc.local
echo "dhclient eth0" >> /etc/rc.local
  • 重启网络服务进行测试
1
2
/etc/init.d/network restart
ifconfig
  • 重启系统,使hostname生效

  • 设置hosts

1
echo "$IP $hostname" >> /etc/hosts
  • 关闭selinux
1
vim /etc/selinux/conf

设置为selinux选项为disabled

  • 关闭iptables
1
2
chkconfig iptables off
service chkconfig stop
  • 设置RHEL6.3DVD镜像源
1
vim /etc/yum.repos.d/rhel-63-dvd.repo

设置内容:

[RHEL]
name=rhel6.3
baseurl=http://192.168.16.100/RHEL/RHEL63/
gpgcheck=1
gpgkey=http://192.168.16.100/RHEL/RHEL63/RPM-GPG-KEY-redhat-release.gpg
enabled=1
                                                                                            #3
  • 安装postgresql
1
2
3
4
# 安装缺失依赖包
yum install fuse-libs
easy_install argparse
yum install fuse-libs

参考 Cloudera 文档安装 CDH4

Installation Path A - Automated Installation by Cloudera Manager