首先,要有Linux 64位的安装包,这个要自己编译,编译方法参见我的这篇帖子:http://www.cnblogs.com/conbein/p/3793166.html ,如果实在不想编译,留言发给你

具体安装过程可参考:http://blog.csdn.net/gobitan/article/details/13503717

集群情况:

IP                     HostName                Roles
192.168.10.117         h2s117                  NameNodeSecondaryNameNodeResourceManager192.168.10.111         h2s111                  DataNodeNodeManager192.168.10.112         h2s112                  DataNodeNodeManager

这里只贴出自己的配置:

core-site.xml
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!--Licensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License. See accompanying LICENSE file.
--><!-- Put site-specific property overrides in this file. --><configuration><property><name>fs.defaultFS</name><value>hdfs://h2s117:9000</value></property><property><name>fs.default.name</name><value>hdfs://h2s117:9000</value></property><property><name>io.file.buffer.size</name><value>131072</value></property><property><name>hadoop.tmp.dir</name><value>/home/hadoop/hadoop_space/tmp</value><description>Abase for other temporary directories.</description></property><property><name>hadoop.proxyuser.root.hosts</name><value>*</value></property><property><name>hadoop.proxyuser.root.groups</name><value>*</value></property></configuration>

hdfs-site.xml
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!--Licensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License. See accompanying LICENSE file.
--><!-- Put site-specific property overrides in this file. --><configuration><property><name>dfs.namenode.secondary.http-address</name><value>h2s117:9001</value></property><property><name>dfs.namenode.name.dir</name><value>file:/home/hadoop/hadoop_space/dfs/name</value></property><property><name>dfs.datanode.data.dir</name><value>file:/home/hadoop/hadoop_space/dfs/data</value></property><property><name>dfs.replication</name><value>1</value></property><property><name>dfs.webhdfs.enabled</name><value>true</value></property>
</configuration>

mapred-site.xml
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!--Licensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License. See accompanying LICENSE file.
--><!-- Put site-specific property overrides in this file. --><configuration><property><name>mapreduce.framework.name</name><value>yarn</value></property><property><name>mapreduce.jobhistory.address</name><value>h2s117:10020</value></property><property><name>mapreduce.jobhistory.webapp.address</name><value>h2s117:19888</value></property>
</configuration>

yarn-site.xml
<?xml version="1.0"?>
<!--Licensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License. See accompanying LICENSE file.
-->
<configuration><!-- Site specific YARN configuration properties --><property><name>yarn.nodemanager.aux-services</name><value>mapreduce_shuffle</value></property><property><name>yarn.nodemanager.aux-services.mapreduce.shuffle.class</name><value>org.apache.hadoop.mapred.ShuffleHandler</value></property><property><name>yarn.resourcemanager.address</name><value>h2s117:8032</value></property><property><name>yarn.resourcemanager.scheduler.address</name><value>h2s117:8030</value></property><property><name>yarn.resourcemanager.resource-tracker.address</name><value>h2s117:8035</value></property><property><name>yarn.resourcemanager.admin.address</name><value>h2s117:8033</value></property><property><name>yarn.resourcemanager.webapp.address</name><value>h2s117:8088</value></property></configuration>

注:hostname中不能有下划线,不然会出现执行start-dfs.sh时,在master节点没有启动namenode而跑到slave节点上去执行namenode的启动。

转载于:https://www.cnblogs.com/conbein/p/3794704.html

