ambari1.7安装

来源:互联网 发布:ubuntu iso安装教程 编辑:程序博客网 时间:2024/06/06 19:05

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.gzwget -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 createrepomkdir -p /var/www/html/yum install epel-releaseyum repolist[root@master ~]# yum install ambari-server已加载插件:fastestmirror, product-id, refresh-packagekit, subscription-managerThis 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 MInstalled 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 setupUsing python  /usr/bin/python2.6Setup ambari-serverChecking SELinux...SELinux status is 'enabled'SELinux mode is 'enforcing'Temporarily disabling SELinuxWARNING: SELinux is set to 'permissive' mode and temporarily disabled.OK to continue [y/n] (y)? yCustomize user account for ambari-server daemon [y/n] (n)? yEnter user account for ambari-server daemon (root):adminAdjusting 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):1To 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)? yDownloading 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.gzJDK distribution size is 142376665 bytesjdk-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.gzInstalling JDK to /usr/jdk64Successfully installed JDK to /usr/jdk64/jdk1.7.0_67Downloading JCE Policy archive from http://public-repo-1.hortonworks.com/ARTIFACTS/UnlimitedJCEPolicyJDK7.zip to /var/lib/ambari-server/resources/UnlimitedJCEPolicyJDK7.zipSuccessfully downloaded JCE Policy archive to /var/lib/ambari-server/resources/UnlimitedJCEPolicyJDK7.zipCompleting 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): 1Database 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 PostgreSQLConfiguring 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-serverambari-server     ambari-server.py  [root@master ~]# ambari-serverUsing python  /usr/bin/python2.6Usage: /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/目录下。这个特别提醒需要将所有该配置都换个地方。



0 0
原创粉丝点击