我是使用的虚拟机安装的,安装Ubuntu 12.10那就不说了,说一下简单的安装Hadoop1.0.4伪分布式的步骤。
Windows 7硬盘安装Ubuntu 12.10图文教程 http://www.linuxidc.com/Linux/2012-11/73500.htm
1、 安装jdk
安装方式参照 http://www.linuxidc.com/Linux/2013-01/77923.htm。
2、 安装SSH和配置免输入密码登陆
在ubuntu 12.10中可以使用sudo apt-get install ssh方式进行安装。如果出现问题的话,可以修改一下ubuntu的agt的源,我是改为163的源后才能正常安装的。百度很容易找到修改方式。
然后输入ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa,输入类似如下的内容
然后输入cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys 命令。
3、讲hadoop1.0.4解压到某个目录下。
4、 修改配置文件:
进入hadoop-env.sh所在目录(/hadoop-1.0.4/conf/),对该文件进行如下内容的修改:export JAVA_HOME=/usr/java/jdk1.6.0_37。这里是你自己配置的jdk地址。
conf/core-site.xml:
fs.default.name
hdfs://localhost:9000
conf/hdfs-site.xml:
dfs.replication
1
conf/mapred-site.xml:
mapred.job.tracke
localhost:9001
5、 格式化namenode
输入命令bin/hadoop namenode -format
6、 启动hadoop
输入命令bin/start-all.sh
以上都是默认在hadoop目录中的文件。
使用http://localhost:50030、http://localhost:50070 进行验证
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有