1> removing the UUID of the agent node
# rm-rf/opt/cm-5.4.7/lib/cloudera-scm-agent/*
2> emptying the master node cm database
Go to the MySQL database of the master node, and then drop db cm;
3> Removing Agent node Namenode and Datanode node information
# rm-rf/opt/dfs/nn/*
# rm-rf/opt/dfs/dn/*
4> re-initializing the CM database on the primary node
#/opt/cm-5.4.7/share/cmf/schema/scm_prepare_database.sh MySQL cm-hlocalhost-uroot-p123456--scm-host localhost SCM SCM SCM
5> Execute startup script
Master node: #/opt/cm-5.4.7/etc/init.d/cloudera-scm-server Start
Agent node: #/opt/cm-5.4.7/etc/init.d/cloudera-scm-agent Start
After a while, the CDH installation can be re-installed via the master node's 7180 port http://Master node Ip:7180/cmf/login.
For offline installation of CDH, refer to: CentOS offline installation Cloudera Manager 5 and CDH5 (version 5.1.3) detailed documentation
Note: MySQL's JDBC driver is required during the installation of Hive and Oozie.
the copy location of Hive is : # Cp/opt/cm-5.4.7/share/cmf/lib/mysql-connector-java-5.1.33-bin.jar /opt/cloudera/ parcels/cdh-5.4.7-1.cdh5.4.7.p0.3/lib/hive/lib/
the copy location of the Oozie is : # Cp/opt/cm-5.4.7/share/cmf/lib/mysql-connector-java-5.1.33-bin.jar /var/lib/oozie/
CDH installation failed, how to reinstall