* System Environment:centOS6.7

1.Prepare the Environment

  1)Set Up Password-less SSH : (Generate public and private SSH keys on the Ambari Server host.)

 cd ~
ssh-keygen

  will generate id_rsa  id_rsa.pub  under .ssh folder.

Do the below command on Ambari server:

cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys  

   Do command oneach target hosts:

 scp ~/.ssh/authorized_keys slave-1:/root/.ssh/
scp ~/.ssh/authorized_keys slave-2:/root/.ssh/

  Do command on each host(include Ambari server)

chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys

  From the Ambari Server, make sure you can connect to each host in the cluster using SSH, without having to enter a password. If the following warning message displays during your first connection:  Are you sure you want to continue

  connecting (yes/no)?  Enter  Yes .

   Note:It is possible to use a non-root SSH account, if that account can execute  sudowithout entering a password.

  2) Enable NTP on the Cluster and on the Browser Host

chkconfig --list ntpd
chkconfig ntpd on
service ntpd start

  3) Check DNS and NSCD

  3.1) HostName

  Add a line for each host in your cluster. The line should consist of the IP address and the FQDN

vi /etc/hosts

  Use the "hostname" command to set the hostname on each host in your cluster. Fo example:

  Confirm that the hostname is set by running the following command:

hostname -f

  This should return the <fully.qualified.domain.name> you just set. e.g:

  3.2)Edit the Network Configuration File

vi /etc/sysconfig/network

  Modify the HOSTNAME property to set the fully qualified domain name.

NETWORKING=yes
HOSTNAME=Master

  3.3)Configuring iptables

chkconfig iptables off
/etc/init.d/iptables stop

  3.4) Disable SELinux and PackageKit and check the umask Value

setenforce 
 vi /etc/selinux/config
vi /etc/yum/pluginconf.d/refresh-packagekit.conf

 umask
echo umask >> /etc/profile

Okay. Now .You finished the environment prepared.

Let's begin to install Ambari.

Step1: Download the Ambari repository on the Ambari Server host

cd /etc/yum.repos.d/
wget http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.2.1.0/ambari.repo

Step 2: Install, Setup, and Start Ambari Server

yum install ambari-server
ambari-server setup
ambari-server start
Step 3: Deploy Cluster using Ambari Web UI 

Open up a web browser and go to http://<ambari-server-host>:8080.

相关参考:

1.安装ambari:

https://cwiki.apache.org/confluence/display/AMBARI/Install+Ambari+2.2.1+from+Public+Repositories

http://hortonworks.com/hdp/downloads/#hdf

http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.1.1/bk_ambari_reference_guide/content/index.html

2. 安装 agent问题 解决

http://blog.csdn.net/shiqidide/article/details/18361203

http://linux.it.net.cn/e/cluster/hadoop/2015/1007/17607.html

3.删除用户 等

http://geniuszhe.blog.163.com/blog/static/11934682013111984718679/

4.解决issue:

解决办法,在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

