网上的转载,但超详细
我主要关注第三个问题,他们是主、备关系,但是datanode必须要求一致的吧
问题导读:
1、hadoop ha是通过什么配置实现自动切换的?2、配置中mapred与mapreduce的区别是什么?3、hadoop ha两个namenode之间的关系是什么?-- hadoop 版本:2.4.0-- 安装包名: hadoop-2.4.0.tar.gz 或者源码版本 hadoop-2.4.0-src.tar.gz(我hadoop、hbase、hive均是用的源码编译安装)-- 安装参考:http://www.netfoucs.com/article/book_mmicky/79985.htmlhttp://www.byywee.com/page/M0/S934/934356.htmlhttp://www.itpub.net/thread-1631536-1-1.htmlhttp://demo.netfoucs.com/u014393917/article/details/25913363http://www.aboutyun.com/thread-8294-1-1.html-- 找不到本地库 参考:http://www.ercoppa.org/Linux-Com ... -hadoop-library.htm-- lzo支持,参考:http://blog.csdn.net/zhangzhaokun/article/details/17595325http://slaytanic.blog.51cto.com/2057708/1162287/http://hi.baidu.com/qingchunranzhi/item/3662ed5ed29d37a1adc85709-- 安装以下RPM包:yum -y install openssh*yum -y install man*yum -y install compat-libstdc++-33*yum -y install libaio-0.*yum -y install libaio-devel*yum -y install sysstat-9.*yum -y install glibc-2.*yum -y install glibc-devel-2.* glibc-headers-2.*yum -y install ksh-2*yum -y install libgcc-4.*yum -y install libstdc++-4.*yum -y install libstdc++-4.*.i686*yum -y install libstdc++-devel-4.*yum -y install gcc-4.*x86_64*yum -y install gcc-c++-4.*x86_64*yum -y install elfutils-libelf-0*x86_64* elfutils-libelf-devel-0*x86_64*yum -y install elfutils-libelf-0*i686* elfutils-libelf-devel-0*i686*yum -y install libtool-ltdl*i686*yum -y install ncurses*i686*yum -y install ncurses*yum -y install readline*yum -y install unixODBC*yum -y install zlibyum -y install zlib*yum -y install openssl*yum -y install patchyum -y install gityum -y -y install lzo-devel zlib-devel gcc autoconf automake libtoolyum -y install lzopyum -y install lrzszyum -y -y install lzo-devel zlib-devel gcc autoconf automake libtoolyum -y install ncyum -y install glibcyum -y install java-1.7.0-openjdkyum -y install gzipyum -y install zlibyum -y install gccyum -y install gcc-c++yum -y install makeyum -y install protobufyum -y install protocyum -y install cmakeyum -y install openssl-develyum -y install ncurses-develyum -y install unzipyum -y install telnetyum -y install telnet-serveryum -y install wgetyum -y install svnyum -y install ntpdate-- hive 安装,参考:http://kicklinux.com/hive-deploy/5台服务器设计图
IP地址 | 主机名 | NameNode | JournalNode | DataNode | Zookeeper | Hbase | Hive |
---|---|---|---|---|---|---|---|
192.168.117.194 | funshion-hadoop194 | 是 | 是 | 否 | 是 | 是 | 否 |
192.168.117.195 | funshion-hadoop195 | 是 | 是 | 否 | 是 | 是 | 否 |
192.168.117.196 | funshion-hadoop196 | 否 | 是 | 是 | 是 | 是(Master) | 是(Mysql) |
192.168.117.197 | funshion-hadoop197 | 否 | 是 | 是 | 是 | 是 | 否 |
192.168.117.198 | funshion-hadoop198 | 否 | 是 | 是 | 是 | 是 | 否 |
-- 配置Linux、安装JDK
--参考:linux(ubuntu)安装Java jdk环境变量设置及小程序测试
-- Step 1. 建立用户hadoop的ssh无密码登陆
--参考:
linux(ubuntu)无密码互通、相互登录高可靠文档
CentOS6.4之图解SSH无验证双向登陆配置
-- Step 2. zookeeper配置(配置奇数台zk集群,我用的5台)
-- 参考:Zookeeper集群环境安装过程详解