centos6.5下安装ambari
发表于:2025-12-03 作者:千家信息网编辑
千家信息网最后更新 2025年12月03日,Apache Ambari是一种基于Web的工具,支持Apache Hadoop集群的供应、管理和监控。Ambari目前已支持大多数Hadoop组件,包括HDFS、MapReduce、Hive、Pig
千家信息网最后更新 2025年12月03日centos6.5下安装ambari
Apache Ambari是一种基于Web的工具,支持Apache Hadoop集群的供应、管理和监控。Ambari目前已支持大多数Hadoop组件,包括HDFS、MapReduce、Hive、Pig、 Hbase、Zookeper、Sqoop和Hcatalog等。
一、前期环境准备
1.安装epel源
2.安装pdsh
yum -y install pdsh
3.在master和slave上配置hosts
cat /etc/hosts127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4::1 localhost localhost.localdomain localhost6 localhost6.localdomain6192.168.40.217 ambari192.168.40.216 slave
4.设置免密码登录
ssh-keygen -t rsaGenerating public/private rsa key pair.Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): #回车Enter same passphrase again: #回车Your identification has been saved in /root/.ssh/id_rsa.Your public key has been saved in /root/.ssh/id_rsa.pub.The key fingerprint is:01:f9:c3:e6:e2:cc:46:1c:55:68:c4:2d:2b:eb:77:09 root@localhost.localdomainThe key's randomart p_w_picpath is:+--[ RSA 2048]----+| .+.+. || ..* . || =.o || o *. || . *S. || = E || * . . . || * . o || . . . |+-----------------+[root@ambari ~]# cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys [root@ambari ~]# scp ~/.ssh/authorized_keys master:/root/.ssh/[root@ambari ~]# scp ~/.ssh/authorized_keys slave:/root/.ssh/
5.关闭selinux 和防火墙
二、安装ambari
1.配置yum源
[root@ambari ~]# wget http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.0.1/ambari.repo[root@ambari ~]# mv ambari.repo /etc/yum.repos.d/
2.安装ambari-server
[root@ambari ~]# yum -y install ambari-server #过程比较慢,ambari-server包有80M大小
3.本地配置
[root@ambari ~]# ambari-server setupUsing python /usr/bin/python2.6Setup ambari-serverChecking SELinux...SELinux status is 'disabled'Customize user account for ambari-server daemon [y/n] (n)? yEnter user account for ambari-server daemon (root):Adjusting ambari-server permissions and ownership...Checking iptables...Checking JDK...[1] Oracle JDK 1.7[2] Oracle JDK 1.6[3] - Custom JDK==============================================================================Enter choice (1): 1JDK already exists, using /var/lib/ambari-server/resources/jdk-7u67-linux-x64.tar.gzInstalling JDK to /usr/jdk64/Successfully installed JDK to /usr/jdk64/Downloading JCE Policy archive from http://public-repo-1.hortonworks.com/ARTIFACTS/UnlimitedJCEPolicyJDK7.zip to /var/lib/ambari-server/resources/UnlimitedJCEPolicyJDK7.zipUnlimitedJCEPolicyJDK7.zip... 100%Successfully downloaded JCE Policy archive to /var/lib/ambari-server/resources/UnlimitedJCEPolicyJDK7.zipInstalling JCE policy...Completing setup...Configuring database...Enter advanced database configuration [y/n] (n)? yConfiguring database...==============================================================================Choose one of the following options:[1] - PostgreSQL (Embedded)[2] - Oracle[3] - MySQL[4] - PostgreSQL==============================================================================Enter choice (1): Database name (ambari): Postgres schema (ambari): Username (ambari): Enter Database Password (bigdata): Default properties detected. Using built-in database.Configuring ambari database...Checking PostgreSQL...Running initdb: This may take upto a minute.Initializing database: [ OK ]About to start PostgreSQLConfiguring local database...Connecting to local database...done.Configuring PostgreSQL...Restarting PostgreSQLExtracting system views.....ambari-admin-2.0.1.45.jar.Adjusting ambari-server permissions and ownership...Ambari Server 'setup' completed successfully.###这里由于下载jdk速度过慢。我提前把jdk下载下来放到了/var/lib/ambari-server/resources/目录[root@ambari ~]# cd /var/lib/ambari-server/resources/[root@ambari resources]# mv /root/jdk-7u67-linux-x64.tar.gz .
4.启动服务
[root@ambari ~]# ambari-server startUsing python /usr/bin/python2.6Starting ambari-serverWARNING: The hostname was not found in the reverse DNS lookup. This may result in incorrect behavior. Please check the DNS setup and fix the issue.Ambari Server running with administrator privileges.Organizing resource files at /var/lib/ambari-server/resources...Server PID at: /var/run/ambari-server/ambari-server.pidServer out at: /var/log/ambari-server/ambari-server.outServer log at: /var/log/ambari-server/ambari-server.log
启动ambari报错
WARNING: The hostname was not found in the reverse DNS lookup. This may result in incorrect behavior. Please check the DNS setup and fix the issue. '这个问题是由于没有把主机名已经对应的ip加到/etc/hosts 导致的。
5.访问web
http://ip:8080 默认用户是admin,密码admin
配置
密码
支持
主机
前期
大小
工具
环境
用户
目录
组件
过程
问题
防火墙
集群
供应
准备
服务
登录
监控
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
网络安全拦截怎么做
fm2022数据库更新后开档
学网络安全在家能挣钱吗
服务器独享10m带宽多少钱
数据库试验架构
服务器 安全性bmc 芯片
北京国庆70周年网络安全保障
手机 example服务器怎么填
网络安全推普周主题班会
sqlite能作为网络数据库吗
mfc软件开发报价
数据库技术可用性保密性
数据库技术与应用詹英
软件开发转测试难吗
阿里巴巴 网络安全招聘
郑州市网络安全峰会
上海卓越科技互联网
阿里云数据库名
湖南web软件开发
开展网络安全隐患排查报告
33岁还适合学软件开发吗
软件开发项目类型和定义
崇明区多功能软件开发设计标准
外键关联同时插数据库
合泰杯用什么软件开发
村居网络安全知识宣讲简报
我的世界服务器改密码后台
常州一站式软件开发供应
网络技术与应用期末试
数据库 外部表