CentOS7.2卸载完CDH5.12后重装CDH

1因为是重装很多环境ok

  A mysql环境ok

  B 防火墙ok

  C hostname绑定也没有问题

  D jdk也是ok

  E root用户,所以不涉及权限,如果不是请设置sudo权限用户

    F ntp服务正常

  G httpd服务正常

  H 本地yum源配置正常

  I mysql连接驱动之前也有没有删除,正常 cd /usr/share/java/  3台机器都有

 

2 检查自己的软件包ok,之前设置过

   http://172.24.8.138/cm/5

  http://172.24.8.138/parcels/

下面是外网访问截图,上面ip内网,也可以curl一下,在各个机器上

 

 

3 重置MySQL初始化数据

drop database cmf;

drop user cmf@'%';
drop user amon@'%';



cm-server:
create database cmf DEFAULT CHARACTER SET utf8;
grant all on cmf.* TO 'cmf'@'%' IDENTIFIED BY 'Zj314XXX!';
flush privileges;




amon:
create database amon DEFAULT CHARACTER SET utf8;
grant all on amon.* TO 'amon'@'%' IDENTIFIED BY 'Zj314XXX!';
flush privileges;

  

4 在hadoop001节点上,安装rpm包

cd /var/www/html/cm/5/RPMS/x86_64

yum install -y ./cloudera-manager-daemons-5.12.0-1.cm5120.p0.120.el7.x86_64.rpm

 yum install -y cloudera-manager-server-5.12.0-1.cm5120.p0.120.el7.x86_64.rpm

 

 

5 配置数据库

vim /etc/cloudera-scm-server/db.properties 

# Copyright (c) 2012 Cloudera, Inc. All rights reserved.
#
# This file describes the database connection.
#

# The database type
# Currently 'mysql', 'postgresql' and 'oracle' are valid databases.
com.cloudera.cmf.db.type=mysql

# The database host
# If a non standard port is needed, use 'hostname:port'
com.cloudera.cmf.db.host=172.24.8.138

# The database name
com.cloudera.cmf.db.name=cmf

# The database user
com.cloudera.cmf.db.user=cmf

# The database user's password
com.cloudera.cmf.db.password=Zj314XXX!

# The db setup type
# By default, it is set to INIT
# If scm-server uses Embedded DB then it is set to EMBEDDED
# If scm-server uses External DB then it is set to EXTERNAL
com.cloudera.cmf.db.setupType=EXTERNAL
~                                                     

6 启动服务并开放7180端口外网访问

 service cloudera-scm-server  start

http://39.104.15.60:7180/cmf/login

 

7  用户名/密码 admin/admin 开始配置 关键步骤截图

 遇到问题 Search hosts过不去

原因,是自己阿里云的公网ip之前缓存了, known_hosts文件重新生成一个空白文件,然后同步到其他机器

之后ok,还有启动脚本的JAVA_HOME问题,之前的博客有提到过

 

 

 

 之前准备好的连接填写进去

 

 

 

 解决JAVA_HOME问题,详见之前博客的几种情况

执行提示的脚本命令

 echo never > /sys/kernel/mm/transparent_hugepage/defrag
 echo never > /sys/kernel/mm/transparent_hugepage/enabled

  

 

     

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

注意hdfs的datanode目录要挂载到大硬盘上面,其他默认

 

 

 

 

 

 

JAVA_HOME是最大的坑,最后发现jdk必须安装在/usr/java 目录下 

posted @ 2019-02-26 11:22  Questions张  阅读(1527)  评论(0编辑  收藏  举报