使用VI编译文件,暂时修改成Ubuntu12.04 LTS的信息:
root@m1:~# vi /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=12.04 DISTRIB_CODENAME=precise DISTRIB_DESCRIPTION="Ubuntu 12.04.3 LTS" 4.9.2、升级Ubuntu的utils包,CM所必需要在所有机器上安装debian的包,升级utils,执行以下命令:(4台机器都要执行)
root@m1:~# wget +deb7u1_all.deb root@m1:~# dpkg -i fuse-utils_2.9.0-2+deb7u1_all.deb 4.9.3、将CDH5的软件源添加到Apt中 root@m1:~# curl "http://archive.cloudera.com/cm5/ubuntu/precise/amd64/cm/cloudera.list" -o /etc/apt/sources.list.d/cloudera_precise.list root@m1:~# curl -s | sudo apt-key add - root@m1:~# apt-get update 4.9.4、安装Cloudera Manager安装Cloudera Manager(4台机器都要执行)
root@m1:~# apt-get install cloudera-manager-daemons cloudera-manager-server 4.9.5、修改Cloudera-Manager-Server的配置文件db.properties,设置MySql连接修改Cloudera-Manager-Server的配置文件db.properties,设置刚才我们在(4.7)Mysql中创建的cmf数据库、用户名、密码(4台机器都要执行)
root@m1:~# vi /etc/cloudera-scm-server/db.properties com.cloudera.cmf.db.type=mysql com.cloudera.cmf.db.host=m1.linuxidc.com com.cloudera.cmf.db.name=cmf com.cloudera.cmf.db.user=cmf com.cloudera.cmf.db.password=xyz 4.9.6、安装ntp ,CM agents需要用到”ntpdc”安装ntp ,CM agents需要用到”ntpdc”(4台机器都要执行)
root@m1:~# apt-get install ntp Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libopts25 Suggested packages: ntp-doc The following NEW packages will be installed: libopts25 ntp 0 upgraded, 2 newly installed, 0 to remove and 4 not upgraded. Need to get 666 kB of archives. After this operation, 1,668 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 trusty/main libopts25 amd64 1:5.18-2ubuntu2 [55.3 kB] Get:2 trusty/main ntp amd64 1:4.2.6.p5+dfsg-3ubuntu2 [611 kB] Fetched 666 kB in 1s (537 kB/s) Selecting previously unselected package libopts25:amd64. (Reading database ... 95843 files and directories currently installed.) Preparing to unpack .../libopts25_1%3a5.18-2ubuntu2_amd64.deb ... Unpacking libopts25:amd64 (1:5.18-2ubuntu2) ... Selecting previously unselected package ntp. Preparing to unpack .../ntp_1%3a4.2.6.p5+dfsg-3ubuntu2_amd64.deb ... Unpacking ntp (1:4.2.6.p5+dfsg-3ubuntu2) ... Processing triggers for man-db (2.6.7.1-1) ... Processing triggers for ureadahead (0.100.0-16) ... Setting up libopts25:amd64 (1:5.18-2ubuntu2) ... Setting up ntp (1:4.2.6.p5+dfsg-3ubuntu2) ... * Starting NTP server ntpd [ OK ] Processing triggers for libc-bin (2.19-0ubuntu6.1) ... Processing triggers for ureadahead (0.100.0-16) ... root@m1:~# 4.9.7、重启Cloudera Manager Server