美文网首页
ambari2.5 & hdp2.6 本地安装的修改记录

ambari2.5 & hdp2.6 本地安装的修改记录

作者: _oeo___ | 来源:发表于2018-06-06 22:36 被阅读25次

    下面是ambari的安装记录,由于写的人懒所以只记录了核心部分。

    1.关闭防火墙

    service iptables stop
    chkconfig iptables off
    

    2.无密码登录

    ssh-keygen
    
    cd ~/.ssh
    cat id_rsa.pub >authorized_keys
    #test
    ssh localhost
    

    3.ulimit

    vi /etc/security/limits.conf

            * soft noproc 11000
            * hard noproc 11000
            * soft nofile 4100
            * hard nofile 4100
    
    

    4.hosts

    ip1 name1
    ip2 name2
    
    1. ntpd start

    service ntpd start
    chkconfig ntpd on
    

    6.关闭selinux

    /usr/bin/setenforce 修改SELinux的实时运行模式
    关闭SELinux:
    1、临时关闭(不用重启机器):
    setenforce 0                  ##设置SELinux 成为permissive模式
    ##setenforce 1 设置SELinux 成为enforcing模式
    2、修改配置文件需要重启机器:
    修改/etc/selinux/config 文件
    将SELINUX=enforcing改为SELINUX=disabled
    
    

    7.安装JDK

    rpm -ivh http://192.168.0.11/hdputil/jdklocal-8u151-linux-x64.rpm
    
    #安装路径为:
    /usr/java/jdk1.8.0_151
    
    #手动
    vi /etc/profile
    export JAVA_HOME=/opt/jdk1.8.0_101
    export PATH=$JAVA_HOME/bin:$PATH
    
    

    安装源

    下载安装包
    下载地址去官网找。

    创建repo,命令:

    # ll
    total 8271672
    drwxr-xr-x.  3 ambari-qa users       4096 Jul  3 13:31 ambari
    -rw-r--r--.  1 root      root  1619028530 Nov  3 23:13 ambari-2.5.1.0-centos6.tar.gz
    drwxr-xr-x.  3 ambari-qa users       4096 Jun  1 07:46 HDP
    -rw-r--r--.  1 root      root  6851138150 Nov  3 23:08 HDP-2.6.1.0-centos6-rpm.tar.gz
    drwxr-xr-x. 20 root      root        4096 Nov  3 23:42 hdputil
    
    # cd HDP_HOME
    
    # createrepo .`
    

    编辑/etc/yum.repo.d/ambari.repo

    [ambari-2.5.0.3]
    name=ambari Version - ambari-2.5.0.3
    baseurl=http://192.168.0.11/ambari/centos6
    gpgcheck=0
    gpgkey=http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.5.0.3/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
    enabled=1
    priority=1
    

    编辑/etc/yum.repo.d/HDP.repo

    [root@ambari yum.repos.d]# more HDP.repo 
    [HDP-2.6]
    name=HDP-2.6
    baseurl=http://192.168.0.11/HDP/centos6
    
    path=/
    enabled=1
    gpgcheck=0
    

    编辑/etc/yum.repo.d/HDP.repo

    [root@ambari yum.repos.d]# more HDP-UTILS.repo
    [HDP-UTILS-1.1.0.21]
    name=HDP-UTILS-1.1.0.21
    baseurl=http://192.168.0.11/hdputil
    
    path=/
    enabled=1
    gpgcheck=0
    

    ambari的界面上

    http://192.168.2.201/HDP/centos6/2.6.4.0-91/
    
    http://192.168.2.201/HDP-UTIL/
    
    http://192.168.2.201/HDP-GPL/centos6/2.6.4.0-91/
    

    安装ambari server

    ambari-server setup
    
    #然后就各种下一步
    
    ambari-server start
    #等待启动
    #访问http://xxx:8080 
    

    结束

    相关文章

      网友评论

          本文标题:ambari2.5 & hdp2.6 本地安装的修改记录

          本文链接:https://www.haomeiwen.com/subject/vroisftx.html