安装管理程序
1 安装redoop 软件包
下载执行安装脚本即可实现一键安装
curl --proto '=https' --tlsv1.2 -sSf https://redoop-public-1.oss-cn-beijing.aliyuncs.com/redoop/9.1/x86/install_redoop.sh | sh
等待安装完成即可
2 分发配置和repo 到其他服务器
sh /opt/redoop/bin/scp.sh master slave1 slave2
3 初始化Ambari服务
#安装Ambari Server
ambari-server setup
# jdk位置 /opt/jdk1.8
#选择Custom JDK 地址,并输入 JDK Home 地址,后续一直默认
Using python /usr/bin/python
Setup ambari-server
Checking SELinux...
SELinux status is 'disabled'
Customize user account for ambari-server daemon [y/n] (n)?
Adjusting ambari-server permissions and ownership...
Checking firewall status...
Checking JDK...
[1] Oracle JDK 1.8 + Java Cryptography Extension (JCE) Policy Files 8
[2] Custom JDK ============================================================
Enter choice (1): 2
WARNING: JDK must be installed on all hosts and JAVA_HOME must be valid on all hosts.
WARNING: JCE Policy files are required for configuring Kerberos security. If you plan to use Kerberos,please make sure JCE Unlimited Strength Jurisdiction Policy Files are valid on all hosts.
Path to JAVA_HOME: /opt/jdk1.8 #填入自己的jdk路径
Validating JDK on Ambari Server...done.
Check JDK version for Ambari Server...
JDK version found: 8 Minimum
JDK version is 8 for Ambari. Skipping to setup different JDK for Ambari Server. Checking GPL software agreement...
GPL License for LZO: https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html
Enable Ambari Server to download and install GPL Licensed LZO packages [y/n] (n)? Completing setup...
Configuring database...
Enter advanced database configuration [y/n] (n)?
Configuring database...
Default properties detected. Using built-in database.
Configuring ambari database...
Checking PostgreSQL...
Running initdb: This may take up to a minute.
Initializing database ... OK
About to start PostgreSQL Configuring local database...
Configuring PostgreSQL...
Restarting PostgreSQL
Creating schema and user... done.
Creating tables... done.
Extracting system views...
Ambari repo file doesn't contain latest json url, skipping repoinfos modification
Adjusting ambari-server permissions and ownership...
Ambari Server 'setup' completed successfully.
4 启动并检查Ambari状态
#启动 Ambari 服务
ambari-server start
#检查启动状态
ambari-server status
至此,服务组件启动完毕 访问8080端口即可安装大数据组件