hortonworks部署安装
2016-08-24 11:16
183 查看
hortonworks部署安装
环境准备
三台干净的服务器192.168.83.131
192.168.83.132
192.168.83.133
服务器之间配置免秘钥登录
配置/etc/hosts 文件 保持一致
192.168.83.131 bigdata01.com Hmaster
192.168.83.132 bigdata02.com Hslave01
192.168.83.133 bigdata03.com Hslave02
环境搭建
执行yun命令清除,重新载入缓存yumcleanall yum makecache
执行命令在官方地址下载ambir.repo文件指定 源
$ wget -nv http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.2.0.0/ambari.repo -O /etc/yum.repos.d/ambari.repo
执行后会产生/etc/yum.repos.d/ambari.repo文件
执行以下命令查看yum仓库
$ yum repolist 仓库标识 仓库名称 状态 Updates-ambari-2.2.0.0 ambari-2.2.0.0 - Updates 7 base CentOS-6 - Base 6,575 extras CentOS-6 - Extras 50 updates CentOS-6 - Updates 1,231 repolist: 7,863
开始安装
下载ambari-server客户端
$ yum install ambari-server
注意在这里可能会报错
两种方法可以解决:
1.运行
$ rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
可解决;
2.运行
$ yum.conf 文件,把里面的gpgcheck=1改为gpgcheck=0。
注:方法2的效果很好
3.最好的解决办法:
加上”–nogpgcheck”参数
$ yum install ambari-server –nogpgcheck*
运行ambari-server setup
以下是运行过程,安装时 还自动安装jdk可以根据需要选择,,推荐使用1.8版本(官方文档推荐)# ambari-server setup Using python /usr/bin/python2 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):mercury Adjusting ambari-server permissions and ownership... Checking firewall status... Checking JDK... [1] Oracle JDK 1.8 + Java Cryptography Extension (JCE) Policy Files 8 [2] Oracle JDK 1.7 + Java Cryptography Extension (JCE) Policy Files 7 [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-8u60-linux-x64.tar.gz to /var/lib/ambari-server/resources/jdk-8u60-linux-x64.tar.gz jdk-8u60-linux-x64.tar.gz... 21% (36.6 MB of 172.8 MB)ERROR: Exiting with exit code 1. REASON: Downloading or installing JDK failed: 'Fatal exception: Failed to download JDK: [Errno 104] Connection reset by peer. Please check that the JDK is available at http://public-repo-1.hortonworks.com/ARTIFACTS/jdk-8u60-linux-x64.tar.gz. Also you may specify JDK file location in local filesystem using --jdk-location command line argument., exit code 1'. Exiting. [root@bigdata yum.repos.d]# [root@bigdata yum.repos.d]# [root@bigdata yum.repos.d]# ambari-server setup Using python /usr/bin/python2 Setup ambari-server Checking SELinux... SELinux status is 'enabled' SELinux mode is 'permissive' 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):merv^Hcury^H^H^H Invalid username. Enter user account for ambari-server daemon (root):, Invalid username. Enter user account for ambari-server daemon (root):mercury Adjusting ambari-server permissions and ownership... Checking firewall status... Checking JDK... [1] Oracle JDK 1.8 + Java Cryptography Extension (JCE) Policy Files 8 [2] Oracle JDK 1.7 + Java Cryptography Extension (JCE) Policy Files 7 [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-8u60-linux-x64.tar.gz to /var/lib/ambari-server/resources/jdk-8u60-linux-x64.tar.gz jdk-8u60-linux-x64.tar.gz... 64% (111.3 MB of 172.8 MB)
启动ambari-server服务
执行命令[root@Hmaster yum.repos.d]# ambari-server start[root@Hmaster yum.repos.d]# ambari-server start Using python /usr/bin/python2 Starting ambari-server Ambari Server running with administrator privileges. Running initdb: This may take upto a minute. About to start PostgreSQL Organizing resource files at /var/lib/ambari-server/resources... WARNING: setpgid(4989, 0) failed - [Errno 13] Permission denied Server PID at: /var/run/ambari-server/ambari-server.pid Server out at: /var/log/ambari-server/ambari-server.out Server log at: /var/log/ambari-server/ambari-server.log Waiting for server start.................... Ambari Server 'start' completed successfully.
UI设置部分
登录安装部署界面
http://192.168.83.134:8080 admin/admin
登录
2.
ambari 安装Hortonworks HDP 时在检测host时异常。
The following hosts have Transparent Huge Pages (THP) enabled。THP should be disabled to avoid potential Hadoop performance issues.
解决办法,在Linux下执行: echo never > /sys/kernel/mm/redhat_transparent_hugepage/defrag echo never > /sys/kernel/mm/redhat_transparent_hugepage/enabled echo never > /sys/kernel/mm/transparent_hugepage/enabled echo never > /sys/kernel/mm/transparent_hugepage/defrag
相关文章推荐
- 开发和部署Pocket Pc 安装程序
- 解决.NET(WebApplication)安装部署的不能选择安装路径的问题
- 在.net安装程序部署SQL Server数据库
- Asp.net 安装和部署
- 把.NET程序部署到没有安装.NET Framwork的机器上
- 把.NET程序部署到没有安装.NET Framwork的机器上
- .NET平台下WEB应用程序的部署(安装数据库和自动配置)
- .NET平台下WEB应用程序的部署(安装数据库和自动配置)
- 安装部署工程
- .NET平台下WEB应用程序的部署(安装数据库和自动配置)
- .NET平台下WEB应用程序的部署(安装数据库和自动配置)
- 把.NET程序部署到没有安装.NET Framwork的机器上
- .NET平台下WEB应用程序的部署(安装数据库和自动配置)
- 把.NET程序部署到没有安装.NET Framwork的机器上
- [导入].NET平台下WEB应用程序的部署(安装数据库和自动配置)
- .NET平台下WEB应用程序的部署(安装数据库和自动配置)(转)
- 把.NET程序部署到没有安装.NET Framwork的机器上
- 批量安装部署web service到axis server
- 在.net安装程序中部署oracle客户端全攻略
- MyCollege.Net中数据库服务器安装部署