Hadoop 2.2.0 在centos6.2 64位下的安装--分布式模式相关推荐

  1. centos vmware centos6.6 64位 kvm虚拟化安装配置 第四十二节课

    centos vmware centos6.6 64位 kvm虚拟化安装配置     第四十二节课 上半节课 下半节课 f

  2. 2 pygraphviz在windows10 64位下的安装问题(反斜杠的血案)

    可以负责任的说,这篇文档是windows10安装pygraphviz中,在中文技术网站中最新的文档,没有之一.是自己完全结合各种问题,包括调试等,总结出来的. 问题来源:主要是可视化RvNN网络的树结 ...

  3. win7 64位下如何安装配置mysql

    win7 64位下如何安装配置mysql   1. MySQL Community Server 5.6.10 官方网站下载mysql-5.6.10-winx64.zip 2.解压到d:\MySQL. ...

  4. win7 64位下如何安装配置mysql-5.7.17-winx64

    本人综合了两篇文章得以安装成功: win7 64位下如何安装配置mysql-5.7.4-m14-winx64 the MySQL service on local computer started a ...

  5. awstats mysql_AWstats7.4在Windows 10 64位下的安装与配置,以支持Apache 2.4的日志分析...

    1.AWstats7.4在Windows 10 64位下的安装与配置,以支持Apache 2.4的日志分析: 2.安装perl,打开:https://www.perl.org/ ,如图1,在Windo ...

  6. mysql64如何配置_win7 64位下如何安装配置mysql-winx64(安装记录)

    win7 64位下如何安装配置mysql winx64 1.mysql下载 官方网站下载地址:http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5. ...

  7. mysql 5.7.4 m14_win7 64位下如何安装配置mysql-5.7.4-m14-winx64(安装记录)_MySQL

    win7 win7 64位下如何安装配置mysql-5.7.4-m14-winx64 1. mysql-5.7.4-m14-winx64.zip下载 2.解压到D:/mysql.(路径自己指定) 3. ...

  8. mysql 5.7.4 m14_win7 64位下如何安装配置mysql-5.7.4-m14-winx64

    win7 64位下如何安装配置mysql-5.7.4-m14-winx64 1.mysql-5.7.4-m14-winx64.zip下载 官方网站下载地址:http://dev.mysql.com/g ...

  9. win8(64位)下memcache安装时报错“ failed to install service or service already installed”

    环境: win8(64位)系统 错误提示: failed to install service or service already installed 解决办法: 1.找到cmd.exe文件(c:\ ...

  10. 64位下Python安装PIL图像处理库 (ERROR: Could not find a version that satisfies the requirement PIL (from vers)

    DOS命令窗下进入Python的pip所在目录下,比如我的D:\python2.7\Scripts,输入pip install PIL进行图像处理类库的安装时遇到错误,查资料发现PIL官方网站提供的P ...

最新文章

  1. [YTU]_1064 (输入三个字符串,按由小到大的顺序输出)
  2. 【PC工具】免费文库文档下载器,破解文库下载器,免费下载文库文档,文库下载器...
  3. 项目中有出现过缓存击穿,简单说说怎么回事?
  4. JAVA中的MDC类_CMake - 用/ MT而不是/ MD编译
  5. JS 获取随机颜色值
  6. 合作 | IEIC·IT耳朵智能创新大会:人工智能落地将带来新风口
  7. oracle重建索引对空间的使用,分析oracle索引空间使用情况,以及索引是否需要重建...
  8. HDFS常用命令/API+上传下载过程(三)
  9. 从概率观点,怎样看新冠病毒的疫情
  10. 计算机无法显示外接硬盘,移动硬盘不显示怎么办解决教程
  11. 安卓TextView完美展示html格式代码
  12. 三角形形态-非常重要的整理形态
  13. Secure CRT 用域名连接虚拟机的详细步骤
  14. Windows和Linux入侵痕迹清理
  15. 进一步解读自主可控云CAD:CrownCAD
  16. 数值分布的分散程度对迭代次数的影响
  17. 背景图自适应屏幕大小
  18. js语言扩展之trim
  19. python动态二维码表白代码
  20. (二)MySQL数据库-库的创建和删除

热门文章

  1. 数据库DBeaverEE 22.0.2
  2. UltraEdit 21 for Mac(超好用的高级文本编辑器)
  3. Mac上自动隐藏或显示菜单栏
  4. 巧用MacOS的勿扰模式,解决广告弹窗
  5. Markdown 写作类软件 MWeb 和 Ulysses谁更好
  6. Codeforces 1006 F - Xor-Paths
  7. FQDN(Fully qualified domain name)
  8. Struts如何获取客户端ip地址
  9. JSJQuery必备技能
  10. 自从在 IDEA 中用了热部署神器 JRebel,开发效率提升了 10 倍!