創建相關用戶及數據庫: create database cmf default character set utf8 grant all on cmf.* to ‘cmf’@’localhost’ identified by ‘cmf_password’ grant all on cmf.* to ‘cmf’@’%’ identified by ‘cmf_password’ grant all on cmf.* to ‘cmf’@’mhosts[$cindex]′identifiedby‘cmfpassword′dropdatabasecmfcreatedatabasecmfcreatedatabasehivedefaultcharactersetutf8grantallonhive.∗to‘hive′@′localhost′identifiedby‘hivepassword′grantallonhive.∗to‘hive′@′grantallonhive.∗to‘hive′@′{m_hosts[{c_index}]}’ identified by ‘hive_password’ drop database hive create database hive create database hue default character set utf8 grant all on hue.* to ‘hue’@’localhost’ identified by ‘hue_password’ grant all on hue.* to ‘hue’@’%’ identified by ‘hue_password’ grant all on hue.* to ‘hue’@’{m_hosts[{c_index}]}’ identified by ‘hue_password’ drop database hue create database hue create database am default character set utf8 grant all on am.* to ‘am’@’localhost’ identified by ‘am_password’ grant all on am.* to ‘am’@’%’ identified by ‘am_password’ grant all on am.* to ‘am’@’{m_hosts[{c_index}]}’ identified by ‘am_password’ drop database am create database am create database os default character set utf8 grant all on os.* to ‘os’@’localhost’ identified by ‘os_password’ grant all on os.* to ‘os’@’%’ identified by ‘os_password’ grant all on os.* to ‘os’@’{m_hosts[${c_index}]}’ identified by ‘os_password’ drop database os create database os flush privileges
安裝並啓動httpd服務:
運行 yum install -y httpd 安裝httpd服務
運行 systemctl enable httpd 設置httpd服務開機啓動
運行 service httpd start 啓動httpd服務
創建parcels服務(依次運行如下命令): cd /var/www/html mkdir parcels cd parcels mv ~/CDH-5.11.1-1.cdh5.11.1.p0.4-el7.parcel ./ mv ~/CDH-5.11.1-1.cdh5.11.1.p0.4-el7.parcel.sha ./ mv ~/manifest.json ./