假如我想安装5.7.0, 需要做如下 *** 作
打开一下两个网址查找是否有5.7.0文件夹, 如果有, 才能安装5.7.0版本, 否则, 选择其他版本
http://archive.cloudera.com/cm5/redhat/6/x86_64/cm/
http://archive.cloudera.com/cm5/redhat/6/x86_64/cm/
需禅租饥要在各失败的型磨agent机器上执行 mv /usr/bin/host /usr/bin/host.bak
楼主由于安装时没有修改yum源, 只是cdh版本太高, 和应用不兼容, 所以需要卸载cdh并安装低贺返版本5.7.0
卸载步骤:
参考博客: https://blog.csdn.net/wh211212/article/details/78743191
1、yum install cloudera-manager-daemons cloudera-manager-agent cloudera-manager-server2、cd /opt/cloudera/parcel-repo
(1)将第一部分下载的CDH Parcel文件(CDH-6.2.0-1.cdh6.2.0.p0.967373-el7.parcelCDH-6.2.0-1.cdh6.2.0.p0.967373-el7.parcel.sha256和manifest.json)上传至该目录下
(2)mv CDH-6.2.0-1.cdh6.2.0.p0.967373-el7.parcel.sha256 CDH-6.2.0-1.cdh6.2.0.p0.967373-el7.parcel.sha
(3)chown -R cloudera-scm:cloudera-scm /opt/cloudera/parcel-repo/*
3、将mysql-connector-java-5.1.47-bin.jar文件上传至CM Server节点上的/usr/share/java/目录下并重命名为mysql-connector-java.jar
4、安裂拍高装 mysql(安装过程略),并创建相应库
mysql>CREATE DATABASE scm DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci
mysql>CREATE DATABASE amon DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci
mysql>CREATE DATABASE rman DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci
mysql>CREATE DATABASE metastore DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci
mysql>GRANT ALL ON scm.* TO 'scm'肆尺@'%' IDENTIFIED BY 'scm'
mysql>GRANT ALL ON amon.* TO 'amon'@'%' IDENTIFIED BY 'amon'
mysql>GRANT ALL ON rman.* TO 'rman'@'%' IDENTIFIED BY 'rman'
mysql>GRANT ALL ON metastore.* TO 'hive'@'%' IDENTIFIED BY 'hive'
mysql>FLUSH PRIVILEGES
mysql数据库与CM Server是同一台主机
执行命令贺蔽:/opt/cloudera/cm/schema/scm_prepare_database.sh mysql scm scm
mysql数据库与CM Server不在同一台主机上
执行命令:/opt/cloudera/cm/schema/scm_prepare_database.sh mysql -h --scm-host scm scm
5、启动cloudera-scm-server
systemctl start cloudera-scm-server
6、登录页面进行配置
ip:7180
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)