hadoop 2.5 安装部署

hadoop 下载地址:http://mirrors.cnnic.cn/apache/hadoop/common/

单机伪分布

配置文件:

/hadoop-2.5.1/etc/hadoop/

hadoop-env.sh

修改export JAVA_HOME=${JAVA_HOME}//jdk安装目录

core-site.xml

<configuration>
 <property>
   <name>fs.default.name</name>
   <value>hdfs://localhost:9000</value>
 </property>
</configuration>

hdfs-site.xml

<configuration>
 <property>
  <name>dfs.replication</name>
  <value>1</value>
 </property>
</configuration>

mapred-site.xml

<configuration>
 <property>
  <name>mapred.job.tracker</name>
 <value>localhost:9001</value>
</property>
</configuration>

格式化文件系统

hadoop-2.5.1/bin

./hadoop namenode -format

启动:

hadoop-2.5.1/sbin

./start-all.sh

访问地址:

http://192.168.1.100:8088/管理页面

 http://192.168.1.100:50070/   (hdfs的web页面)

 http://192.168.1.100:50030   (MapReduce 的web页面)

原文地址:https://www.cnblogs.com/tankaixiong/p/3980852.html