hdp搭建记录(待完善)

参考:https://zhuanlan.zhihu.com/p/37322462
https://blog.51cto.com/hsbxxl/1981411
https://www.jianshu.com/p/580be22929ad

1.nginx搭建yum源
https://blog.51cto.com/meiling/2069005
vim /etc/nginx/conf.d/hdp.conf

server {
    listen       81 default_server;
    server_name  _;
    root         /usr/share/nginx/html;

    # Load configuration files for the default server block.
    include /etc/nginx/default.d/*.conf;

    location / {
        root /hdp;
        index  index.html index.htm;
         autoindex on;
         autoindex_exact_size off;
         autoindex_localtime on;
         proxy_set_header X-Real-IP $remote_addr;
         proxy_set_header REMOTE-HOST $remote_addr;
         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }

    error_page 404 /404.html;
        location = /40x.html {
    }

    error_page 500 502 503 504 /50x.html;
        location = /50x.html {
    }

}

http://10.96.76.197:81/

tar -zxvf ambari-2.5.0.3-centos6.tar.gz -C /hdp/ambari/
tar -zxvf HDP-2.6.0.3-centos6-rpm.tar.gz -C /hdp/hdp
tar -zxvf HDP-UTILS-1.1.0.21-centos6.tar.gz -C /hdp/hdp

ambari.repo

#VERSION_NUMBER=2.5.0.3-7
[ambari-2.5.0.3]
name=ambari Version - ambari-2.5.0.3
baseurl=http://10.96.76.197:81/ambari/ambari/centos6/
gpgcheck=0
gpgkey=http://10.96.76.197:81/ambari/ambari/centos6/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
enabled=1
priority=1

hdp.repo

[HDP-2.6.0.3]
name=HDP Version - HDP-2.6.0.3
baseurl=http://10.96.76.197:81/hdp/HDP/centos6/
gpgcheck=0
gpgkey=http://10.96.76.197:81/hdp/HDP/centos6/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
enabled=1
priority=1


[HDP-UTILS-1.1.0.21]
name=HDP-UTILS Version - HDP-UTILS-1.1.0.21
baseurl=http://10.96.76.197:81/hdp/
gpgcheck=0
gpgkey=http://10.96.76.197:81/hdp/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
enabled=1
priority=1

target host填的是主机名,不是ip,也不是域名
hdp搭建记录(待完善)
会发现有3个警告:
hdp搭建记录(待完善)
hdp搭建记录(待完善)
排除警告1:卸载包

rpm -qa|grep xiaoju

rpm -e --nodeps xiaoju-php7-7.0.6-20161208142525.x86_64
rpm -e --nodeps xiaoju-libmemcached-1.0.18-20150509235827.x86_64
rpm -e xiaoju-imagemagick-6.9.1-20150721120950.x86_64
rpm -e --nodeps xiaoju-curl-7.35.0-20150630190544.x86_64

rpm -e --nodeps libmcrypt-2.5.8-9.el6.x86_64 
rpm -e --nodeps apache-maven-3.3.3-4.el6.noarch

防火墙和ntp暂时搁置。