1 下载repo
根据hdp的文档http://zh.hortonworks.com/hdp/downloads/
按照上面说的下载两个
wget -nv http://public-repo-1.hortonworks.com/ambari/centos6/ambari-1.7.0-centos6.tar.gz
wget -nv http://public-repo-1.hortonworks.com/HDP/centos6/2.x/GA/2.2.0.0/hdp.repo -O /etc/yum.repos.d/HDP.repo
2 安装
yum install yum-utils createrepo
mkdir -p /var/www/html/
yum install epel-release
yum repolist
[root@master ~]# yum install ambari-server
已加载插件:fastestmirror, product-id, refresh-packagekit, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
设置安装进程
Loading mirror speeds from cached hostfile
* epel: epel.mirror.srv.co.ge
解决依赖关系
--> 执行事务检查
---> Package ambari-server.noarch 0:1.7.0-169 will be 安装
--> 完成依赖关系计算
依赖关系解决
===================================================================================================
软件包 架构 版本 仓库 大小
===================================================================================================
正在安装:
ambari-server noarch 1.7.0-169 Updates-ambari-1.7.0 96 M
事务概要
===================================================================================================
Install 1 Package(s)
总下载量:96 M
Installed size: 123 M
确定吗?[y/N]:y
下载软件包:
ambari-server-1.7.0-169.noarch.rpm | 96 MB 05:36
运行 rpm_check_debug
执行事务测试
事务测试成功
执行事务
正在安装 : ambari-server-1.7.0-169.noarch 1/1
Verifying : ambari-server-1.7.0-169.noarch 1/1
已安装:
ambari-server.noarch 0:1.7.0-169
完毕!
[root@master ~]# ambari-server setup
Using python /usr/bin/python2.6
Setup ambari-server
Checking SELinux...
SELinux status is 'enabled'
SELinux mode is 'enforcing'
Temporarily disabling SELinux
WARNING: SELinux is set to 'permissive' mode and temporarily disabled.
OK to continue [y/n] (y)? y
Customize user account for ambari-server daemon [y/n] (n)? y
Enter user account for ambari-server daemon (root):admin
Adjusting ambari-server permissions and ownership...
Checking firewall...
Checking JDK...
[1] - Oracle JDK 1.7 + Java Cryptography Extension (JCE) Policy Files 7
[2] - Oracle JDK 1.6 + Java Cryptography Extension (JCE) Policy Files 6
[3] - Custom JDK
==============================================================================
Enter choice (1):1
To download the Oracle JDK and the Java Cryptography Extension (JCE) Policy Files you must accept the license terms found at http://www.oracle.com/technetwork/java/javase/terms/license/index.html and not accepting will cancel the Ambari Server setup and you must install the JDK and JCE files manually.
Do you accept the Oracle Binary Code License Agreement [y/n] (y)? y
Downloading JDK from http://public-repo-1.hortonworks.com/ARTIFACTS/jdk-7u67-linux-x64.tar.gz to /var/lib/ambari-server/resources/jdk-7u67-linux-x64.tar.gz
JDK distribution size is 142376665 bytes
jdk-7u67-linux-x64.tar.gz... 100% (135.8 MB of 135.8 MB)
Successfully downloaded JDK distribution to /var/lib/ambari-server/resources/jdk-7u67-linux-x64.tar.gz
Installing JDK to /usr/jdk64
Successfully installed JDK to /usr/jdk64/jdk1.7.0_67
Downloading JCE Policy archive from http://public-repo-1.hortonworks.com/ARTIFACTS/UnlimitedJCEPolicyJDK7.zip to /var/lib/ambari-server/resources/UnlimitedJCEPolicyJDK7.zip
Successfully downloaded JCE Policy archive to /var/lib/ambari-server/resources/UnlimitedJCEPolicyJDK7.zip
Completing setup...
Configuring database...
Enter advanced database configuration [y/n] (n)? y
==============================================================================
Choose one of the following options:
[1] - PostgreSQL (Embedded)
[2] - Oracle
[3] - MySQL
[4] - PostgreSQL
==============================================================================
Enter choice (1): 1
Database Name (ambari):
Postgres schema (ambari):
Username (ambari):
Enter Database Password (bigdata):
Re-enter password:
Default properties detected. Using built-in database.
Checking PostgreSQL...
Running initdb: This may take upto a minute.
正在初始化数据库:[确定]
About to start PostgreSQL
Configuring local database...
Connecting to local database...done.
Configuring PostgreSQL...
Extracting system views...
ambari-admin-1.7.0.169.jar
..
Adjusting ambari-server permissions and ownership...
Ambari Server 'setup' completed successfully.
[root@master ~]# ambari-server
ambari-server ambari-server.py
[root@master ~]# ambari-server
Using python /usr/bin/python2.6
Usage: /usr/sbin/ambari-server
{start|stop|restart|setup|upgrade|status|upgradestack|setup-ldap|sync-ldap|setup-security|refresh-stack-hash} [options]
Use usr/sbin/ambari-server <action> --help to get details on options available.
Or, simply invoke ambari-server.py --help to print the options.
ambari-server start
HDP安装
安装hadoop的过程中需要使用本地yum源,无奈公司用代理上网但是本地源就不能用代理。安装中遇到错误就得切换到代理源把需要用到的组件先安好了再用ambari retry一下。不知道是不是因为我用了red hat 6.4的原因。 系统默认会将所有组件安装到/boot/efi/目录下。这个特别提醒需要将所有该配置都换个地方。
本文档介绍了如何在HDP上安装Ambari 1.7。参照Hortonworks的官方文档,你需要下载两个HDP安装文件来开始安装过程。
1096

被折叠的 条评论
为什么被折叠?



