I perform the following steps:
1. dynamically increase datanode nodes and Tasktracker nodes
in host226 as an example
Execute on host226:
Specify host Name
Vi/etc/hostname
Specify host name-to-IP-address mappings
Vi/etc/hosts
(the hosts are the Datanode and TRAC)
Adding users and Groups
AddGroup Hadoop
AddUser--ingroup Hadoop Hadoop
Change temporary directory permissions
chmod 777/tmp
Execute on HOST2:
VI conf/slaves
Increase host226
Ssh-copy-id-i. ssh/id_rsa.pub [Email protected]
Scp-r/home/hadoop/hadoop-1.1.2 [Email protected]:/home/hadoop/hadoop-1.1.2
Execute on HOST8:
VI conf/slaves
Increase host226
Ssh-copy-id-i. ssh/id_rsa.pub [Email protected]
Performed on host226:
hadoop-daemon.sh Start Datanode
hadoop-daemon.sh Start Tasktracker
Since then I went to verify:
Web page:
However click:
The Host2, Host6, and HOST8 under node column can appear like the following interface
and click Host9
Learn Hadoop and build Hadoop with some special problems