Ambari安装Hadoop集群的更多相关文章

  1. 通过ambari安装hadoop集群,ZT

    通过ambari安装hadoop集群,ZT http://www.cnblogs.com/cenyuhai/p/3295635.html http://www.cnblogs.com/cenyuhai ...

  2. 通过ambari安装hadoop集群(一)

    之前一直用的开源社区的版本,最近突然想到找一个好的商业版本用着,然后一直使用,然后就定上了hdp和cdh,都装上去了,但是cdh使用难度太大了,和开源版本的差距比较大,api不会使用,需要学它的cdk ...

  3. 通过ambari安装hadoop集群

    转载:http://www.cnblogs.com/cenyuhai/p/3295635.html 整个过程走完,问题不大,不过有一个事情要注意的是就算创建数据库的,使用localhost会报错,要使 ...

  4. 使用Ambari安装hadoop集群

    最近需要做些spark的工作,所以弄了几台dell7500就这么准备开始搭建集群,之前用过几台更破的台式机搭建过一次,折腾了半个月之久,终于成功搭建,这次不想走老路,所以网上查了一下,发现一个神器AM ...

  5. 通过ambari安装hadoop集群(二)

    开始安装,输入主机名字,然后选择私钥 注意java_home那里需要改为/usr/jdk64/jdk1.6.0_31,然后点击确认,它会出一个警告提示,别管他就行. 等待安装完毕之后,就会出现成功的提 ...

  6. CentOS7 搭建Ambari-Server,安装Hadoop集群(一)

    2017-07-05:修正几处拼写错误,之前没发现,抱歉! 第一次在cnblogs上发表文章,效果肯定不会好,希望各位多包涵. 编写这个文档的背景是月中的时候,部门老大希望我们能够抽时间学习一下Had ...

  7. 安装Hadoop集群的最快的软件

    Quick Hadoop是一款安装Hadoop集群的桌面软件,只需要点两下鼠标,一分钟之内安装Hadoop到集群上,超快! 还在每台主机的Shell里一行一行地敲安装Hadoop的命令?别苦逼了! 用 ...

  8. 手把手教你通过Ambari新建Hadoop集群图解案例

    手把手教你通过Ambari新建Hadoop集群图解案例 作者:尹正杰 版权声明:原创作品,谢绝转载!否则将追究法律责任. 登陆系统之后,会看到Ambari空空如也的欢迎界面,接下来我们就需要介绍如何通 ...

  9. AMBARI部署HADOOP集群(4)

    通过 Ambari 部署 hadoop 集群 1. 打开 http://192.168.242.181:8080  登陆的用户名/密码是 : admin/admin 2. 点击 “LAUNCH INS ...

随机推荐

  1. FastAdmin 开发环境详细设置

    一图胜千言 FastAdmin开发环境 Windows 网页安装 鼠标点点就可以了,不用说明. 命令行安装 环境准备 装有 Windows 7 的PC .(这是一句废话,不用理这句.) 服务器软件 A ...

  2. java 字符串String

    在 Java 中,字符串被作为 String 类型的对象处理. String 类位于 java.lang 包中.默认情况下,该包被自动导入所有的程序. 创建 String 对象的方法: 只要是双引号标 ...

  3. jsoncpp构造json字符串和json数组

    jsoncpp构造json字符串和json数组 参考文章:Jsoncpp的简单使用 下载json文件夹放在c++项目的include目录下,在CMakeLists中include进去,然后就可以在代码 ...

  4. java操作Excel之POI(4)利用POI实现数据的批量导出

    后台导出方法: /** * 后台导出方法 * 利用POI实现数据的批量导出 */ public String export() throws Exception{ Connection con = n ...

  5. 信息学奥赛(NOIP)复赛学习方法推荐

    一.确定你的语言 NOIP包括三种语言c/c++/pascal,在最初必须确定自己使用的语言.没有c/c++基础的,个人建议使用pascal,因为它更容易上手,如果有充裕的时间,则建议c/c++,因为 ...

  6. 《Linux内核精髓:精通Linux内核必会的75个绝技》一HACK #16 OOM Killer的运行与结构

    HACK #16 OOM Killer的运行与结构(1) 本节介绍OOM Killer的运行与结构. Linux中的Out Of Memory(OOM) Killer功能作为确保内存的最终手段,可以在 ...

  7. 让“懒惰” Linux 运维工程师事半功倍的 10 个关键技巧!

    好的Linux运维工程师区分在效率上.如果一位高效的Linux运维工程师能在 10 分钟内完成一件他人需要 2 个小时才能完成的任务,那么他应该受到奖励(得到更多报酬),因为他为公司节约了时间,而时间 ...

  8. 洛谷:P1087 FBI树 P1030 求先序排列 P1305 新二叉树

    至于为啥把这三个题放到一起,大概是因为洛谷的试炼场吧,三道树的水题,首先要理解 先序中序后序遍历方法. fbi树由于数量小,在递归每个区间时,暴力跑一遍区间里的数,看看是否有0和1.至于递归的方法,二 ...

  9. 清理mysql binlog日志

    1.查看binlog日志 mysql> show binary logs; +------------------+------------+| Log_name         | File_ ...

  10. python写个御剑

    前言: 今天师傅叫我,写个python版的御剑.然后我之前也写过 不过不怎么样,这次有新想法. 思路: 御剑:读取御剑配置文件里的所有路径,加上用户要扫描的url.进行批量检测,如果状态码为200并且 ...