一、安装jdk配java环境
rpm -ivh jdk.rpm
打开/etc/profile
增加:
JAVA_HOME=/usr/java/jdk1.7.0_60 CLASSPATH=.:$JAVA_HOME/lib.tools.jar PATH=$JAVA_HOME/bin:$PATH export JAVA_HOME CLASSPATH PATH
二、安装mysql
yum install mysql-server mysql #初始化 mysql_install_db #运行production推荐的那个初始化,来设置密码#新建一个高权限的临时账户 mysql> grant all on *.* to 'temp'@'%' identified by 'temp' with grant option;#运行cm的脚本来进行数据库的创建 /opt/cm-5.1.1/share/cmf/schema/scm_prepare_database.sh mysql -h localhost -utemp -ptemp --scm-host localhost scm scm scm
三、安装cdh Manager
#创建目录 mkdir /opt #解压cm的包到目录 tar xzvf cm.tar.gz -C /opt/cm-5.1.1/run/cloudera-scm-server vim /opt/cm-5.1.1/etc/cloudera-scm-agent/config.ini serverhost=localhost
四、启动cdh Manager
/opt/cm-5.1.1/etc/init.d/cloudera-scm-agent start /opt/cm-5.1.1/etc/init.d/cloudera-scm-server start
五、访问管理页面
http://localhost:7180
账号密码:admin/admin
参考:
http://debugo.com/cm5-install/
http://www.cloudera.com/content/cloudera-content/cloudera-docs/CM5/latest/Cloudera-Manager-Installation-Guide/cm5ig_mysql.html
http://www.cloudera.com/content/cloudera-content/cloudera-docs/CM5/latest/Cloudera-Manager-Installation-Guide/cm5ig_install_path_C.html?scroll=cmig_topic_6_7