http://www.linuxidc.com/Linux/2013-08/88187.htm
相关阅读:configurationpropertynamenamevaluevaluepropertyconfigurationconfigurationpropertynamenamevaluevaluepropertyconfigurationconfigurationpropertynamenamevaluevaluepropertypropertynamenamevaluevaluepropertypropertynamenamevaluevaluepropertyconfiguration>
i. 编辑配置文件conf/masters,添加作为secondarynamenode的主机名(单机版仅localhost即可)
- sudo vimhadoop/conf/masters
j. 编辑配置文件conf/slaves,添加作为slave的主机名(单机版仅localhost即可)
- sudo vimhadoop/conf/slaves
6. 运行单机版hadoop
a. 进入hadoop目录,格式化hdfs文件系统(初次运行必做操作)
- bin/hadoop namenode –format
b. 启动hadoop
c. 查看hadoop是否运行成功
浏览器中输入http://localhost:50070/查看NameNode
浏览器中输入http://localhost:50030/查看JobTracker
d. 停止hadoop
更多Ubuntu相关信息见Ubuntu 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=2