JAVA_HOME/bin:$PATH#source/etc/profile#java–versionjavaversion"1.8.0_77"Java(TM)SERuntimeEnvironment(build1.8.0_77-b03)JavaHotSpot(TM)64-BitServerVM(build25.77-b03,mixedmode)#slaver1#mkdir/usr/jdk64/#scp172.24.14.106://mnt/jdk-8u77-linux-x64.tar.gz.#tar-zxvfjdk-8u77-linux-x64.tar.gz-C/usr/jdk64/#vi/etc/profileexportJAVA_HOME=/usr/jdk64/jdk1.8.0_77exportPATH=$JAVA_HOME/bin:$PATH#source/etc/profile#java–versionjavaversion"1.8.0_77"Java(TM)SERuntimeEnvironment(build1.8.0_77-b03)JavaHotSpot(TM)64-BitServerVM(build25.77-b03,mixedmode)配置ambari-server#master#yum-yinstallambari-server安装MariaDB数据库#master#yuminstallmariadbmariadb-servermysql-connector-java启动服务#systemctlenablemariadb#systemctlstartmariadb配置MySQL#mysql_secure_installation按enter确认后设置数据库root密码,我们这里设置为“bigdata”Removeanonymoususers?[Y/n]y