使用安装包安装
centos 6
centos 7
安装前的准备
1、关闭selinux、iptables
主机互信
ssh-keygen
ssh-copy-id -i ~/.ssh/id_rsa.pub root@10.168.165.86
2、修改内核参数,编辑 /etc/sysctl.conf
echo "vm.swappiness=0" >> /etc/sysctl.conf
3、/etc/rc.local 加入如下配置
echo never > /sys/kernel/mm/redhat_transparent_hugepage/enabled
echo never > /sys/kernel/mm/redhat_transparent_hugepage/defrag
4、时钟同步
5、安装常用包
yum install MySQL-python python-psycopg2 mod_ssl httpd cyrus-sasl-gssapi redhat-lsb fuse fuse-libs bind-utils libxslt cyrus-sasl-plain openssl-devel -y
6、配置好主机名,例:
配置/etc/hosts
10.168.17.21 nn 121.40.143.51
10.168.165.86 dn1.hadoop
10.168.161.115 dn2.hadoop
安装步骤(版本直接安装最新的)
服务端安装
cloudera-manager-daemons-5.10.1-1.cm5101.p0.6.el6.x86_64.rpm
cloudera-manager-server-5.10.1-1.cm5101.p0.6.el6.x86_64.rpm
cloudera-manager-server-db-2-5.10.1-1.cm5101.p0.6.el6.x86_64.rpm
oracle-j2sdk1.7-1.7.0+update67-1.x86_64.rpm
启动
/etc/init.d/cloudera-scm-server-db start
/etc/init.d/cloudera-scm-server start
客户端安装
cloudera-manager-agent-5.10.1-1.cm5101.p0.6.el6.x86_64.rpm
cloudera-manager-daemons-5.10.1-1.cm5101.p0.6.el6.x86_64.rpm
oracle-j2sdk1.7-1.7.0+update67-1.x86_64.rpm
修改/etc/cloudera-scm-agent/config.ini
server_host=IP
启动
/etc/init.d/cloudera-scm-agent start
需要下载三样东西,
1、首先是与自己系统版本相对应的parcel包
2、然后是sha1文件,下载后修改为sha文件,
3、manifest.json
放于/opt/cloudera/parcel-repo下
chown -R cloudera-scm:cloudera-scm parcel-repo
需要重启服务端,然后继续
安装完成访问地址
username: 'admin' and password: 'admin' to continue installation
阅读(4711) | 评论(0) | 转发(0) |