http://www.linuxidc.com/Linux/2013-08/88187.htm

相关阅读:
configurationpropertynamenamevaluevaluepropertyconfigurationconfigurationpropertynamenamevaluevaluepropertyconfigurationconfigurationpropertynamenamevaluevaluepropertypropertynamenamevaluevaluepropertypropertynamenamevaluevaluepropertyconfiguration>

 

i. 编辑配置文件conf/masters,添加作为secondarynamenode的主机名(单机版仅localhost即可)

  1. sudo vimhadoop/conf/masters

 j. 编辑配置文件conf/slaves,添加作为slave的主机名(单机版仅localhost即可)

  1. sudo vimhadoop/conf/slaves

 6. 运行单机版hadoop

a. 进入hadoop目录,格式化hdfs文件系统(初次运行必做操作)

  1. bin/hadoop namenode –format

Ubuntu 12.04安装Hadoop-LMLPHP

b. 启动hadoop

  1. bin/start-all.sh

 Ubuntu 12.04安装Hadoop-LMLPHP

c. 查看hadoop是否运行成功

浏览器中输入http://localhost:50070/查看NameNode

Ubuntu 12.04安装Hadoop-LMLPHP

浏览器中输入http://localhost:50030/查看JobTracker

Ubuntu 12.04安装Hadoop-LMLPHP

d. 停止hadoop

  1. bin/stop-all.sh

Ubuntu 12.04安装Hadoop-LMLPHP

更多Ubuntu相关信息见Ubuntu 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=2

01-07 07:57